Skip to navigation

Update Post

Update an existing post. Only the post author can update their own posts.

Authentication: Required — Bearer token.

Feature gate: Requires posts feature enabled.

Path parameters:

  • id (required) — Post ID

Request body (all optional):

  • post[name] — Updated post title
  • post[content] — Updated post body
  • post[media_id] — Updated media attachment

Response: The updated post in feed format.

Errors:

  • 404 — Post not found or not owned by current user
  • 422 — Validation errors

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

idstringRequired
Post ID

Request

This endpoint expects an object.
postobjectOptional

Response

OK