NinjaOne icon

NinjaOne

Consume NinjaOne API

Actions158

Ticketing → Create Comment

AI-generated

Overview

This node integrates with the NinjaOne API to perform various operations related to IT management. Specifically, for the Ticketing resource and the Create Comment operation, it allows users to add comments to existing tickets within the NinjaOne system. This is useful in scenarios where automated workflows need to update ticket statuses or append notes based on external triggers or processes.

For example, when a monitoring system detects an issue, this node can automatically add a comment to the relevant ticket to inform support staff of the detected problem.

Properties

Name Meaning
Ticket Id The unique numeric identifier of the ticket to which the comment will be added.

Output

The node outputs an array of JSON objects corresponding to each input item processed. Each output JSON object contains the response from the NinjaOne API after attempting to create a comment on the specified ticket. The exact structure depends on the NinjaOne API's response but generally includes details about the created comment such as its ID, content, author, and timestamps.

No binary data output is produced by this operation.

Dependencies

  • Requires an active connection to the NinjaOne API using OAuth2 authentication.
  • The node expects the user to configure an OAuth2 API credential for NinjaOne within n8n.
  • Network access to the NinjaOne API endpoints is necessary.

Troubleshooting

  • Missing or invalid Ticket Id: If the Ticket Id property is not provided or invalid, the API call will fail. Ensure that the ticket ID exists and is correctly passed as a number.
  • Authentication errors: If the OAuth2 credentials are missing, expired, or invalid, the node will throw authentication errors. Re-authenticate or update the credentials as needed.
  • API request failures: Network issues or API downtime may cause request failures. Check connectivity and NinjaOne service status.
  • Binary data errors: Although not applicable for this operation, other operations requiring binary data will throw errors if the expected binary property is missing.

Links and References

Discussion