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

Path parameters

idstring required

The ID of the template to update

Request body

slugstring
mode'text' | 'openai'

Response

Successful response

idstring
namestring
slugstring
mode'text' | 'openai'
createdAtstring date-time
groupstring
projectIdstring

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.