templates

Update a template

Changed on
patch/admin/v1/templates/{id}

Request

  • Base URL: / (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /admin/v1/templates/{id}
  • Auth: HTTP bearer

Path parameters

idstring uuid required

Template ID

Request body

contentstring nullable

New content

descriptionstring nullable

New description

metadataobject nullable

New metadata (replaces existing)

namestring nullable

New name (unique per owner)

Response

Template updated

contentstring required

The actual template content (system message template)

created_atstring date-time required
descriptionstring nullable

Optional description of what this template does

idstring uuid required
metadataobject nullable

Optional metadata (e.g., recommended temperature, max_tokens, tags)

namestring required

Name of the template

owner_idstring uuid required
owner_type'organization' | 'team' | 'project' | 'user' required

Owner type for templates (organization, team, project, or user)

updated_atstring date-time required

Changes