Update Widget Style
Updates a widget style. Only id is required; pass any subset of the other fields. Changes are reflected immediately for any iframe that fetches this style on next load.
Authentication: Bearer token required.
Endpoint: PUT /api/v2/widget-styles
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | Widget style UUID |
| name | string | No | min 1, max 255 |
| primary_color | string | No | max 32 |
| secondary_color | string | No | max 32 |
| background_color | string | No | max 32 |
| surface_color | string | No | max 32 |
| text_color | string | No | max 32 |
| muted_text_color | string | No | max 32 |
| border_color | string | No | max 32 |
| font_family | string | No | max 255 |
| font_size_base | int | No | min 8, max 32 |
| font_size_heading | int | No | min 10, max 64 |
| font_weight_heading | int | No | min 100, max 900 |
| border_radius | int | No | min 0, max 64 |
| custom_css | string | No | max 32768 |
Response — 200 OK
Returns the updated WidgetStyleResponse.
| Status | Description |
|---|---|
| 400 | Validation error |
| 401 | Unauthorized |
| 403 | No access to style's node |
| 404 | Widget style not found |