Cancel a fax
POST/faxes/:id/actions/cancel
Cancel the outbound fax that is in one of the following states: queued
, media.processed
, originated
or sending
Request
Path Parameters
id uuidrequired
The unique identifier of a fax.
Responses
202: Successful response upon accepting cancel fax command
- application/json
404: Fax does not exist
422: Unprocessable entity
default: Unexpected error
- application/json
Request samples
curl -L -X POST 'https://api.telnyx.com/v2/faxes/:id/actions/cancel' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>'
Response samples
{
"data": {
"result": "ok"
}
}
{
"errors": [
{
"code": "string",
"title": "string",
"detail": "string",
"source": {
"pointer": "string",
"parameter": "string"
},
"meta": {}
}
]
}