Set Public Vote
Sets a visitor's vote on a public post. Voting also follows the post. Removing the vote keeps the follow. Public and unauthenticated. Do not call this as a fake visitor.
Authorization
Authorization In: header
Path Parameters
ID of the post.
ID of the project that publishes the post.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Email address so a follow can receive status-change mail. An empty string clears it.
Which public portal the visitor is on. Votes and comments are tracked separately on each.
Random per-project id the portal stores in the visitor's browser.
Desired vote. true adds a vote and a follow. false removes the vote and keeps the follow.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/feedback/string/posts/string/vote" \ -H "Content-Type: application/json" \ -d '{ "surface": "feedback", "visitorId": "e45934e1-5fd4-4651-b7bc-50c977a3b8c5", "voted": true }'{ "following": true, "voteCount": 0, "voted": true}Archive Public Comment
Lets a visitor archive their own comment within the edit window. Public and unauthenticated. The visitorId has to match the comment.
Set Public 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.