Assign Ticket

Assigns a ticket to the specified users.

HTTP Request

POST /api/sonar/tickets/:guid/assign
Request using cURL
curl -H "Authorization: Bearer <API_KEY>" \    
     -d type=ASSIGNEE \
     -d assignees=fae7fa2b-756e-4d3d-b314-e631daf70c7d \
     -X POST \
Request Parameters
guidOStringTicket GUID36 characters
typeOStringAssigned roleASSIGNEE or APPROVER
assigneesOList (of strings)User GUID listComma-separated list

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."
Ticket is not found

HTTP status code 500

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