Update Widget
gorgias_update_widgetUpdate an existing widget by ID with a full-replacement operation. Include all fields you want to retain.
Instructions
PUT /api/widgets/{id} — Update an existing widget by ID. This is a full-replacement operation. Include all fields you want to retain.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the widget to update | |
| type | No | Type of data the widget is attached to | |
| order | No | Order of precedence; widgets with lower order appear first (default: 0) | |
| app_id | No | ID of the 3rd party app. Used for type 'customer_external_data' widgets | |
| context | No | The UI context where this widget is displayed. Note: 'user' is deprecated, use 'customer' | |
| template | No | Template to render the data of the widget. Replaces the entire template on update | |
| integration_id | No | ID of the HTTP integration this widget is attached to. Only for type 'http' widgets | |
| deactivated_datetime | No | ISO 8601 datetime when the widget was deactivated. Set to null to reactivate |