PUT
/
widget
/
media
/
{media_id}
curl --request PUT \
  --url https://api.trytldw.ai/v1/widget/media/{media_id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "enabled": true
}'
{
  "embed_link": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

media_id
string
required

Id of media to config widget

Body

application/json

Config to enable/disable widget

enabled
boolean
default:true

Response

200
application/json
Successful Response