Templates
Update a template
This endpoint allows you to update the slug and mode of an existing template. The mode can be either "text" or "openai" (array of chat messages).
patch/v1/templates/{id}
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 update
Request body
Response
Successful response
Example response
{
"versions": [
{
"metadata": {
"owner": "support",
"release_channel": "production",
"locale": "en"
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.