Update call
POST/texml/calls/:call_sid/update
Update TeXML call. Please note that the keys present in the payload MUST BE formatted in CamelCase as specified in the example.
Request
Path Parameters
The CallSid that identifies the call to update.
- application/json
Body
required
Update Call request object
The value to set the call status to. Setting the status to completed ends the call.
The URL where TeXML will make a request to retrieve a new set of TeXML instructions to continue the call flow.
Possible values: [GET
, POST
]
HTTP request type used for Url
.
A failover URL for which Telnyx will retrieve the TeXML call instructions if the Url is not responding.
Possible values: [GET
, POST
]
HTTP request type used for FallbackUrl
.
URL destination for Telnyx to send status callback events to for the call.
Possible values: [GET
, POST
]
HTTP request type used for StatusCallback
.
TeXML to replace the current one with.
Responses
200: Successful response upon updating a TeXML call.
- application/json
Request samples
curl -L 'https://api.telnyx.com/v2/texml/calls/:call_sid/update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"Status": "completed"
}'
Response samples
{
"data": {
"sid": "c46e06d7-b78f-4b13-96b6-c576af9640ff",
"status": "accepted"
}
}