Add Ticket Comment

Adds a comment to a specified ticket.

HTTP Request

POST /api/sonar/tickets/:ticket_guid/comments
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \
     -d format=MARKDOWN \
     -d content="* Blocked the IP on the firewall" \
     -X POST \
Request Parameters
ticket_guidOStringTicket GUID36 characters
guidXStringNote GUID36 characters
formatOStringContent formatJSON or MARKDOWN or PLAIN

Error Responses

Identifier is not in valid GUID format

HTTP status code 400

    "error_code": "invalid-param-type",
    "error_msg": "guid should be guid type."
Invalid format is specified

HTTP status code 400

    "error_code": "invalid-argument",
    "error_msg": "format should be one of PLAIN, MARKDOWN, JSON."
Ticket is not found

HTTP status code 500

    "error_code": "illegal-state",
    "error_msg": "ticket not found: 201dc306-5ef7-4d4f-b872-1fa0f4d7dc57"