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
- application/json
Body
Possible values: non-empty and <= 250 characters
The name of the category to create.
Possible values: >= 1, <= 100
The names of up to 100 categories to create at once.
Responses
- 201
- 400
- 403
- 404
- 413
- 429
- 499
- 500
- 503
- 504
- default
The category, or the list of categories.
- application/json
- Schema
- Example (from schema)
Schema
- API_V8_PARTNER_CATEGORIES_CATEGORYRESPONSE
- API_V8_PARTNER_CATEGORIES_CATEGORIESBULKCREATERESPONSE
- Array [
- ]
Possible values: > 0
The unique identifier of the category.
Possible values: non-empty
The name of the category.
Whether the category is one of the account's default categories, the list used to categorize documents.
results object[]required
One entry per distinct name, in the order given.
Possible values: > 0
The unique identifier of the category.
Possible values: non-empty
The name of the category.
Whether the category is one of the account's default categories, the list used to categorize documents.
true if this request created the category, false if it already existed.
{}
User error
- application/json
- Schema
- Example (from schema)
Schema
- MALFORMED_PARAMETERS
Default value: fail
Default value: Malformed parameters
Default value: [object Object]
{}
User error
- application/json
- Schema
- Example (from schema)
Schema
- ONLY_COMPANY_ADMINS_CAN_CREATE_CATEGORIES
Default value: fail
Default value: Only company admins can create categories
{}
Not found
- application/json
- Schema
- Example (from schema)
Schema
- NOT_FOUND
- DOCUMENT_NOT_FOUND
Default value: fail
Default value: Not found.
Default value: fail
Default value: Document Not Found
{}
Request body too large
- application/json
- Schema
- Example (from schema)
Schema
- REQUEST_BODY_TOO_LARGE
Default value: fail
Default value: Request body too large
{}
Rate limit
- application/json
- Schema
- Example (from schema)
Schema
- YOU_HAVE_BEEN_RATE_LIMITED
Default value: fail
Default value: You have been rate limited
Default value: [object Object]
{}
User error
- application/json
- Schema
- Example (from schema)
Schema
- CLIENT_CLOSED_REQUEST_OR_LOST_CONNECTION
Default value: fail
Default value: Client closed request or lost connection
{}
Unexpected error
Service is temporarily unavailable
- application/json
- Schema
- Example (from schema)
Schema
- SERVICE_IS_TEMPORARILY_UNAVAILABLE_PLEASE_TRY_AGAIN_LATER
Default value: fail
Default value: Service is temporarily unavailable. Please try again later
{}
Gateway timeout. Returned if request takes more than 120 seconds. The request might finish successfully later.
- application/json
- Schema
- Example (from schema)
Schema
- GATEWAY_TIMEOUT
Default value: fail
Default value: Gateway timeout
{}
General error response
- application/json
- Schema
- Example (from schema)
Schema
Default value: fail
{
"status": "fail",
"error": "string"
}