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 '{ "prompts": [ { "content": "<string>", "role": "system" } ], "temperature": 123, "model": "<string>", "name": "my_config", "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": { "prompts": [ { "content": "<string>", "role": "system" } ], "temperature": 123, "model": "<string>", "name": "my_config", "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>" } }
3 - 100
Show child attributes
1000
Was this page helpful?