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

RelatedItems → Create entity relations

AI-generated

Summary

Create relationships between a specified entity and multiple related items by sending an array of item data to the NinjaOne API endpoint for entity relations.

Inputs

  • Entity Type (required) — Specify the type of the entity to which related items will be connected. Options include ORGANIZATION, DOCUMENT, LOCATION, NODE, CHECKLIST, KB DOCUMENT, END USER, and SOFTWARE LICENSE.
  • Entity Id (required) — Provide the unique numerical identifier of the entity for which relations are being created.
  • Items (required) — Input a JSON array containing the related items to associate with the entity. Each item should describe the relation as expected by the API.
  • Options — Configure optional request parameters including custom JSON body to override or extend the request, custom headers, query filters for the request, batch processing settings to manage requests when handling large inputs, debug mode for detailed request output, pagination settings for list operations, and request timeout duration.

Output shape

a JSON object representing the API response to the creation request

The output returns the response JSON from the NinjaOne API after creating the entity relations. When debug is enabled, additional information about the request such as the URL, headers, query parameters, and body sent is included. The node handles batching if configured, issuing one request per batch of input items.

Links

Discussion