Collections
Reorder collections
POSThttps://api.ordexs.com/v1/collections/reorder
Sets the order collections appear in (menus, the storefront's collection list), like dragging them on the page. Pass every collection id, first to last.
Body
- collection_idsarray of stringsRequired
up to 500 items · at least 1 item
Returns
200 OK · Every collection, in the new order. CollectionList
- objectstringRequired
always "list"
- has_morebooleanRequired
- next_cursorstring or nullRequired
Pass as
cursorto get the next page.nullon the last page. - dataarray of CollectionsRequired
17 child fields
- idstring
starts with col_
- objectstring
always "collection"
- titlestring
- handlestring
- descriptionstring or null
- image_urlstring or null
- statusstring
One of
active,draft - kindstring
One of
manual,smart - rulesarray of CollectionRules
3 child fields
- fieldstringRequired
One of
title,vendor,product_type,category,status,tag,price,compare_at_price,inventory - opstringRequired
One of
eq,neq,contains,not_contains,starts_with,ends_with,is_set,is_not_set,gt,lt - valuestring
up to 200 characters
- rules_matchstring
One of
all,any - sort_modestring
- positioninteger
- product_countinteger
- seoobject
2 child fields
- titlestring or null
- descriptionstring or null
- livemodeboolean
- created_atstring
ISO 8601 date-time, UTC
- updated_atstring
ISO 8601 date-time, UTC
Errors
Every error has the same shape. This endpoint can answer with:
