collection Duplicate
Requires access scope. Also: The store must not be on the Starter or Retail plans and user must have permission to create collections. If also copying publications, user must have permission to manage publications.
Duplicates a collection.
An existing collection ID and new title are required.
Publication Duplication
Publications may be excluded by passing in the input.
Metafields
Metafield values are not duplicated if the unique values capability is enabled.
Arguments
- Anchor to inputinput•Collection
Duplicate Input! required The input for duplicating a collection.
- Anchor to collectioncollection•Collection
The newly created duplicate collection. Will contain all data if duplication completed synchronously. If async processing is required, the collection will be created but products will be added in the background and can be tracked via the job field or the collection's active_operations field.
- •Job
The background job copying manually included products onto the target collection. Only returned if async processing is required, otherwise products will be copied synchronously when the collection is created.
- Anchor to userErrorsuser•[Collection
Errors Duplicate User Error!]! non-null The list of errors that occurred from executing the mutation.