Skip to main content
PUT
/
api
/
v3
/
documents
/
{id}
/
categories
Update Document Categories
curl --request PUT \
  --url https://api.nugen.in/api/v3/documents/{id}/categories \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "categories": [
    "<string>"
  ]
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

Body

application/json

Request model for updating document categories

categories
string[]
required

List of categories to be assigned to the document

Response

Successful Response