---
title: "Edit your own post"
method: PATCH
path: "/api/v1/community/posts/{postId}"
tags: ["Community"]
---

# Edit your own post

`PATCH /api/v1/community/posts/{postId}`

## Request

- Base URL: `https://api-docs.busabase.com`
- URL: `https://api-docs.busabase.com/api/v1/community/posts/{postId}`
- Auth: HTTP bearer

## Path parameters

- `postId` string, required

## Request body

- object
  - `title` string
  - `body` string
  - `lang` string

## Response `200`

The post after the edit. Only the author can edit, and only while the post is not locked; the URL slug never changes.

- object
  - `id` string, required
  - `categorySlug` string, required
  - `categoryName` string, required
  - `categoryShowVotes` boolean, required
  - `kind` 'question' | 'discussion' | 'showcase' | 'feature_request' | 'announcement', required
  - `title` string, required
  - `slug` string, required
  - `url` string, required
  - `body` string, required
  - `bodyText` string, required
  - `excerpt` string, required
  - `lang` string, required
  - `author` object, required
    - `id` string, required
    - `name` string, required
    - `image` string, required
    - `isStaff` boolean, required
  - `replyCount` number, required
  - `likeCount` number, required
  - `viewCount` number, required
  - `likedByMe` boolean, required
  - `isPinned` boolean, required
  - `isLocked` boolean, required
  - `isSolved` boolean, required
  - `acceptedReplyId` string, required
  - `triageStatus` 'triage' | 'needs_info' | 'accepted' | 'in_progress' | 'done' | 'closed', required
  - `closeReason` 'answered' | 'not_planned' | 'duplicate' | 'cannot_reproduce' | 'wont_fix', required
  - `duplicateOf` object, required
    - `slug` string, required
    - `title` string, required
    - `url` string, required
  - `indexable` boolean, required
  - `isEdited` boolean, required
  - `editedAt` string, required
  - `editedBy` object, required
    - `id` string, required
    - `name` string, required
    - `isAuthor` boolean, required
  - `createdAt` string, required
  - `updatedAt` string, required
  - `lastActivityAt` string, required

## Other responses

- `400`: 400
- `401`: 401
- `403`: 403
- `404`: 404

---

[API](https://skmtc.dev/busabase/apis/busabase-api.md) · [All operations](https://skmtc.dev/busabase/apis/busabase-api/llms.txt) · [OpenAPI document](https://skmtc.dev/busabase/apis/busabase-api/revisions/bc6a7d5ff4c1?raw)
