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

Management → Update device information

AI-generated

Summary

Update information for a specific device by its identifier, modifying properties such as display name, user data, node role, policy, organization, location, and warranty details.

Inputs

  • id (required) — The unique identifier of the device to update.
  • Additional Fields — Allows specifying one or more of the following: Display Name (user-assigned), User Data (custom attributes as JSON), Node Role Id, Policy Id (override or revert policy), Organization Id, Location Id, and Warranty information as JSON.
  • Options — Optional settings including sending a custom JSON body which overrides other fields, adding custom HTTP headers, query-string filters, batching settings to control request grouping and delays, debugging output for request details, pagination parameters (mostly for list operations), and request timeout configuration.

Output shape

a single JSON object containing the updated device information returned by the API.

If debugging is enabled, the output includes a debug entry showing the URL, query parameters, headers, and request body sent. The request uses a PATCH method targeting the /v2/device/{id} endpoint. The operation is designed to update partial device information as specified by the input fields; unspecified fields remain unchanged.

Links

Discussion