Templates
Create a new version
This endpoint allows you to push a new version of a prompt. You can specify the content, extra parameters, test values, draft status, and notes for the new version.
POST
/v1/templates/id/versions
Accepted Keys:
content
extra
isDraft
notes
Example response:
Parameters
Name | Located In | Required | Schema |
---|---|---|---|
id | path | Yes | string |
Request Body
Property | Type | Description |
---|---|---|
content | array | |
extra | object | |
testValues | object | |
isDraft | boolean | |
notes | string |
Responses
200
Successful response
Property | Type | Description |
---|---|---|
id | string | |
templateId | string | |
content | array | |
extra | object | |
testValues | object | |
isDraft | boolean | |
notes | string | |
createdAt | string | |
version | number |