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

Devices → Device currently running (active) jobs

AI-generated

Summary

Retrieve the currently running (active) jobs on a specific device identified by its ID.

Inputs

  • id (required) — The unique numeric identifier of the device for which to fetch active running jobs.
  • returnAll — Boolean to specify whether to return all active jobs or just a single page of results.
  • additionalFields — Optional fields such as language ('lang') and time zone ('tz') that can be included to customize the request.
  • options — Optional settings including custom JSON body data, additional HTTP headers, query string filters, batching controls, debug mode, pagination configuration, and request timeout.

Output shape

a list (array) of active job objects currently executing on the specified device, possibly paginated based on the input parameters.

Supports pagination with configurable modes (offset, cursor, or next URL). When 'returnAll' is false, only one page of results is returned. Debug mode can append request details to the output. Custom headers and query filters can modify the request. Timeout and batching are configurable.

Examples

Example 1: Fetch all currently running jobs for device ID 123 with English language preference and UTC timezone.

Set 'id' to 123, 'returnAll' to true, and 'additionalFields' with 'lang'='en' and 'tz'='UTC'.

Links

Discussion