---
title: "Update the reaction for a specific message"
method: PUT
path: "/api/v1/projects/{projectId}/conversations/{sessionId}/messages/{promptId}/feedback"
tags: ["Message"]
---

# Update the reaction for a specific message

`PUT /api/v1/projects/{projectId}/conversations/{sessionId}/messages/{promptId}/feedback`

## Path parameters

- `projectId` integer, required
- `sessionId` string, required
- `promptId` integer, required

## Request body

- object
  - `reaction` string — The new reaction

## Response `200`

Feedback has been updated

- object
  - `status` 'error' | 'success' — The status of the response
  - `data` PromptHistory
    - `id` integer — The unique identifier of the prompt history.
    - `user_id` integer — The unique identifier of the user.
    - `user_query` string — The user prompt query.
    - `openai_response` string — The OpenAI response to the user prompt query.
    - `created_at` string, date-time — The date and time the prompt history was created.
    - `updated_at` string, date-time — The date and time the prompt history was last updated.
    - `conversation_id` integer — The unique identifier of the conversation.
    - `citations` integer[] — The citations for the prompt history.
    - `metadata` object
      - `user_ip` string — The IP address of the user.
      - `user_agent` string — The user agent of the user.
      - `external_id` string — The external ID of the prompt history.
      - `request_source` string — The source of the request.
    - `response_feedback` object
      - `created_at` string, date-time — The timestamp when the feedback was created
      - `updated_at` string, date-time — The timestamp when the feedback was last updated
      - `user_id` integer, nullable — The ID of the user who provided the feedback
      - `reaction` string — The reaction provided by the user

## Other responses

- `400` — Bad Argument
- `401` — API Token is either missing or invalid
- `404` — Conversation message not found
- `500` — Internal Server Error

---

[API](https://skmtc.net/poll-the-people/apis/customgpt-ai.md) · [All operations](https://skmtc.net/poll-the-people/apis/customgpt-ai/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/poll-the-people/customgpt-ai/revisions/b80e6dfcf78d/schema)
