Participate in a post
Deprecated
Request
Body Params application/json
{
"voteForOptionIndex": "number",
"debateReaction": "support"
}
Request samples
curl --location --request POST 'https://api.sqabl.com/v1/post//participate' \
--header 'Authorization: Bearer some-random-token' \
--header 'Content-Type: application/json' \
--data-raw '{
"voteForOptionIndex": "number",
"debateReaction": "support"
}'
Responses
application/json {
"success": true,
"statusCode": 200,
"data": {
"post": {
"id": "cm1z66sxy0000u4v311cjcpzo",
"type": "poll",
"pollOptions": [
{
"text": "Some option text",
"totalVoters": 2
},
{
"text": "Some option text",
"totalVoters": 1,
"userVoted": true
}
],
"totalParticipants": 3,
"totalOpposers": 0,
"totalSupporters": 0,
"userParticipated": true,
"userOpposed": false,
"userSupported": false
}
}
}
Modified at 2025-06-25 15:39:23