Create a new prompt version.
Auto-increments the version number for the given prompt_id within the workspace. The latest tag is added automatically and removed from any previous version that carried it.
prompt_id
latest
cURL
curl --request POST \ --url https://api.example.com/api/v1/prompts/ \ --header 'Content-Type: application/json' \ --data ' { "prompt_id": "<string>", "content": "<string>", "tags": [ "<string>" ] } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "prompt_id": "<string>", "version": 123, "content": "<string>", "tags": [ "<string>" ], "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z" }
Request body for creating a new prompt version.
Logical prompt identifier
Prompt text, supports Jinja2 {{ variables }}
User-defined tags
Successful Response
Response body for a prompt.
Contact support