Admin API / Mutations

updateProductCollections

Adds 1 to 100 listings to manual listing collections and removes them from others. Memberships that the input does not name stay, except for collections that share memberships (see removeCollectionIds). Adding a listing that a collection holds, or removing one that it does not hold, changes nothing and succeeds. The caller's listings and the listings of a store that the caller staffs need the SELLER role. Another seller's PUBLIC listing needs the MODERATOR role, and another seller's HIDDEN listing needs the ADMIN role. An ADMINS_ONLY collection needs the ADMIN role. A listing with bids or a started giveaway can change. One result per input ID, in input order; a failed listing does not stop the others. A membership can change the platform fee of later orders when a fee incentive names the collection.

Requires a client key with one of these scopes: admin:products:writeRequires this member role or higher: SELLER
updateProductCollections(
  input: UpdateProductCollectionsInput!
): UpdateProductCollectionsPayload!

Arguments

ArgumentTypeDescription
inputUpdateProductCollectionsInput!The listings and the collections to add and remove.

Return type

UpdateProductCollectionsPayload!