Partially update a product collection widget
Updates one or more fields of a product collection widget. Fields left out keep their current value.
Important:
widget_typeandattributesare required. Send the current values when they are not meant to change. The stored attributes are replaced by the object sent.
Localizable attributes are written in the language active for the request — see IGNORE_ACCEPT_LANGUAGE_HEADER in the section introduction.
Token credential sent in the Authorization header, in the form: Token <your-token>. Requires a staff (admin) account.
The unique identifier of the product collection widget.
Request body for partially updating a product collection widget. widget_type and attributes must always be included; every other field is optional and keeps its stored value when left out.
The display name of the widget.
The identifier storefront templates use to render the widget. Must not already belong to another CMS widget.
The path of the template that renders the widget.
The identifier of the widget type. Always required — the attribute keys are validated against it.
3The identifier of the product collection whose products the widget shows.
The maximum number of products the widget shows.
The extraction strategy, given by its name or its value, or null for the default strategy.
The updated product collection widget.
A product collection widget — a CMS widget that renders products from a product collection.
The unique identifier of the widget.
When the widget was created.
When the widget was last modified.
The display name of the widget.
Summer PicksThe identifier storefront templates use to render the widget. Unique across all CMS widgets.
summer-picksThe identifier of the widget type whose schema defines the accepted attributes.
3The path of the template that renders the widget.
widgets/product-carousel.htmlThe identifier of the product collection whose products the widget shows.
12The maximum number of products the widget shows.
10The value of the extraction strategy, or null when the default strategy is used. See Extraction Strategies in the section introduction.
omnishop.search.strategies.FirstItemSearchExtractionStrategyPossible values: 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 product collection widget does not exist.
The request is well-formed but violates a business rule — an attribute value does not satisfy its schema entry (attribute_input_type_100), or, on create only, the slug generated from name already belongs to another product collection widget (cms_product_collection_widget_100).
PATCH /api/v1/remote/1/product_collection_widgets/{id}/ HTTP/1.1
Host: sandbox.akinon.com
Authorization: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 169
{
"name": "text",
"slug": "text",
"template": "text",
"widget_type": 3,
"attributes": {
"title": "Summer Picks"
},
"product_collection": 1,
"product_limit": 1,
"extraction_strategy": null
}{
"pk": 1,
"created_date": "2026-01-01T00:00:00.000Z",
"modified_date": "2026-01-01T00:00:00.000Z",
"attributes": {
"title": "Summer Picks",
"layout": "carousel"
},
"name": "Summer Picks",
"slug": "summer-picks",
"widget_type": 3,
"template": "widgets/product-carousel.html",
"attributes_kwargs": {
"layout": {
"value": "carousel",
"data_type": "dropdown"
}
},
"product_collection": 12,
"product_limit": 10,
"extraction_strategy": "omnishop.search.strategies.FirstItemSearchExtractionStrategy"
}Last updated
Was this helpful?

