How do I add a comment to a ticket via API?

Question

Which API do I use to add a comment to a ticket?

Answer

To add a comment to a ticket using the API, use the Update Ticket endpoint because the Ticket Comment API has no create endpoint. The Ticket Comment API is read-only by design.