This endpoint allows you to push a new version of a prompt.
You can specify the content, extra parameters, test values, draft status, and notes for the new version.
POST
/
v1
/
templates
/
{id}
/
versions
Create a new version
Copy
curl --request POST \ --url https://api.lunary.ai/v1/templates/{id}/versions \ --header 'Content-Type: application/json' \ --data '{ "content": "Hello {{name}}, welcome to {{company}}!", "extra": { "temperature": 0.7, "max_tokens": 150 }, "isDraft": false, "notes": "Updated welcome message with company name"}'