Skip to main content

Update Document

Update document metadata or content.

Endpoint

PATCH /api/v3/documents/{id}

Request

{
"name": "Updated Meeting Notes",
"content": {
"text": "Updated transcript text..."
}
}

Response

{
"id": 123,
"name": "Updated Meeting Notes",
"updated_at": "2025-01-17T16:00:00Z"
}

Examples

Update Name

curl -X PATCH https://api.scriptix.io/api/v3/documents/123 \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Updated Name"}'

Update Content

response = requests.patch(
'https://api.scriptix.io/api/v3/documents/123',
headers={'Authorization': 'Bearer YOUR_API_KEY'},
json={
'content': {
'text': 'Updated transcript text...'
}
}
)