Approve Ticket

Approves a submitted ticket.

HTTP Request

POST /api/sonar/tickets/:guid/approve
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \
     -X POST \
     https://HOSTNAME/api/sonar/tickets/6206eb0e-fb44-4f13-82ca-d92454cfd35e/approve
Request Parameter
KeyRequiredTypeDescriptionNote
guidOStringTicket GUID36 characters

Success Response

{}

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."
}
No approver privileges

HTTP status code 500

{
    "error_code": "illegal-state",
    "error_msg": "no-permission"
}
Ticket is not submitted yet

HTTP status code 500

{
    "error_code": "illegal-state",
    "error_msg": "cannot approve or reject unsubmitted ticket: c63ff706-85bc-44e3-9acd-24a0628da1fb"
}