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

Ticketing → Add comment to ticket

AI-generated

Summary

Add a comment to an existing ticket by specifying its ticket ID and providing the comment content, optionally including files and custom request parameters.

Inputs

  • Ticket Id (required) — The numeric identifier of the ticket to which the comment will be added.
  • Comment — The comment content in JSON format to add to the ticket.
  • Files — An optional JSON array of files to attach to the comment.
  • Custom Body — Optional arbitrary JSON to include in the request body, which overrides other body fields if there is overlap.
  • Custom Headers — Optional custom HTTP headers to include in the API request.
  • Query Filters — Optional query-string parameters to include in the request URL.
  • Batching — Settings to control batch size and interval when processing multiple input items.
  • Debug — Flag to enable debug output including request details for troubleshooting.
  • Pagination — Pagination settings used for list operations but available here for standardization.
  • Timeout — Maximum time in milliseconds to wait for the server response before aborting.

Output shape

a single JSON object containing the API response to the add comment request

The response includes the server's confirmation and details of the added comment. If debugging is enabled, request details are included under a debug entry. The operation processes one ticket ID at a time, but batching can be used to perform multiple additions sequentially with delay intervals.

Links

Discussion