Skip to main content
PATCH
Set document category

Authorizations

Authorization
string
header
required

Machine-to-machine clients use the OAuth 2.0 client credentials grant. Each tenant has its own authorization server: in the token URL below, replace tenant with your tenant identifier.

Headers

tenant
string
required

Your tenant identifier. Requests without it are rejected.

Path Parameters

documentId
string
required

the document id to patch metadata

Pattern: ^document(_test)?_[346789ABCDEFGHJKLMNPQRTUVWXYabcdefghijkmnpqrtwxyz]{21}$

Body

application/json
category
string
required

category of the document

Example:

"kbis"

aiCorrection
object

AI classification correction context, provided when overriding an AI suggestion

Response

The response is of type object.