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
Accepted Keys:
slug
mode
Example response:
Parameters
Name | Located In | Required | Schema |
---|---|---|---|
id | path | Yes | string |
Request Body
Property | Type | Description |
---|---|---|
slug | string | |
mode | string |
Responses
200
Successful response
Property | Type | Description |
---|---|---|
id | string | |
name | string | |
slug | string | |
mode | string | |
createdAt | string | |
group | string | |
projectId | string | |
versions | array |
400
Invalid input
404
Template not found