Skip to main content
PUT
/
webrtc
/
tokens
/
{uuid}
Update a widget token payload
curl --request PUT \
  --url https://api.wavix.com/v2/webrtc/tokens/{uuid} \
  --header 'Content-Type: application/json' \
  --data '{
  "payload": {}
}'
{
  "uuid": "550e8400-e29b-41d4-a716-446655440000",
  "sip_trunk": "my-sip-trunk",
  "payload": {},
  "ttl": 3600
}

Authorizations

appid
string
query
required

An API key to authorize your request

Path Parameters

uuid
string<uuid>
required

Token ID

Body

application/json

New payload data

payload
object
required

Arbitrary data to be associated with the token

Example:
{}

Response

The widget token payload successfully updated

uuid
string
required

Token ID

Example:

"550e8400-e29b-41d4-a716-446655440000"

sip_trunk
string
required

SIP trunk name

Example:

"my-sip-trunk"

payload
object | null

Arbitrary data associated with the token

Example:
{}
ttl
integer | null

Time to live, in seconds

Example:

3600

I