Actions89
- Alert Actions
- Backup Actions
- Custom Field Actions
- Device Actions
- Document Template Actions
- Group Actions
- Knowledge Base Article Actions
- Location Actions
- Organization Actions
- Organization Document Actions
- Query Actions
- Related Item Actions
- System Actions
- Ticketing Actions
- User Actions
- Webhook Actions
Related Item → Create
AI-generatedSummary
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.
