Update collection
PATCH
/ admin/ v1/ stores/ {store_id}/ collections/ {collection_id}- products:write
Partially update a collection. Send If-Match: "v{version}" to avoid overwriting someone else's changes.
Path parameters
store_idstringrequiredThe store's ID, like
store_01k8qs5s…. Apps get it with the install, in the OAuth redirect and the token response.collection_idstringrequiredThe collection's ID, like
col_01k8qs5s….
Headers
If-Matchstring · or nullETag from the last read, e.g. "v3"
shop-api-versionYYYY-MMThe version to answer in. Without it, your app’s pinned version, else the newest.
Body
titlestring · or nullhandlestring · or nulldescription_htmlstring · or nullrulesobject · or nullSmart collections only; replaces the whole rule set.
sort_orderenum · or nullThe order products appear in within a collection.
- manual
- title_asc
- title_desc
- price_asc
- price_desc
- created_desc
- created_asc
image_media_idstring · or nullTypeID with the
medprefix.seoobject · or nullSEO fields of a PATCH: absent keeps,
nullclears.template_suffixstring · or nullThe theme template its page uses;
nullgoes back to the default.publishedboolean · or null
Returns
200 Updated collection.
Errors
- 404
not_foundNo such collection. - 409Handle already used.
- 412
precondition_failedThe collection changed since it was read. - 422
validation_failedValidation failed.