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

    addCustomAttributeOptions

    Add options to a creator select field; names the field already has are skipped.

    Arguments

    key String! required
    Key of a SINGLE_SELECT_V3 or MULTIPLE_SELECT_V2 creator field, as customAttributeSchemas(entity: CREATOR) lists it. The labels key is refused; use createLabels.
    names [String!]! required
    Option names to add, 1 to 100, each at most 255 characters once trimmed. A field holds at most 500 options.

    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.

    addedOptionIds [ID!]!
    IDs of the options this call created, in submission order. Empty when every name existed.
    schema CustomAttributeSchema
    The field with all its options. Null when userErrors is non-empty.
    skippedNames [String!]!
    Submitted names the field already had, trimmed, in submission order. Nothing was added for them.
    userErrors [UserError!]!
    Errors that refused the request: an unknown, read-only or non-select key, the labels key, unusable names, or the option cap. Empty on success.