Skip to content

โœ๏ธ Update a Comment

Endpoint: PATCH /api/forum/comments/{id}
Auth Required: โœ… Yes (Bearer Token)
Content-Type: application/json


๐Ÿ“Œ Description

This endpoint allows a citizen to update their previously posted comment on a discussion thread.

Updates are permitted only if: - the comment belongs to the authenticated citizen - the comment has not been locked or removed by moderators

Citizens can modify the comment content to correct mistakes or clarify their message.


๐Ÿ” Authentication

Include the JWT access token in the Authorization header:


๐Ÿ”— Path Parameter

Parameter Type Required Description
id UUID โœ… Unique comment ID

๐Ÿงพ Request Body (Partial)

Send only the fields you want to update:

```json { "content": "Updated comment: awareness sessions with posters could be more effective." }