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 → Update Field Values

AI-generated

Summary

Update specified custom field values on a device identified by its ID in NinjaOne.

Inputs

  • id (required) — The numeric identifier of the device to update.
  • options.customBody — Optional JSON object to send arbitrary data in the request body, overriding other field values if provided.
  • options.headerFilters — Optional custom HTTP headers to include in the request.
  • options.queryFilters — Optional query string filters as key-value pairs to modify the request.
  • options.batching — Optional batching settings to control the number of items processed per request and the wait interval between batches.
  • options.debug — Optional boolean to enable debug output of the full request details.
  • options.pagination — Optional pagination configuration for any list retrievals, not typically used in this update operation.
  • options.timeout — Optional timeout in milliseconds for the HTTP request, defaulting to 300000.

Output shape

a JSON object representing the API response for the updated device custom fields

The output reflects the response from the PATCH request to the /v2/device/{id}/custom-fields endpoint. If debug is enabled, the node output includes a debug entry showing the full URL, headers, query parameters, and request body sent. Supports batching for multiple input items, sending one request per input item in configured batch sizes.

Examples

Example 1: Update a device's custom fields by its ID

Provide the device ID and a JSON object with the custom field updates either directly or via customBody; optionally add headers or query filters to modify the request.

Links

Discussion