Skip to main content

Update client state

PUT 
/calls/:call_control_id/actions/client_state_update

Updates client state

Request

Path Parameters

    call_control_id stringrequired

    Unique identifier and token for controlling the call

Body

required

Updates client state for every subsequent webhook

    client_state stringrequired

    Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.

Responses

200: Successful response upon making a call control command.

default: Unexpected error

Request samples


curl -L -X PUT 'https://api.telnyx.com/v2/calls/:call_control_id/actions/client_state_update' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: Bearer <TOKEN>' \
-d '{
"client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d"
}'

Response samples


{
"data": {
"result": "ok"
}
}