Prompts

Update Prompt Version (partial)

Changed on

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.

patch/console/v1/prompts/{id}/versions/{versionId}

Request

  • Base URL
    https://statsigapi.net
  • URL
    https://statsigapi.net/console/v1/prompts/{id}/versions/{versionId}
  • Auth
    API key in header STATSIG-API-KEY

Path parameters

versionIdstring required
idstring required

id

Request body

temperaturenumber double
modelstring
namestring
providerstring
workflow_urlstring nullable

Offline-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.

eval_modelstring
top_pnumber double
frequency_penaltynumber double
presence_penaltynumber double
max_tokensnumber double
type'Live' | 'Candidate' | 'Archive' | 'Draft'

Set 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.

Response

Update Prompt Version

messagestring required

A simple string explaining the result of the operation.

Changes