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

CustomFields → Bulk update custom fields

AI-generated

Summary

Bulk update multiple custom fields on NinjaOne nodes by sending a list of field updates in a single API request.

Inputs

  • additionalFields — Provide a JSON array named 'customFields' containing the list of custom fields to update. This array specifies each custom field and its new value.
  • options — Optional settings to customize the request, including:
  • Custom Body: JSON object to send arbitrary data in the request body which takes priority over other fields.
  • Custom Headers: Add custom HTTP headers.
  • Query Filters: Add query-string filters.
  • Batching: Configure how input items are grouped and interval delay between batches.
  • Debug: Enables output of sent request details for troubleshooting.
  • Pagination and Timeout settings for advanced use cases.

Output shape

a single JSON response object representing the result of the bulk update operation

The operation sends a PUT request to '/v2/custom-fields/bulk' endpoint with the provided custom fields list. Optional custom body JSON, headers, query parameters, and batching behavior can be configured. Debug output can be enabled to inspect request details. The response object corresponds to the API's response and includes success or error information.

Examples

Example 1: Update multiple custom fields for nodes

Set 'additionalFields.customFields' to a JSON array specifying field identifiers and new values. Optionally configure 'options' to add headers or debug output.

Links

Discussion