PATCH/api/v1/documents/{doc_id}
Update a document
Only title and extracted_date can be changed.
PARAMETERS
- doc_idpath · stringREQUIRED
- Document id.e.g. string
REQUEST BODY · APPLICATION/JSON · REQUIRED
{
"extracted_date": "2026-09-30"
}
REQUEST
curl -X PATCH "https://gateway.kumkuat.ai/api/v1/documents/string" \
-H "X-API-Key: YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"extracted_date": "2026-09-30"
}'
import requests
r = requests.patch("https://gateway.kumkuat.ai/api/v1/documents/string", headers={"X-API-Key": "YOUR_KEY"}, json={
"extracted_date": "2026-09-30"
})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://gateway.kumkuat.ai/api/v1/documents/string", {
method: "PATCH",
headers: { "X-API-Key": "YOUR_KEY", "Content-Type": "application/json" },
body: JSON.stringify({
"extracted_date": "2026-09-30"
})
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"document": {
"auto_tags": [
{
"extracted_value": "Jane Doe",
"name": "Executives"
}
],
"content_type": "transcript",
"id": "c0a8e2f4-1b7d-4e2a-8c9f-5d6e7a8b9c01",
"source_url": "https://investors.example.com/q3-call",
"tags": [
"string"
],
"title": "Acme Q3 earnings call transcript",
"word_count": 4210,
"workspace_id": "string"
}
}
