PATCH
/
api
/
v1
/
documents
/
{documentId}
curl --location --request PATCH 'https://api.rapidagent.ai/api/v1/documents/{documentId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>' \
--data-raw '{
    "name": "My patched document",
}'
{
  "success": true,
  "data": {
   "id": "cli28c2vd00016itbrlhekwql",
   "name": "My patched document",
    ...
  }
}

Params

documentId
string
required

A valid document id.

Body

name
string

The name of the document.

Response

success
boolean

Indicates whether the call was successful.

data
object

A document object.

curl --location --request PATCH 'https://api.rapidagent.ai/api/v1/documents/{documentId}' \
--header 'Content-Type: application/json' \
--header 'Autorization: Bearer <token>' \
--data-raw '{
    "name": "My patched document",
}'
{
  "success": true,
  "data": {
   "id": "cli28c2vd00016itbrlhekwql",
   "name": "My patched document",
    ...
  }
}