---
title: "Edit a post"
method: PATCH
path: "/v1/posts/{postId}"
tags: ["posts"]
---

# Edit a post

`PATCH /v1/posts/{postId}`

## Path parameters

- `postId` string, uuid, required

## Request body

- object
  - `content` string, required
  - `attachmentIds` string[]

## Response `200`

Successful response

- UpdatePostOutput
  - `success` boolean, required

## Other responses

- `400` — Invalid input data
- `401` — Authorization not provided
- `403` — Insufficient access
- `404` — Resource not found
- `500` — Internal server error

## Changes

- **2026-08-31** `0633775e8089` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/legend/apis/legend-api/changes/v1/posts/:postId/patch.md)

---

[API](https://skmtc.dev/legend/apis/legend-api.md) · [All operations](https://skmtc.dev/legend/apis/legend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/legend/legend-api/revisions/0633775e8089/schema)
