Skip to main content
PATCH
/
api
/
v3
/
documents
/
categories
/
edit
Edit Category Name
curl --request PATCH \
  --url https://api.nugen.in/api/v3/documents/categories/edit \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "old_name": "<string>",
  "new_name": "<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.

Body

application/json

Request model for editing category name

old_name
string
required
new_name
string
required

Response

Successful Response