Authentication & Scope
Requires thetemplates-write ability.
Request
Path Parameters
Body Parameters
Response
200 OK – The updated template.
Template changes are versioned. You can view version history in the dashboard.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Update an extraction template’s name, description, schema, or settings.
templates-write ability.
PUT /extractions/templates/550e8400-e29b-41d4-a716-446655440000 HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>
Content-Type: application/json
{
"name": "Updated Invoice Template",
"schema_json": {
"config": {
"reasoning_enabled": true
},
"groups": {
"invoice_details": {
"search_query": "invoice number, date, total",
"fields": {
"invoice_number": { "type": "string" },
"date": { "type": "string" },
"total_amount": { "type": "number" }
}
}
}
}
}
| Parameter | Type | Required | Description |
|---|---|---|---|
templateId | uuid | Yes | The template ID |
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | Updated name |
description | string | No | Updated description |
schema_json | object | No | Updated extraction schema |
settings | object | No | Updated parsing settings |
200 OK – The updated template.
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Updated Invoice Template",
"schema_json": { ... },
"settings": { ... },
"workspace_id": 1,
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-16T09:00:00Z"
}
