---
title: "POST /api/copilot/mod-generation/sessions/{id}/feedback/"
method: POST
path: "/api/copilot/mod-generation/sessions/{id}/feedback/"
tags: ["copilot"]
---

# POST /api/copilot/mod-generation/sessions/{id}/feedback/

`POST /api/copilot/mod-generation/sessions/{id}/feedback/`

Record the current user's feedback (rating and optional comment) on the mod-generation copilot session with the given id.

## Path parameters

- `id` string, required

## Request body

- ModCopilotSessionFeedback
  - `id` string, uuid
  - `user` object
    - `id` string, uuid
    - `email` string, email
  - `session` string, required — The session being reviewed
  - `rating` -1 | 1, required — User rating: -1 for negative, 1 for positive
  - `comment` string, required — User's feedback comment
  - `message_id` string, nullable — Optional message ID for feedback on a specific message
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Response `201`

---

[API](https://skmtc.dev/pixiebrix/apis/pixiebrix-api.md) · [All operations](https://skmtc.dev/pixiebrix/apis/pixiebrix-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/pixiebrix/pixiebrix-api/revisions/941ab9eb01d6/schema)
