Create Prompt Version

Create Prompt Version

posthttps://statsigapi.net/console/v1/prompts/{id}/versions

Authorizations

STATSIG-API-KEYstringrequired

apiKey (header)

Path parameters

idstringrequired

id

Body

application/json
promptsobject[]
Show child attributes
contentstringrequired
rolestringrequired
Allowed values:systemuserassistant
temperaturenumber
Constraints:format: double
namestringrequired

The Prompt Version display name

Example:my_config
Constraints:min length: 3max length: 100pattern: ^[a-zA-Z0-9_\-. ]*$
workflow_bodyobject
Show child attributes
typestringrequired
Allowed values:JSON
valuestringrequired
workflow_headersobject[]
Show child attributes
namestringrequired
valuestringrequired
auth_workflow_headersobject[]
Show child attributes
namestringrequired
valuestringrequired
top_pnumber
Constraints:format: double
frequency_penaltynumber
Constraints:format: double
presence_penaltynumber
Constraints:format: double
max_tokensnumber
Constraints:format: double
idstring

The Prompt Version name ID

Constraints:min length: 3max length: 100pattern: ^[a-zA-Z0-9_\-.]*$
descriptionstring
Constraints:max length: 1000
Other properties3
modelstring
providerstring
eval_modelstring

Response

application/json
201· Create Prompt Version
messagestringrequired

A simple string explaining the result of the operation.

dataobjectrequired
Show child attributes
promptsobject[]
contentstringrequired
rolestringrequired
Allowed values:systemuserassistant
temperaturenumber
Constraints:format: double
modelstring
namestringrequired

The Prompt Version display name

Example:my_config
Constraints:min length: 3max length: 100pattern: ^[a-zA-Z0-9_\-. ]*$
providerstring
workflow_bodyobject
typestringrequired
Allowed values:JSON
valuestringrequired
workflow_headersobject[]
namestringrequired
valuestringrequired
auth_workflow_headersobject[]
namestringrequired
valuestringrequired
eval_modelstring
top_pnumber
Constraints:format: double
frequency_penaltynumber
Constraints:format: double
presence_penaltynumber
Constraints:format: double
max_tokensnumber
Constraints:format: double
idstring

The Prompt Version name ID

Constraints:min length: 3max length: 100pattern: ^[a-zA-Z0-9_\-.]*$
descriptionstring
Constraints:max length: 1000

Was this helpful?