Update Ticket Attack

Updates the attack status of a specified ticket.

HTTP Request

PUT /api/sonar/tickets/:guid/attack
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \    
     -d attack=true \
     -X PUT \
     https://HOSTNAME/api/sonar/tickets/201dc306-5ef7-4d4f-b872-1fa0f4d7dc56/attack
Request Parameters
KeyRequiredTypeDescriptionNote
guidOStringTicket GUID36 characters
attackXBooleanAttack statusIf not specified, null.

Success Response

{}

Error Responses

Ticket identifier is not in valid GUID format

HTTP status code 400

{
    "error_code": "invalid-param-type",
    "error_msg": "guid should be guid type."
}
Ticket is not found

HTTP status code 500

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