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 Secure Relation

AI-generated

Summary

Create a secure related item linked to a specified entity in NinjaOne by sending a POST request to the related-items secure endpoint.

Inputs

  • Entity Type (required) — Select the type of the entity to which the related item will be attached. Options include ORGANIZATION, DOCUMENT, LOCATION, NODE, CHECKLIST, KB_DOCUMENT, END_USER, and SOFTWARE_LICENSE.
  • Entity Id (required) — Specify the numerical ID of the entity to which the secure related item will be linked.
  • Additional Fields — Optionally provide extra details about the related item such as Name, URL, Notes, Username, Password, and TOTP Secret.
  • Options — Configure advanced request options including custom JSON body payload (merging with other fields, with custom body taking priority), custom HTTP headers, query parameters, batching settings for handling multiple inputs, debug mode to include request details in output, pagination controls, and request timeout.

Output shape

a single JSON object representing the created secure related item.

The output includes the API response for the created related item. If debug mode is enabled, additional data on the request (URL, headers, body) is included under a debug entry. Pagination settings do not apply since this is a creation operation. Any custom body fields override standard fields when both are provided.

Links

Discussion