NinjaOne icon

NinjaOne

Consume the NinjaOne RMM API

Related Item → Create

AI-generated

Summary

Create a new related item linking two NinjaOne entities by specifying their types and IDs.

Inputs

  • Authentication — Choose the authentication method: OAuth2 or Client Credentials.
  • Entity Type (required) — Specify the type of the main entity (Organization, Device, Ticket, Document, KB Article, or Checklist).
  • Entity ID (required) — Specify the unique ID of the main entity.
  • Related Entity Type (required) — Specify the type of the related entity to link (Organization, Device, Ticket, Document, KB Article, or Checklist).
  • Related Entity ID (required) — Specify the unique ID of the related entity.

Output shape

a single record representing the newly created related item's details

The operation returns the API response JSON object of the related item created linking the specified entities. If the response is empty or null, the output will indicate success. Errors are thrown or returned if 'Continue on Fail' is enabled.

Examples

Example 1: Create a related item linking a Device to an Organization

Set Resource to 'Related Item', Operation to 'Create', 'Entity Type' to 'Device', 'Entity ID' to the device's ID, 'Related Entity Type' to 'Organization', and 'Related Entity ID' to the organization's ID.

Links

Discussion