---
title: "Edit a post (its author or an admin). Audience and publish time only before it goes out: 409 ALREADY_PUBLISHED after."
method: PATCH
path: "/api/coach/announcements/{id}"
tags: ["Coach — Announcements"]
---

# Edit a post (its author or an admin). Audience and publish time only before it goes out: 409 ALREADY_PUBLISHED after.

`PATCH /api/coach/announcements/{id}`

## Request

- Base URL: `https://api.rewritelifestyle.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.rewritelifestyle.ai/api/coach/announcements/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` number, required

## Headers

- `x-timezone` string, required

## Request body `multipart/form-data`

- UpdateAnnouncementDto
  - `title` string
  - `body` string
  - `audience` 'all_clients' | 'groups': Before publish only.
  - `groupIds` string[]: Before publish only.
  - `publishAt` string: Before publish only. "now" publishes straight away.
  - `expiresOn` string: YYYY-MM-DD, or an empty string for no end date.
  - `pinned` boolean
  - `keepImageIds` string[]: The existing images to keep, in order; new files follow them. Omit to leave the images as they are. An empty value removes them all.

## Response `200`

## Changes

- **2026-10-19** `0c72870a5acb`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/changes/api/coach/announcements/:id/patch.md)

---

[API](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api.md) - [All operations](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rewritelifestyle/apis/rewrite-lifestyle-api/revisions/28695827f27a?raw)
