Skip to content

Update Template Endpoint

PUT
/v1/templates/{template_id}
curl --request PUT \
--url http://localhost:8080/v1/templates/example \
--header 'Content-Type: application/json' \
--data '{ "description": "example", "prompt_overlay": "", "json_schema": {}, "validation_rules": [ {} ], "review_thresholds": {}, "post_processing": {} }'

Create a new version of an existing template.

Versions are immutable — every PUT creates a new row. The caller’s template name is derived from the referenced template_id.

template_id
required
Template Id
string
Media type application/json
TemplateUpdatePayload
object
description
Any of:
string
prompt_overlay
Prompt Overlay
string
""
json_schema
required
Json Schema
object
key
additional properties
any
validation_rules
Validation Rules
Array<object>
object
key
additional properties
any
review_thresholds
Review Thresholds
object
key
additional properties
any
post_processing
Any of:
object
key
additional properties
any

Successful Response

Media type application/json
Response Update Template Endpoint V1 Templates Template Id Put
object
key
additional properties
any
Example generated
{}

Validation Error

Media type application/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Example generated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example",
"input": "example",
"ctx": {}
}
]
}