Update a widget
Fully replaces a widget. name, slug, widget_type, and template are required.
slugis normalized (lower case, underscores replaced by hyphens) before it is stored. A slug that exactly matches another widget's is rejected with400; one that matches only after normalization is rejected with406(cms_widget_100).When
attributesis sent, it replaces the stored values — non-localizable values and the localizable values of the request language — and keys not defined in the widget type's schema are dropped. When it is omitted, the stored values are kept.The request language is resolved as described under
IGNORE_ACCEPT_LANGUAGE_HEADERin Dynamic Settings & Environment Variables.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the widget.
The body of a widget full update request.
The display name of the widget.
The unique key of the widget. Letters, digits, underscores, and hyphens only; converted to lower case, with underscores replaced by hyphens, before it is stored.
^[-a-zA-Z0-9_]+$The identifier of an existing widget type.
The path of the template used to render the widget.
The updated widget.
A CMS widget.
The unique identifier of the widget.
When the widget was created.
When the widget was last changed.
The display name of the widget. Not unique.
The unique, normalized (lower-case, hyphenated) key the storefront uses to look the widget up.
The identifier of the widget type.
The path of the template used to render the widget.
The request contains invalid or missing data.
Authentication credentials were not provided or are invalid.
The authenticated user does not have administrator privileges.
The requested widget does not exist, or it is a product collection widget.
The request is well-formed but violates a business rule — a slug that is already taken once normalized, or an attribute value that does not satisfy the widget type's schema. See the WidgetBusinessError schema for the individual codes.
PUT /api/v1/remote/1/widgets/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 147
{
"name": "Home Hero Banner",
"slug": "home-hero-banner",
"widget_type": 3,
"template": "widgets/hero-banner-v2.html",
"attributes": {
"title": "Autumn Sale"
}
}{
"pk": 12,
"created_date": "2026-09-29T09:08:29.608203Z",
"modified_date": "2026-09-29T09:08:29.608215Z",
"name": "Home Hero Banner",
"slug": "home-hero-banner",
"widget_type": 3,
"template": "widgets/hero-banner.html",
"attributes": {
"title": "Summer Sale",
"subtitle": "Up to 50% off"
},
"attributes_kwargs": {}
}Last updated
Was this helpful?

