PATCH /api/posts/[id]
Updates a post. Only the post owner can update it. All fields are optional.Requires authentication. Owner only.
Request Body
Same fields as Create Post, all optional. Images cannot be updated after creation.Response (200)
Errors
| Status | Code | Reason |
|---|---|---|
| 400 | VALIDATION_ERROR | Invalid fields |
| 401 | UNAUTHORIZED | Not authenticated |
| 403 | FORBIDDEN | Not the post owner |
| 404 | NOT_FOUND | Post not found |