Try Bifrost Enterprise free for 14 days. Explore now
cURL
curl --request POST \ --url http://localhost:8080/api/prompt-repo/prompts/{id}/versions \ --header 'Content-Type: application/json' \ --data ' { "commit_message": "<string>", "messages": [ {} ], "model_params": {}, "provider": "<string>", "model": "<string>" } '
{ "version": { "id": 123, "prompt_id": "<string>", "version_number": 123, "commit_message": "<string>", "model_params": {}, "provider": "<string>", "model": "<string>", "is_latest": true, "created_at": "2023-11-07T05:31:56Z", "messages": [ { "id": 123, "order_index": 123, "message": {} } ] } }
Creates a new version for a prompt.
Prompt ID
Array of message objects
Version created
Prompt version (immutable snapshot)
Show child attributes
Was this page helpful?