cURL
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 a specific document’s metadata
The unique identifier of the document to update
Document updated successfully
The response is of type object.
object