# Set Public Follow

POST /api/v2/feedback/{projectId}/posts/{postId}/follow

Sets whether a visitor follows a post, so they can be emailed when its status changes. Public and unauthenticated. Send the desired state, not a toggle.

## Request

- postId: string, path, required — ID of the post.
- projectId: string, path, required — ID of the project that publishes the post.
- following: boolean, required — Desired follow. Unfollowing keeps an existing vote. Send the state you want, not a toggle.
- 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.
- email: value — Email address so a follow can receive status-change mail. An empty string clears it.

## Response

- 200: Successful response
  - following: boolean, required — Whether this visitor follows the post.
  - voteCount: integer, required — Vote count after the change.
  - voted: boolean, required — Whether this visitor's vote is on.
- 400: Invalid input data
- 401: Authorization not provided
- 403: Insufficient access
- 500: Internal server error
