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

AssetRelationships → Get all asset relationships for an entity

AI-generated

Summary

Retrieve all asset relationships linked to a specified entity by its type and ID, supporting pagination and filtering options.

Inputs

  • Entity Type (required) — The type of the entity to fetch relationships for, e.g. DEVICE, CONTACT, LOCATION.
  • Entity Id (required) — The unique numeric identifier of the entity to fetch relationships for.
  • Return All — Whether to return all related asset relationships across all pages or just a single page.
  • Additional Fields — Optional parameters such as relationship type, side (SOURCE or TARGET), pagination cursors (After, Before), and page size to filter or paginate the results.
  • Options — Advanced option collections to customize the request body, add HTTP headers, apply query filters, batch multiple requests, enable debug output, and configure pagination settings.

Output shape

a list of asset relationship items

Supports pagination controlled by 'Return All' and 'Pagination' settings; the response structure includes the retrieved asset relationships for the specified entity. Debug output is available if enabled, containing request details.

Links

Discussion