Skip to main content

Delete ticket

DELETE{{server}}/api/v1/smart/ticket

This request deletes the ticket. The customer can add a comment free-text as the reason of deletion in the comment field in the body. If the deletion was success, it returns status 204

Request​

Authorization​

HeaderValue
AuthorizationSmartToken {{smartToken}}

Headers​

KeyValue
Acceptapplication/json

Body (json)​

{
"comment": "Too long waiting"
}

Code snippets​

curl -X DELETE '{{server}}/api/v1/smart/ticket' \
-H 'Accept: application/json' \
-H 'Authorization: SmartToken {{smartToken}}' \
-H 'Content-Type: application/json' \
-d '{
"comment": "Too long waiting"
}'

Example​

Example request
DELETE{{server}}/api/v1/smart/ticket
Headers (1)
KeyValue
Acceptapplication/json
Body
{
"comment": "Too long waiting"
}
Example response 204 No Content
No response body