cURL
curl --request POST \ --url https://statsigapi.net/console/v1/prompts/{id}/versions \ --header 'Content-Type: application/json' \ --header 'STATSIG-API-KEY: <api-key>' \ --data ' { "name": "my_config", "prompts": [ { "content": "<string>", "role": "system" } ], "temperature": 123, "model": "<string>", "provider": "<string>", "workflow_body": { "type": "JSON", "value": "<string>" }, "workflow_headers": [ { "name": "<string>", "value": "<string>" } ], "auth_workflow_headers": [ { "name": "<string>", "value": "<string>" } ], "eval_model": "<string>", "top_p": 123, "frequency_penalty": 123, "presence_penalty": 123, "max_tokens": 123, "id": "<string>", "description": "<string>" } '
{ "message": "<string>", "data": { "name": "my_config", "prompts": [ { "content": "<string>", "role": "system" } ], "temperature": 123, "model": "<string>", "provider": "<string>", "workflow_body": { "type": "JSON", "value": "<string>" }, "workflow_headers": [ { "name": "<string>", "value": "<string>" } ], "auth_workflow_headers": [ { "name": "<string>", "value": "<string>" } ], "eval_model": "<string>", "top_p": 123, "frequency_penalty": 123, "presence_penalty": 123, "max_tokens": 123, "id": "<string>", "description": "<string>" } }
Optional header to respect review settings for mutation endpoints.
id
The Prompt Version display name
3 - 100
"my_config"
Show child attributes
The Prompt Version name ID
1000
Create Prompt Version
A simple string explaining the result of the operation.
A single result.
Was this page helpful?