v1
latestOpenAPI 3.0.32026-07-267015229.9 KBDocuments
Update Document
Update a document's document_name and tags.
patch/v2/documents/{document_id}
Path parameters
document_idstring required
The unique identifier of the document to update
Request body
Example request
{
"document_name": "Updated Document Name",
"tags": [
"docs",
"website",
"updated"
]
}Response
Document updated successfully
Example response
{
"document_id": "d8-5c71baca86fc",
"document_name": "Updated Document Name",
"document_url": "https://docs.example.com/",
"status": "ready",
"created_at": "2024-01-01T12:00:00Z",
"updated_at": "2024-01-01T13:00:00Z",
"callback_url": "https://your-server.com/webhook",
"tags": [
"docs",
"website",
"updated"
],
"crawl_config": {
"depth": 2,
"max_pages": 10
},
"crawled_urls": [
"https://docs.example.com/",
"https://docs.example.com/getting-started",
"https://docs.example.com/api"
],
"last_crawled_at": "2024-01-01T12:00:00Z",
"crawl_count": 1
}