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 relationship types

AI-generated

Summary

Retrieve a list of all asset relationship types available in NinjaOne's IT Asset Management (ITAM) system, optionally with pagination controls and query filters.

Inputs

  • Return All — Boolean to determine if all results should be returned or only a single page.
  • After — A cursor or marker indicating to fetch results after this point, used for pagination.
  • Before — A cursor or marker indicating to fetch results before this point, used for pagination.
  • Page Size — Number of results to return per page when not returning all.
  • Custom Body — Allows sending an arbitrary JSON body merged into the request; custom fields override other parameters.
  • Custom Headers — Add custom HTTP headers for the API request.
  • Query Filters — Add custom query-string filters by specifying parameter names and values.
  • Batching — Settings to group input items in batches and pause between batches for rate limiting.
  • Debug — Enables output of detailed request data for troubleshooting.
  • Pagination — Configure pagination mode (offset, cursor, or URL-based) and parameters for handling paged results.
  • Timeout (ms) — Maximum time to wait for server response headers before aborting (default 300000 ms).

Output shape

a list of asset relationship type records

The operation returns either a single page of asset relationship types or all pages if 'Return All' is enabled and pagination is handled accordingly. When pagination is enabled, results can be retrieved following offset, cursor, or next-URL methods based on provided pagination configuration. If 'Debug' is enabled, additional metadata about the HTTP requests is included in the output under a debug entry.

Links

Discussion