Admin API / Mutations

moveCollection

Moves a collection in the display order. It places the collection directly after afterCollectionId, or first when afterCollectionId is null or omitted. Listing and livestream collections share one display order. The storefront and collections with sort: { field: POSITION } follow it. The other collections keep their order. A repeat changes nothing, and a move back to the earlier place restores the order. Send one move at a time: two concurrent moves can undo each other. Requires the ADMIN role or higher.

Requires a client key with one of these scopes: admin:collections:writeRequires this member role or higher: ADMIN
moveCollection(
  input: MoveCollectionInput!
): MoveCollectionPayload!

Arguments

ArgumentTypeDescription
inputMoveCollectionInput!The collection and its new place.

Return type

MoveCollectionPayload!