---
title: "Update Review"
method: PUT
path: "/api/admin/reviews/{review_id}"
---

# Update Review

`PUT /api/admin/reviews/{review_id}`

## Request

- Base URL: `https://yuanzizhiyi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://yuanzizhiyi.com/api/admin/reviews/{review_id}`
- Auth: none declared

## Path parameters

- `review_id` string, required

## Cookies

- `admin_session` string, nullable

## Request body

- ReviewDraft
  - `name` string, required
  - `body` string, required
  - `rating` integer, required
  - `locale` 'zh-CN' | 'zh-Hant' | 'en'
  - `published` boolean
  - `position` integer
  - `sourceContext` string
  - `maskedEmail` string

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/yuanzizhiyi/apis/yuanzi-zhiyi.md) · [All operations](https://skmtc.dev/yuanzizhiyi/apis/yuanzi-zhiyi/llms.txt) · [OpenAPI document](https://skmtc.dev/yuanzizhiyi/apis/yuanzi-zhiyi/revisions/d063fae7ac16?raw)
