NinjaOne icon

NinjaOne

Consume NinjaOne API

Actions158

Related Items → Create Related Item For Entity

AI-generated

Overview

This node integrates with the NinjaOne API to create a related item for a specified entity type. It allows users to link or associate additional data or items (related items) with entities such as organizations, documents, locations, nodes, checklists, or knowledge base documents within the NinjaOne platform.

Common scenarios include:

  • Associating a document or checklist with an organization for better context.
  • Linking location information to a node or device.
  • Creating relationships between various resource types to maintain structured and connected data in NinjaOne.

Practical example:

  • A user wants to add a checklist related to a specific organization entity to track compliance or maintenance tasks directly linked to that organization.

Properties

Name Meaning
Entity Type The type of entity to which the related item will be attached. Options: ORGANIZATION, DOCUMENT, LOCATION, NODE, CHECKLIST, KB DOCUMENT
Entity Id The unique numeric identifier of the entity instance to which the related item is being created

Output

The node outputs JSON data representing the response from the NinjaOne API after creating the related item. This typically includes details about the newly created related item or confirmation of the association.

No binary data output is indicated by the source code.

Dependencies

  • Requires an active NinjaOne API OAuth2 authentication credential configured in n8n.
  • Uses the NinjaOne REST API endpoints to perform operations.
  • No other external dependencies are required.

Troubleshooting

  • Missing Binary Data Error: Although not relevant for this operation, the code references binary data handling in other operations. For this operation, ensure that the Entity Id and Entity Type are correctly provided.
  • API Authentication Errors: If the node fails due to authentication, verify that the NinjaOne API OAuth2 credentials are valid and have sufficient permissions.
  • Invalid Entity Id or Type: Providing an incorrect or non-existent entity ID or unsupported entity type may cause API errors. Double-check these inputs.
  • Network or API Endpoint Issues: Ensure network connectivity and that the NinjaOne API service is operational.

Links and References

Discussion