---
title: "Update Annotation Template"
method: PATCH
path: "/public/v2/projects/{project_id}/annotation/templates/{template_id}"
tags: ["annotation"]
---

# Update Annotation Template

`PATCH /public/v2/projects/{project_id}/annotation/templates/{template_id}`

## Path parameters

- `project_id` string, uuid4, required
- `template_id` string, uuid4, required

## Request body

- AnnotationTemplateUpdate
  - `name` string, required
  - `criteria` string, nullable, required

## Response `200`

Successful Response

- AnnotationTemplateDB
  - `name` string, required
  - `include_explanation` boolean, required
  - `criteria` string, nullable
  - `constraints` union, required
    - ApiSchemasAnnotationLikeDislikeConstraints
      - `annotation_type` 'like_dislike', required
    - ApiSchemasAnnotationStarConstraints
      - `annotation_type` 'star', required
    - ApiSchemasAnnotationScoreConstraints
      - `annotation_type` 'score', required
      - `min` integer, required
      - `max` integer, required
    - ApiSchemasAnnotationTagsConstraints
      - `annotation_type` 'tags', required
      - `tags` string[], required
      - `allow_other` boolean
    - ApiSchemasAnnotationTextConstraints
      - `annotation_type` 'text', required
    - ApiSchemasAnnotationChoiceConstraints
      - `annotation_type` 'choice', required
      - `choices` string[], required
      - `allow_other` boolean
    - TreeChoiceDBConstraints
      - `annotation_type` 'tree_choice', required
      - `choices_tree` ApiSchemasAnnotationTreeChoiceNodeOutput[], required
        - `label` string, required
        - `id` string, required
        - `children` ApiSchemasAnnotationTreeChoiceNodeOutput[]
      - `choices_tree_yaml` string, required
  - `id` string, uuid4, required
  - `created_at` string, date-time, required
  - `created_by` string, uuid4, nullable, required
  - `position` integer, required
  - `usage_count` integer, required — Number of annotation ratings using the template.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/galileo/apis/galileo-api-server.md) · [All operations](https://skmtc.net/galileo/apis/galileo-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/galileo/galileo-api-server/versions/933e8c8e6366/schema)
