PATCH
/
v2
/
documents
/
{document_id}
Update Document
curl --request PATCH \
  --url https://tavusapi.com/v2/documents/{document_id} \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "document_name": "Updated Document Name",
  "tags": [
    "important",
    "meeting",
    "updated"
  ]
}'
{
  "uuid": "d290f1ee-6c54-4b01-90e6-d701748f0851",
  "document_name": "Updated Document Name",
  "document_url": "https://example.com/document.pdf",
  "status": "ready",
  "created_at": "2024-01-01T12:00:00Z",
  "updated_at": "2024-01-01T13:00:00Z",
  "callback_url": "https://your-server.com/webhook",
  "tags": [
    "important",
    "meeting",
    "updated"
  ],
  "properties": {
    "department": "sales",
    "priority": "high"
  }
}
Update metadata for a specific document. This endpoint allows you to modify the document name and its tags.

Authorizations

x-api-key
string
header
required

Path Parameters

document_id
string
required

The unique identifier of the document to update

Body

application/json

Response

200
application/json

Document updated successfully

The response is of type object.