Update Widget
Widgets
Update Widget
Updates an existing widget. All fields in the request body are optional.
PATCH
Update Widget
Headers
Your API key for authentication.
Path Parameters
UUID of the widget to update.
Body
New pathway UUID to associate with the widget. Must be defined if
agent_prompt is null.New pathway UUID to associate with the widget. Must be defined if
pathway_id is null.New array of allowed domains where the widget can be embedded.
New rate limit for messages (minimum: 0).
New widget configuration object (flexible JSON). Supports
timeoutSeconds to configure conversation timeout (default: 86400 seconds / 24 hours).New agent UUID to associate with the widget.
New URL to receive post-conversation webhook payloads when conversations end. See Post-Conversation Webhooks for payload details.
Response
HTTP status code (200 for success).
The updated widget object containing:
id(string): Widget UUIDpathway_id(string): Associated pathway UUIDagent_id(string | null): Associated agent UUID or nullallowed_domains(string[]): Array of allowed domainsmessages_per_minute(number): Rate limit for messagesconfig(object): Widget configuration objectwebhook_url(string | null): Post-conversation webhook URL or nullcreated_at(string): ISO timestampupdated_at(string): Updated ISO timestamp
Always null on successful response.
Docs for agents: llms.txt