---
title: "Update Feedback Template"
method: PATCH
path: "/projects/{project_id}/feedback/templates/{template_id}"
tags: ["feedback"]
---

# Update Feedback Template

`PATCH /projects/{project_id}/feedback/templates/{template_id}`

## Path parameters

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

## Request body

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

## Response `200`

Successful Response

- FeedbackTemplateDB
  - `name` string, required
  - `include_explanation` boolean, required
  - `criteria` string, nullable
  - `constraints` union, required
    - LibsPythonSchemasLogRecordsFeedbackLikeDislikeConstraints
      - `feedback_type` 'like_dislike', required
    - LibsPythonSchemasLogRecordsFeedbackStarConstraints
      - `feedback_type` 'star', required
    - LibsPythonSchemasLogRecordsFeedbackScoreConstraints
      - `feedback_type` 'score', required
      - `min` integer, required
      - `max` integer, required
    - LibsPythonSchemasLogRecordsFeedbackTagsConstraints
      - `feedback_type` 'tags', required
      - `tags` string[], required
      - `allow_other` boolean
    - LibsPythonSchemasLogRecordsFeedbackTextConstraints
      - `feedback_type` 'text', required
    - LibsPythonSchemasLogRecordsFeedbackChoiceConstraints
      - `feedback_type` 'choice', required
      - `choices` string[], required
      - `allow_other` boolean
    - TreeChoiceConstraintsOutput — Tree-choice node values must be globally unique leaf-path values. Callers that start from nested YAML should use build_tree_choice_nodes_from_yaml so duplicate ids or labels in different branches are converted to unambiguous slash-delimited path values before model validation.
      - `feedback_type` 'tree_choice', required
      - `choices_tree` LibsPythonSchemasLogRecordsFeedbackTreeChoiceNodeOutput[], required
        - `label` string, nullable
        - `value` string, required
        - `children` LibsPythonSchemasLogRecordsFeedbackTreeChoiceNodeOutput[]
  - `id` string, uuid4, required
  - `created_at` string, date-time, required
  - `created_by` string, uuid4, nullable, required
  - `position` integer, required
  - `usage_count` integer, nullable — Number of feedback 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)
