Templates
Versions
Create a new version
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
Request
- Base URLhttps://api.lunary.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
idstring required
The ID of the template to create a new version for
Request body
Example request
{
"metadata": {
"owner": "support",
"release_channel": "production",
"locale": "en"
}
}Response
Successful response
Example response
{
"metadata": {
"owner": "support",
"release_channel": "production",
"locale": "en"
}
}Changes
No recorded changes to this operation across all 1 revision of this API.