Documents
/documents/{documentId}
Patch a document.
PATCH
/
api
/
v1
/
documents
/
{documentId}
Copy
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",
}'
Copy
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My patched document",
...
}
}
Params
A valid document
id.
Body
The name of the document.
Response
Indicates whether the call was successful.
A document
object.
Copy
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",
}'
Copy
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My patched document",
...
}
}
Copy
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",
}'
Copy
{
"success": true,
"data": {
"id": "cli28c2vd00016itbrlhekwql",
"name": "My patched document",
...
}
}
Assistant
Responses are generated using AI and may contain mistakes.