Update a prompt version
Changed onSet deploy: true to make this version live immediately.
Request
- Base URLhttps://api.respan.ai
- URLhttps://api.respan.ai/api/prompts/{prompt_id}/versions/{version}/
- Auth
- HTTP bearer
- or HTTP bearer
Path parameters
The unique prompt identifier.
The prompt version number.
Request body
Example request
{
"description": "Production version with context awareness",
"messages": [
{
"role": "system",
"content": "You are a helpful customer support assistant. Context: {{context}}"
},
{
"role": "user",
"content": "{{user_query}}"
}
],
"model": "gpt-6-luna",
"temperature": 0.7,
"max_tokens": 2048,
"variables": {
"context": "Product information and FAQs",
"user_query": "How do I reset my password?"
},
"fallback_models": [
"claude-haiku-5-5"
],
"load_balance_models": [
{
"model": "gpt-6-luna",
"weight": 0.8
},
{
"model": "claude-haiku-5-5",
"weight": 0.2
}
],
"deploy": false
}Response
Prompt version updated successfully.
Example response
{
"id": "pv_abc123",
"prompt_version_id": "pv_abc123",
"version": 3,
"description": "Added context variable",
"messages": [
{
"role": "system",
"content": "You are a helpful assistant. Context: {{context}}"
},
{
"role": "user",
"content": "{{user_query}}"
}
],
"thinking": null,
"model": "gpt-4o",
"stream": false,
"temperature": 0.7,
"max_tokens": 2048,
"top_p": 1,
"frequency_penalty": 0,
"presence_penalty": 0,
"reasoning_effort": null,
"verbosity": null,
"seed": null,
"variables": {
"context": "",
"user_query": ""
},
"fallback_models": [
"gpt-4o-mini"
],
"load_balance_models": [
{
"model": "gpt-4o",
"weight": 0.8
},
{
"model": "gpt-4o-mini",
"weight": 0.2
}
],
"tools": [
{
"type": "function",
"function": {
"name": "search_knowledge_base"
}
}
],
"tool_choice": "auto",
"response_format": null,
"json_schema": null,
"is_enforcing_response_format": false,
"readonly": false,
"is_deployed": false,
"edited_by": {
"id": 123,
"email": "user@example.com",
"first_name": "John",
"last_name": "Doe"
},
"created_at": "2026-01-20T10:30:00Z",
"updated_at": "2026-01-20T10:30:00Z"
}Changes
- breaking
request body became required
- breaking
removed
subschema #2from therequest propertyoneOflist - breaking
removed
subschema #2from therequest propertyoneOflist - breaking
removed
subschema #2from therequest propertyoneOflist - breaking
removed
subschema #1subschema #2from the//request propertyoneOflist - breaking
removed
subschema #1subschema #2from therequest propertyoneOflist - breaking
the
request property type changed from no type toobject - breaking
the
request property type changed from no type toobject - breaking
the
request property type changed from no type toobject - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
the response property
became nullable for the status - breaking
added
subschema #1subschema #2to the//response propertyoneOflist for the response status - breaking
added
subschema #1subschema #2to theresponse propertyoneOflist for the response status - breaking
the
response's property type changed fromnumbernulltonumber, and format fromdoubleto no format for status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed fromnumbernulltonumber, and format fromdoubleto no format for status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed fromnumbernulltonumber, and format fromdoubleto no format for status - breaking
the
response's property type changed from no type toobjectfor status - breaking
the
response's property type changed fromnumbernulltonumber, and format fromdoubleto no format for status - info
api operation id
prompts_updatePromptVersionremoved and replaced withupdatePromptVersion - info
the endpoint scheme security
DashboardJwtwas added to the API - info
api tag
Promptsadded - info
api tag
promptsremoved - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
the request property
became nullable - info
added
subschema #1subschema #2to the//request propertyoneOflist - info
added
subschema #1subschema #2to therequest propertyoneOflist - info
the
request property format was generalized fromdoubleto no format - info
the
request property format was generalized fromdoubleto no format - info
the
request property format was generalized fromdoubleto no format - info
the
request property format was generalized fromdoubleto no format - info
removed
subschema #2from theresponse propertyoneOflist for the response status - info
removed
subschema #2from theresponse propertyoneOflist for the response status - info
removed
subschema #2from theresponse propertyoneOflist for the response status - info
removed
subschema #1subschema #2from the//response propertyoneOflist for the response status - info
removed
subschema #1subschema #2from theresponse propertyoneOflist for the response status
- breaking
- warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - warning
removed the optional property
from the response with the status - info
added the non-success response with the status
- info
removed the non-success response with the status
- info
added the required property
to the response with the status
- warning