Skip to content

Deletes Unterminated Task by SID

Request

Delete the unterminated task from Twilio API (this proxy's Twilio's Task API).

The deleted task immediately has its assignment status transition to canceled. This also generates the Twilio event task.deleted.

An "unterminated" task is an "active" task—or any task which has yet to have its task assignment status set to completed or canceled. See: https://www.twilio.com/docs/taskrouter/lifecycle-task-state

Security
oauth2(Required scopes:
taskrouter.task.unterminated:upd...
)
or bearerAuth or apiKeyHeader
Path
companyIdstringrequired

The unique company identifier.

taskSidstringrequired

The sid of the task

DELETE
/companies/{companyId}/twilio-unterminated-tasks/{taskSid}
curl -i -X DELETE \
  'https://sandboxapi.peach.finance/api/companies/{companyId}/twilio-unterminated-tasks/{taskSid}' \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>'

Responses

Success

Bodyapplication/json
messagestring

Description of the server action or error.

statusinteger

HTTP status code.

Response
{ "message": "string", "status": 0 }