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

    createCustomAttributeSchema

    Create a creator custom attribute field of a value or select type. The key is derived from the name.

    Arguments

    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.

    name String! required
    Display name, at most 100 characters. It must differ from every creator field name, ignoring case and surrounding whitespace. Built-in names such as Labels are refused.
    options [String!]
    Initial option names for SINGLE_SELECT_V3 and MULTIPLE_SELECT_V2, at most 100, each at most 255 characters. Repeated names collapse. Omit it for other types.
    type CustomAttributeType! required
    Value type. Only TEXT, URL, EMAIL, PHONE, NUMBER, BOOLEAN, DATE, DATETIME, TEXT_LIST, NUMBER_LIST, BOOLEAN_LIST, DATE_LIST, DATETIME_LIST, SINGLE_SELECT_V3, MULTIPLE_SELECT_V2 can be created; any other type is a userError on type.

    Returns

    schema CustomAttributeSchema
    The created field, as customAttributeSchemas(entity: CREATOR) lists it. Null when userErrors is non-empty.
    userErrors [UserError!]!
    Errors that refused the request, on the input at fault: a blank, long, taken or built-in name, a type that cannot be created, unusable options, or the 250-field workspace cap on base (built-in fields do not count). Empty on success.