curl --location --request POST 'https://api.yourapp.com/v1/public/topic-votes.create' \ --header 'Authorization: Bearer SUBSCRIBER_JWT_TOKEN' \ --header 'Content-Type: application/json' \ --data-raw '{ "id": "topic-uuid-123" }'
{ "data": { "id": "vote-uuid", "topicId": "topic-uuid-123", "creatorId": "sub-uuid-789", "createdAt": "2024-01-17T16:00:00Z" } }
Cast an upvote on a topic (feature request). Requires subscriber authentication.
Authorization: Bearer SUBSCRIBER_JWT_TOKEN
Show properties
{ "error": "Bad request" }
{ "error": "Duplicate vote" }
Was this page helpful?