Delete a rejection reason
Permanently deletes a rejection reason that has never been cited. A reason that any rejection has cited cannot be deleted: the request is refused with 406 Not Acceptable and nothing is removed. Retire such a reason with PATCH and {"is_active": false} instead.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the conversation rejection reason.
The rejection reason was deleted. No response body.
No content
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
No conversation rejection reason exists with the given identifier. Retired reasons (is_active: false) are still retrievable, so this answer means the record does not exist at all. An identifier that is not a number is answered with Not found. instead.
The rejection reason cannot be deleted because at least one rejection has cited it. Nothing is removed. Retire the reason with is_active: false instead.
DELETE /api/v1/remote/1/conversation-rejection-reasons/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Accept: */*
No content
Last updated
Was this helpful?

