Update manual collection
PUT https://{handle}.myshopline.com/admin/openapi/v20260901/products/custom_collections/:custom_collection_id.json
handle : The store's unique identifier, which is the prefix of the store's domain name. For example, if a store's domain name is open001.myshopline.com , the store handle is open001 .Update a manual collection in the store.
TIP
Manual collection SEO details are managed via metafields. For operation instructions, refer to Editing SEO information for the corresponding resource page through metafield's Open API.
When updating a manual collection via this API, the SEO information will not be updated.
Path Parameters
- custom_collection_id string requiredThe unique identifier for the manual collection.
Maximum length:64Example:12257170618007271602093384
Request Headers
- Content-Type string requiredThe field must be set to the fixed value
application/json; charset=utf-8. - Authorization string requiredThe access token for the API resource. Refer to App authorization to obtain the access token, and then pass the obtained token in the Bearer format.Example:
Bearer eyJhbGciOiJIUzUxMiJ9.eyJhcHBLZXkiOiJmMjM3OWQyMTYyOGMzM2QxMWRiMWZkYjY5N2EzZjdjMjZlNGMwYTA5Iiwic2VsbGVySWQiOiIyMDAwMjM0ODgwIiwic3RvcmVJZCI6IjE2NzIzNjk3Mjk2MDYiLCJ2ZXJzaW9uIjoiVjIiLCJkb21haW4iOiJodHRwczovL3NsLW9wZW4tc2cubXlzaG9wbGluZS5jb20iLCJ0aW1lc3RhbXAiOjE2NzUzMTk0OTI0MzksImlzcyI6Inlzb3VsIiwiZXhwIjoxNzY5OTI3NDkyfQ.UwQzomM2veGCUaOZ0paUxq5dpc7DXuhHYFvsQ_uIAKduzWcb_j2E4q_36El83sp145D4cKbpcE5KCeeIz-JNQw
Request Body
custom_collectionobject required
Manual collection information.bannerobject
The cover image of the collection.alt stringThe alternative textual description of the image, usually a word or phrase with the characteristics or content of the image.
Maximum length: 512Example:This is an image altsrc stringThe link to the image, represented as a URL.
Maximum length: 255Example:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngbody_html stringThe collection description.
Maximum size: 64 KBExample:This is a description.collectsobject[]
A list of manually associated products for the manual collection, which will be bound in the order of the incoming product IDs.
Maximum size: 500position integerThe location of the product in the collection, starts from 1.Example:1product_id stringThe unique identifier for the product.
Maximum length:64Example:16049619743346320200470282handle stringThe semantically unique identifier for the collection, which is generated based ontitleby default.
Maximum length: 255Example:collection-handleimageobject
The image of the collection.alt stringThe alternative textual description of the collection image, usually a word or phrase with the characteristics or content of the image.
Maximum length: 512Example:This is an image altsrc stringThe link to the collection image, represented as a URL.
Maximum length: 255Example:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngpath stringThe relative path of the collection page. This field does not support clearing. Providing an empty string (""),null, or omitting the field leaves the current relative path unchanged.
Maximum length: 512Example:/collections/springpublished_scope stringThe published scope of collection sales channels. The value of this field is fixed toweb, indicating an online store.sort_order stringIndicates the sorting method of the default sort value for the product list on the category page.alpha-asc: Sort by product name from A to Zalpha-desc: Sort by product name from Z to Aupdated-desc: Sort by update time from newest to oldestupdated-asc: Sort by update time from oldest to newestmanual: Sort by custom ordercreated-desc: Sort by creation time from newest to oldestcreated-asc: Sort by creation time from oldest to newestprice-asc: Sort by the lowest selling price of product styles in ascending orderprice-desc: Sort by the lowest selling price of product styles in descending orderbest-selling-last3days: Sort by sales volume in the last 3 days in descending orderbest-selling-last7days: Sort by sales volume in the last 7 days in descending orderbest-selling-last15days: Sort by sales volume in the last 15 days in descending orderbest-selling-last30days: Sort by sales volume in the last 30 days in descending orderbest-selling-last60days: Sort by sales volume in the last 60 days in descending orderbest-selling: Sort by sales volume in the last 90 days in descending orderadditional-purchase-rate-last3days: Sort by add-to-cart rate in the last 3 days in descending orderadditional-purchase-rate-last7days: Sort by add-to-cart rate in the last 7 days in descending orderadditional-purchase-rate-last15days: Sort by add-to-cart rate in the last 15 days in descending orderadditional-purchase-rate-last30days: Sort by add-to-cart rate in the last 30 days in descending orderadditional-purchase-rate-last60days: Sort by add-to-cart rate in the last 60 days in descending orderadditional-purchase-rate-last90days: Sort by add-to-cart rate in the last 90 days in descending orderconversion-rate-last3days: Sort by conversion rate in the last 3 days in descending orderconversion-rate-last7days: Sort by conversion rate in the last 7 days in descending orderconversion-rate-last15days: Sort by conversion rate in the last 15 days in descending orderconversion-rate-desc: Sort by conversion rate in the last 30 days in descending orderconversion-rate-last60days: Sort by conversion rate in the last 60 days in descending orderconversion-rate-last90days: Sort by conversion rate in the last 90 days in descending orderadditional-purchases-num-last3days: Sort by add-to-cart quantity in the last 3 days in descending orderadditional-purchases-num-last7days: Sort by add-to-cart quantity in the last 7 days in descending orderadditional-purchases-num-last15days: Sort by add-to-cart quantity in the last 15 days in descending orderadditional-purchases-num-last30days: Sort by add-to-cart quantity in the last 30 days in descending orderadditional-purchases-num-last60days: Sort by add-to-cart quantity in the last 60 days in descending orderadd-to-cart-desc: Sort by add-to-cart quantity in the last 90 days in descending orderviews-pv-last3days: Sort by page views in the last 3 days in descending orderviews-pv-last7days: Sort by page views in the last 7 days in descending orderviews-pv-last15days: Sort by page views in the last 15 days in descending orderviews-pv-last30days: Sort by page views in the last 30 days in descending orderviews-pv-last60days: Sort by page views in the last 60 days in descending orderview-desc: Sort by page views in the last 90 days in descending order
template_path stringThe file path of the theme template for the collection details page. This field does not support clearing. Providing an empty string (""),null, or omitting the field leaves the current template assignment unchanged.Example:templates/collection.collection_template_name.jsontitle stringThe title of the collection.
Maximum length: 255Example:This is a collection title
Status Codes
- 200
- 401
- 429
For the complete list of codes and messages, see Http status code.
Response Headers
traceId
A globally unique identifier for the request. It is used to track the request flow throughout the system, allowing for easy location and debugging when issues arise.
Response Body
custom_collectionobject
Manual collection information.bannerobject
The cover image of the collection.alt stringThe alternative textual description of the image, usually a word or phrase with the characteristics or content of the image.Example:This is an image altsrc stringThe link to the image, represented as a URL.Example:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngbody_html stringThe collection description.Example:This is a descriptioncreated_at stringThe date and time when the collection was created. Format: ISO 8601.Example:2025-03-06T02:20:26+08:00handle stringThe semantically unique identifier for the collection, which is generated based ontitleby default.Example:collection-handleid stringThe unique identifier for the collection.Example:12257170618007271602093384imageobject
The image of the collection.alt stringThe alternative textual description of the collection image, usually a word or phrase with the characteristics or content of the image.Example:This is an image altsrc stringThe link to the collection image, represented as a URL.Example:https://img.myshopline.com/image/official/e46e6189dd5641a3b179444cacdcdd2a.pngpublished_at stringThe date and time when the collection was published to the online store. Format: ISO 8601.Example:2025-03-06T02:20:26+08:00published_scope stringThe published scope of collection sales channels. The value of this field is fixed toweb, indicating an online store.sort_order stringIndicates the sorting method of the default sort value for the product list on the category page.alpha-asc: Sort by product name from A to Zalpha-desc: Sort by product name from Z to Aupdated-desc: Sort by update time from newest to oldestupdated-asc: Sort by update time from oldest to newestmanual: Sort by custom ordercreated-desc: Sort by creation time from newest to oldestcreated-asc: Sort by creation time from oldest to newestprice-asc: Sort by the lowest selling price of product styles in ascending orderprice-desc: Sort by the lowest selling price of product styles in descending orderbest-selling-last3days: Sort by sales volume in the last 3 days in descending orderbest-selling-last7days: Sort by sales volume in the last 7 days in descending orderbest-selling-last15days: Sort by sales volume in the last 15 days in descending orderbest-selling-last30days: Sort by sales volume in the last 30 days in descending orderbest-selling-last60days: Sort by sales volume in the last 60 days in descending orderbest-selling: Sort by sales volume in the last 90 days in descending orderadditional-purchase-rate-last3days: Sort by add-to-cart rate in the last 3 days in descending orderadditional-purchase-rate-last7days: Sort by add-to-cart rate in the last 7 days in descending orderadditional-purchase-rate-last15days: Sort by add-to-cart rate in the last 15 days in descending orderadditional-purchase-rate-last30days: Sort by add-to-cart rate in the last 30 days in descending orderadditional-purchase-rate-last60days: Sort by add-to-cart rate in the last 60 days in descending orderadditional-purchase-rate-last90days: Sort by add-to-cart rate in the last 90 days in descending orderconversion-rate-last3days: Sort by conversion rate in the last 3 days in descending orderconversion-rate-last7days: Sort by conversion rate in the last 7 days in descending orderconversion-rate-last15days: Sort by conversion rate in the last 15 days in descending orderconversion-rate-desc: Sort by conversion rate in the last 30 days in descending orderconversion-rate-last60days: Sort by conversion rate in the last 60 days in descending orderconversion-rate-last90days: Sort by conversion rate in the last 90 days in descending orderadditional-purchases-num-last3days: Sort by add-to-cart quantity in the last 3 days in descending orderadditional-purchases-num-last7days: Sort by add-to-cart quantity in the last 7 days in descending orderadditional-purchases-num-last15days: Sort by add-to-cart quantity in the last 15 days in descending orderadditional-purchases-num-last30days: Sort by add-to-cart quantity in the last 30 days in descending orderadditional-purchases-num-last60days: Sort by add-to-cart quantity in the last 60 days in descending orderadd-to-cart-desc: Sort by add-to-cart quantity in the last 90 days in descending orderviews-pv-last3days: Sort by page views in the last 3 days in descending orderviews-pv-last7days: Sort by page views in the last 7 days in descending orderviews-pv-last15days: Sort by page views in the last 15 days in descending orderviews-pv-last30days: Sort by page views in the last 30 days in descending orderviews-pv-last60days: Sort by page views in the last 60 days in descending orderview-desc: Sort by page views in the last 90 days in descending order
template_path stringThe file path of the theme template for the collection page.Example:templates/collection.collection_template_name.jsontitle stringThe title of the collection.Example:This is a collection titleupdated_at stringThe date and time when the collection was last updated. Format: ISO 8601.Example:2025-03-06T02:20:26+08:00
API Explorer
Debugger
Examples
Was this article helpful to you?