Delete Call Disposition
Cancel a contact's queued callback, or delete a finished record.
DELETE
What happens depends on the record:
- A callback is queued: the callback is cancelled. The record is kept with
status: "cancelled". - The queued callback has already run: the record is kept and marked
status: "completed". - No further attempts were due (
currentAttemptis-1, or no callback is queued): the record is deleted.
Headers
x-workspace-idstringrequiredWorkspace identifier for the API.
Path Parameters
idstringrequiredThe record's _id, from List Call Dispositions.
Response Fields
messagestringWhat happened: "Job cancelled successfully", "Job already completed." or "Record deleted successfully.".
Errors
| Status | Body | When |
|---|---|---|
400 | {"error": "Workspace ID is required"} | The x-workspace-id header is missing |
404 | {"message": "No call-disposition found for id <id>."} | No record with that ID exists in this workspace |
{
"message": "Job cancelled successfully"
}Last updated on