Archive API docs
    Jump to

    Narrow by kind with a prefix — q: queries, m: mutations, t: types, g: guides, f: fields and arguments.

    Jump to examples ↓
    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

    Object, input and enum types open in place — use + to reveal their fields. A type that is already open above the row stops at a ↻ circular marker, and anything nested past the depth limit links out to its own page instead.

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