Update a chat widget
Replace a widget's configuration. Send the whole configuration, not a partial one: an optional field you omit is cleared, not carried over.
The publicKey is never changed by an update, and one sent in the body is ignored — a snippet already installed on a customer's site has to keep working across an ordinary save.
Authorization
bearerAuth A Tandem bearer token. Requests are scoped to the organization the token belongs to; no organization header is required.
In: header
Path Parameters
The chat widget's unique ID.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X PUT "https://example.com/v1/agent-media/chat-widgets/string" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{ "widget": { "id": "string", "publicKey": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "name": "string", "displayName": "string", "agentId": "string", "workflowId": "string", "description": "", "avatarUrl": "string", "showAvatar": true, "position": "bottom-right", "launcherIcon": "bubble", "launcherIconUrl": "string", "brandColor": "string", "greeting": "string", "allowedOrigins": [] }}{ "error": "string", "errors": [ { "field": "string", "message": "string" } ]}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}{ "error": "string", "message": "string", "limit": 0, "length": 0, "reason": "string"}