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

Location → Update Field Values

AI-generated

Summary

Update specified custom field values for a Location identified by its ID and Location ID in the NinjaOne system via a PATCH request.

Inputs

  • id (required) — The organization ID to which the location belongs.
  • locationId (required) — The unique Location ID identifying the location to update.
  • options.customBody — Optional JSON object to send arbitrary fields in the request body; this merges with default fields with priority over them.
  • options.headerFilters — Optional custom HTTP headers to include in the API request.
  • options.queryFilters — Optional query-string parameters to include as filters in the API request.
  • options.batching — Optional settings to batch multiple input items into groups for requests, controlling batch size and interval between batches.
  • options.debug — Optional flag to include detailed debug information of requests in the output for troubleshooting.
  • options.pagination — Optional pagination configuration, applicable if multiple pages of data need processing.
  • options.timeout — Optional timeout in milliseconds to wait for the server response before aborting the request.

Output shape

a JSON object representing the updated Location custom field values as returned by the API, including any standard response fields from the PATCH endpoint.

Supports sending arbitrary JSON in the request body to customize fields updated. When batching is enabled, the node will process multiple items in batches with delay between them. Debug mode includes request and response details under a debug key in each item. Pagination options exist but are typically irrelevant for a single update operation.

Examples

Example 1: Update custom fields of a specific location

Provide organization ID and location ID with customBody containing field updates; enable debug to see request details.

Links

Discussion