Cancel Ticket Attachment Token

Cancels a token issued by the Create Ticket Attachment Token endpoint and aborts the Upload File request in progress. Use it when you give up on an upload before calling Create Ticket Attachment.

Required Permissions

Available to any authenticated user.

HTTP Request

DELETE /api/sonar/ticket-attachment-tokens/:token
cURL Example
curl -H "Authorization: Bearer <API_KEY>" \
     -X DELETE \
     https://HOSTNAME/api/sonar/ticket-attachment-tokens/a1b2c3d4-e5f6-7890-abcd-ef1234567890
Request Parameters
Path Parameters
KeyTypeDescriptionNote
tokenStringFile upload token36 characters

Success Response

{}

Error Responses

Token is missing

HTTP status code 400

{
  "error_code": "null-argument",
  "error_msg": "token should be not null"
}