Getting Started
Audit Logs
Datasets
- GETList datasets
- POSTCreate a new dataset
- GETGet dataset by ID or slug
- DELDelete a dataset
- PATCHUpdate a dataset
- POSTCreate a new prompt
- GETGet prompt by ID
- DELDelete a prompt
- PATCHUpdate a prompt
- GETGet prompt variation by ID
- DELDelete a prompt variation
- PATCHUpdate a prompt variation
- POSTCreate a new prompt variation
Evals
Runs
Templates
Templates
Update a template version
PATCH
/
v1
/
template-versions
/
{id}
curl --request PATCH \
--url https://api.lunary.ai/v1/template-versions/{id} \
--header 'Content-Type: application/json' \
--data '{
"content": [
"<any>"
],
"extra": {},
"testValues": {},
"isDraft": true,
"notes": "<string>"
}'
{
"id": "<string>",
"templateId": "<string>",
"content": [
{
"role": "<string>",
"content": "<string>"
}
],
"extra": {},
"testValues": {},
"isDraft": true,
"notes": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"version": 123
}
Path Parameters
ID of the template version
Body
application/json
Response
200
application/json
Updated template version
The response is of type object
.
curl --request PATCH \
--url https://api.lunary.ai/v1/template-versions/{id} \
--header 'Content-Type: application/json' \
--data '{
"content": [
"<any>"
],
"extra": {},
"testValues": {},
"isDraft": true,
"notes": "<string>"
}'
{
"id": "<string>",
"templateId": "<string>",
"content": [
{
"role": "<string>",
"content": "<string>"
}
],
"extra": {},
"testValues": {},
"isDraft": true,
"notes": "<string>",
"createdAt": "2023-11-07T05:31:56Z",
"version": 123
}