Archive API docs
MUTATION

addItemToCollections

Add an item to one or more collections.

Arguments

autoCreate Boolean default: false
Automatically create collections by name if they do not exist.
collectionIds [ID!] default: []
IDs of existing collections, as returned by the collections query for this workspace. Several id forms are accepted depending on how the workspace stores Collections. An id from another workspace, or one this workspace cannot write through this API, rejects the WHOLE call with a userErrors entry naming the offending id under collectionIds.
collectionNames [String!] default: []
Names of collections to add the item to.
itemId ID! required
ID of the item to add to collections.

Returns

item Item
The updated item.
userErrors [UserError!]!
List of errors that occurred.