AvantGuard - NinjaOne icon

AvantGuard - NinjaOne

AvantGuard - NinjaOne

Actions159

Overview

This node operation creates a new location within an organization in the Management resource. It is useful for scenarios where you need to programmatically add physical or logical locations associated with an organization, such as offices, warehouses, or service centers. For example, a company expanding its operations can use this node to register new office locations automatically in their management system.

Properties

Name Meaning
Id The unique identifier of the organization under which the location will be created.
Additional Body Fields Optional fields to provide more details about the location:
- Name The name of the location (e.g., "Headquarters", "Warehouse 1").
- Address The physical address of the location.
- Description A textual description of the location.
- User Data Custom attributes as JSON to store additional user-defined data related to the location.
- Tags JSON array of tags to categorize or label the location.
- Fields JSON object representing custom fields for further customization of the location data.

Output

The node outputs JSON data representing the newly created location entity. This typically includes all the properties sent in the request along with any additional metadata or identifiers assigned by the backend service upon creation. There is no indication that binary data is output by this node.

Dependencies

  • Requires an API key credential for authentication to the AvantGuard NinjaOne API.
  • The base URL for the API must be configured in the node credentials.
  • The node uses the @avantguardllc/n8n-openapi-node package and an OpenAPI specification (openapi.json) bundled internally to build requests.

Troubleshooting

  • Missing or invalid Id: Since the Id property is required, omitting it or providing an invalid value will cause errors. Ensure the organization ID is correct and provided.
  • Invalid JSON in custom fields: The userData, tags, and fields properties expect valid JSON strings. Malformed JSON will cause parsing errors.
  • Authentication errors: If the API key or base URL is misconfigured, the node will fail to authenticate. Verify credentials and endpoint settings.
  • API response errors: If the backend rejects the request due to invalid or missing fields, check the optional body fields for correctness and completeness.

Links and References

Discussion