Skip to main content

Create categories

POST 

/api/v8/partner/categories

Create one category with name, or up to 100 at once with names. Names that already exist are returned, not duplicated. The categories are added to the account's default categories, and to every user of the account when the caller is a company admin. With name the response is the category; with names it lists each one and whether it was created.

Request​

Body

    name (string | null)

    Possible values: non-empty and <= 250 characters

    The name of the category to create.

    names string[]

    Possible values: >= 1, <= 100

    The names of up to 100 categories to create at once.

Responses​

The category, or the list of categories.

Schema
    anyOf
    id integerrequired

    Possible values: > 0

    The unique identifier of the category.

    name stringrequired

    Possible values: non-empty

    The name of the category.

    is_default booleanrequired

    Whether the category is one of the account's default categories, the list used to categorize documents.

Loading...