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": [
    "<any>"
  ],
  "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
content
extra
object
testValues
object
isDraft
boolean
notes
string

Response

200
application/json
Updated template version
id
string
templateId
string
content
any[]
extra
object
testValues
object
isDraft
boolean
notes
string
createdAt
string
version
number