# Update Public Comment

PUT /api/v2/feedback/{projectId}/comments/{id}

Lets a visitor edit their own comment within the edit window. Public and unauthenticated. The visitorId has to match the comment.

## Request

- id: string, path, required — ID of the comment to update.
- projectId: string, path, required — ID of the project that owns the comment.
- body: string, required — Comment text, up to 5000 characters.
- surface: feedback | roadmap, required — Which public portal the visitor is on. Votes and comments are tracked separately on each.
- visitorId: string, required — Random per-project id the portal stores in the visitor's browser.

## Response

- 200: Successful response
  - body: string, required
  - createdAt: string, required
  - id: string, required
  - isAuthor: boolean, required
  - isTeam: boolean, required
  - kind: comment | merge, required, default comment
  - postId: string, required
  - updatedAt: string, required
  - authorImage: string
  - authorName: string
  - mergedPostId: string
- 400: Invalid input data
- 401: Authorization not provided
- 403: Insufficient access
- 404: Not found
- 500: Internal server error
