---
title: "Upsert My Review"
method: PUT
path: "/api/v1/reviews/me"
tags: ["reviews"]
---

# Upsert My Review

`PUT /api/v1/reviews/me`

## Request

- Base URL: `https://qcode.cc` (the document declares no server; this is the origin it was published from)
- URL: `https://qcode.cc/api/v1/reviews/me`
- Auth: none declared

新建 / 修改我的评价。写入后一律回到 pending。

## Request body

- ReviewUpsertRequest
  - `rating` integer, required: 1-5
  - `body` string: 服务层再按 500 字硬判
  - `display_mode` string: anonymous | name_role | company
  - `display_name` string, nullable
  - `company` string, nullable
  - `role` string, nullable
  - `consent_public` boolean

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-15** `b06e2752b740`: 2 info
  - added the optional property `detail/items/ctx` to the response with the `422` status
  - added the optional property `detail/items/input` to the response with the `422` status
- **2026-09-03** `f816aeab705d`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/qcode/apis/qcode-web/changes/api/v1/reviews/me/put.md)

---

[API](https://skmtc.dev/qcode/apis/qcode-web.md) - [All operations](https://skmtc.dev/qcode/apis/qcode-web/llms.txt) - [OpenAPI document](https://skmtc.dev/qcode/apis/qcode-web/revisions/9632b29aa008?raw)
