Remove your vote from a poll option
POST
/posts/polls/{poll}/options/{option}/unvote
const url = 'https://feed.work.optidata.cloud/api/posts/polls/140/options/616/unvote';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://feed.work.optidata.cloud/api/posts/polls/140/options/616/unvote \ --header 'Authorization: Bearer <token>'Removes the caller’s vote from a poll option.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”poll
required
integer
Numeric id of the poll.
option
required
integer
Numeric id of the poll option.
Responses
Section titled “ Responses ”The vote was removed.
Media typeapplication/json
object
message
string
Examples
Exampleexample
{ "message": "Unvoted"}No authentication key was sent.
Media typeapplication/json
Authentication failures use an error key.
object
error
required
string
Examples
Exampleexample
{ "error": "JWT passport exception: Missing bearer token in request"}No matching resource, or it is not reachable through this path.
Media typeapplication/json
object
message
required
string
Examples
Exampleexample
{ "message": "No query results for model [App\\Models\\Category] 864"}The authentication key is expired or not recognised. Get a fresh one and retry.
Media typeapplication/json
Authentication failures use an error key.
object
error
required
string
Examples
Exampleexample
{ "error": "JWT passport expired: Passport expired"}The request failed validation.
Media typeapplication/json
object
message
required
The first validation message.
string
errors
required
Messages keyed by field name.
object
key
additional properties
Array<string>
Examples
Exampleexample
{ "message": "The name field is required.", "errors": { "name": [ "The name field is required." ] }}