For AI agents: a documentation index is available at /llms.txt. Append .md to any page URL for markdown, or send Accept: text/markdown.
Update Prompt Version (partial)
Change the messages, model or settings of a version, or set its type: Live promotes it, Candidate serves it to code for shadow runs, Archive retires it. Only…
Change the messages, model or settings of a version, or set its type: Live promotes it, Candidate serves it to code for shadow runs, Archive retires it. Only the fields you include are changed.
https://statsigapi.net/console/v1/prompts/{id}/versions/{versionId}Authorizations
STATSIG-API-KEYstringrequiredapiKey (header)
Path parameters
versionIdstringrequiredidstringrequiredid
Body
application/jsonpromptsobject[]Show child attributes
contentstringrequiredrolestringrequiredsystemuserassistanttemperaturenumberformat: doubleworkflow_bodyobjectShow child attributes
typestringrequiredJSONvaluestringrequiredworkflow_urlstringOffline-eval workflow URL. Empty or null removes it. Changing it clears the stored workflow_headers and auth_workflow_headers unless they are sent in the same request.
nullableworkflow_headersobject[]Show child attributes
namestringrequiredvaluestringrequiredauth_workflow_headersobject[]Show child attributes
namestringrequiredvaluestringrequiredtop_pnumberformat: doublefrequency_penaltynumberformat: doublepresence_penaltynumberformat: doublemax_tokensnumberformat: doubletypestringSet to Live to promote the version, Candidate to serve it to code for shadow runs, Archive to retire it, or Draft to stop serving it.
LiveCandidateArchiveDraftmodelstringnamestringproviderstringeval_modelstringResponse
application/jsonmessagestringrequiredA simple string explaining the result of the operation.
dataobjectrequiredShow child attributes
idstringrequiredmin length: 3max length: 100namestringrequiredmin length: 3max length: 100typestringLive is served to users; Candidate is served to code for shadow runs; Draft and Archive are not served.
LiveCandidateArchiveDraftversionnumberformat: doublepromptsobject[]rolestringrequiredcontentstringrequiredmodelstringproviderstringeval_modelstringtemperaturenumberformat: doubletop_pnumberformat: doublemax_tokensnumberformat: doublefrequency_penaltynumberformat: doublepresence_penaltynumberformat: doubleworkflow_urlstringnullablecreatedTimenumberformat: doublelastModifiedTimenumberformat: doubleeval_run_idstringSet only by Start Prompt Version Evaluation Job: the eval run it started. Poll it with List Prompt Version Eval Runs.
statusintegerrequired404messagestringrequiredWas this helpful?