Update Prompt Version Draft
Updates the draft template code of a specific version. Only versions currently in the 'draft' status may be modified.
Path parameters
Unique prompt UUID.
Version sequence number (integer) or version tag (string) to update.
Request body
Example request
{
"template": "Hello, {{.name}}! Count is {{.count}}.",
"model": "openai/gpt-4.1-mini",
"model_params": {
"temperature": 0.2
}
}Response
Version updated successfully
Example response
{
"version": {
"template": "Hello {{.name}}!",
"model": "anthropic/claude-opus-4-6",
"model_params": {
"temperature": 0.7,
"max_tokens": 1024,
"thinking": {
"type": "enabled",
"budget_tokens": 512
}
}
}
}Changes
Changed in 6 of the 18 revisions of this API.114
- ○
the request property
modelbecame nullablerequest-property-became-nullable
- ○
the request property
model_paramsbecame nullablerequest-property-became-nullable
- ○
- ○
added the new optional request property
modelnew-optional-request-property
- ○
added the new optional request property
model_paramsnew-optional-request-property
- ○
the request property
templatebecame optionalrequest-property-became-optional
- ○
added the required property
version/modelto the response with the200statusresponse-required-property-added
- ○
added the required property
version/model_paramsto the response with the200statusresponse-required-property-added
- ○
- ○
the endpoint scheme security
ApiKeyAuthwas removed from the APIapi-security-removed
This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
api tag
Prompt Versionsaddedapi-tag-added
- ○
api tag
Promptsremovedapi-tag-removed
- ○
- ●
added the new
stableenum value to theversion/statusresponse property for the response status200response-property-enum-value-added
- ○
for the
pathrequest parameterversion, the type/format was generalized frominteger/tostring/request-parameter-type-generalized
- ○
added the required property
version/tagsto the response with the200statusresponse-required-property-added
- ●
- ○
api tag
Promptsaddedapi-tag-added
- ○
api tag
Versionsremovedapi-tag-removed
- ○