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 → Set device owner

AI-generated

Summary

Set the owner of a specified device by providing the device ID and the owner's UID.

Inputs

  • id (required) — The unique identifier of the device whose owner you want to set.
  • ownerUid (required) — The unique identifier of the new owner to assign to the device.
  • options — Optional configurations such as custom request body, headers, query filters, batching settings, debug mode, pagination, and timeout settings to customize the API request.

Output shape

The operation returns the response from the NinjaOne API after setting the device owner, including the updated device information or status of the operation.

The output may include additional debug details if debug mode is enabled, such as the full request URL, headers, and body. Pagination and batching settings apply only if relevant for the operation or extended use with multiple inputs.

Examples

Example 1: Set device owner with device ID 123 and owner UID 'user-456' without additional options.

id=123, ownerUid='user-456', options left as default empty.

Links

Discussion