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
string
required

ID of the template version

Body

application/json

Response

200
application/json

Updated template version

The response is of type object.