NinjaOne icon

NinjaOne

Ninja One Public API documentation. <br><br>See also: <br> <a href="https://resources.ninjarmm.com/API/Ninja+RMM+Public+API+v2.0.5+Device+Filter+Syntax.pdf">Device Filter syntax</a><br><a href="https://app.ninjarmm.com/apidocs-beta/core-resources/articles/webhooks/overview">Webhooks</a>

Actions309

Billing → Updates PSA properties of a ticket time entry

AI-generated

Summary

Update specified PSA properties of a ticket time entry by its ID in NinjaOne's billing system.

Inputs

  • timeEntryId (required) — The unique numeric ID of the time entry to update.
  • startDate — Date and time indicating when the ticket time entry started.
  • remote — Boolean flag designating whether the time entry was remote.
  • inHours — JSON object representing the in-hours time details.
  • offHours — JSON object representing the off-hours time details.
  • customBody — Optional JSON object to send arbitrary fields in the update request body, overriding other inputs.
  • headerFilters — Optional custom HTTP headers to include with the API request.
  • queryFilters — Optional custom query string parameters for the request.
  • batching — Optional settings to control request batching (size and interval) when processing multiple input items.
  • debug — Enable debug mode to include request details (URL, headers, body) in the output for troubleshooting.
  • pagination — Configure pagination behavior if applicable, including mode, parameter names, and limits.
  • timeout — Timeout in milliseconds for the API request, defaulting to 300,000 (5 minutes).

Output shape

a JSON object representing the updated ticket time entry's details as returned from the NinjaOne API

The response includes fields reflecting the updated PSA properties. If debug is enabled, additional request information is provided. Pagination settings primarily apply to list operations and are unlikely relevant here.

Examples

Example 1: Update a ticket time entry's start date and mark it as remote by providing the timeEntryId and corresponding fields.

timeEntryId=12345, startDate='2024-06-01T09:00:00Z', remote=true

Example 2: Send a fully custom JSON body to override default properties in the update request.

timeEntryId=12345, customBody={"startDate":"2024-06-01T09:00:00Z","remote":false,"offHours":{"duration":2}}

Links

Discussion