---
title: "Update Admin Announcement"
method: PUT
path: "/api/admin/announcements/{announcement_id}"
---

# Update Admin Announcement

`PUT /api/admin/announcements/{announcement_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/announcements/{announcement_id}`
- Auth: none declared

## Path parameters

- `announcement_id` string, required

## Cookies

- `admin_session` string, nullable

## Request body

- AnnouncementRequest
  - `title` string, required
  - `body` string, required
  - `active` boolean
  - `ctaLabel` string, nullable
  - `ctaHref` string, nullable
  - `startsAt` string, nullable
  - `endsAt` string, nullable

## 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)
