Skip to content

Remove your vote from a poll option

POST
/posts/polls/{poll}/options/{option}/unvote
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.

poll
required
integer

Numeric id of the poll.

option
required
integer

Numeric id of the poll option.

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."
]
}
}