Polls API endpoints

The latest documentation for endpoint is always on the DevPortal: https://partner.socios.com/devportal/apis/d93ca9b9-6e1f-4ec7-813e-a4e8c3c1d658/test

Endpoint to get a list of polls using search filters

get
/polls
Authorizations
OAuth2implicitRequired
Authorization URL:
Query parameters
searchstringOptional

Filter by poll question text, accepts parts of question text as well

partnerIds[]string · uuid[]Optional

Filter by partner ids that polls have been created for

ids[]string · uuid[]Optional

Filter by poll ids

quorumReachedbooleanOptional

Filter polls by voting quorum achievement. * e.g. true = required percentage of votes for the poll is achieved

boundbooleanOptional

Filter by poll binding, should the poll outcome be respected

disclosedAt[from]string · date-timeOptional

Filter by date and time when poll results were disclosed [from specific date]

Example: 2022-03-29T12:30:33
disclosedAt[to]string · date-timeOptional

Filter by date and time when poll results were disclosed [up to specific date]

Example: 2022-03-29T14:30:33
publicationDate[from]string · date-timeOptional

Filter by date and time when poll was published [from specific date]

publicationDate[to]string · date-timeOptional

Filter by date and time when poll was published [up to specific date]

openAt[from]string · date-timeOptional

Filter by date and time when poll opened [from specific date]

openAt[to]string · date-timeOptional

Filter by date and time when poll opened [up to specific date]

closeAt[from]string · date-timeOptional

Filter by date and time when poll got closed [from specific date]

closeAt[to]string · date-timeOptional

Filter by date and time when poll got closed [up to specific date]

pageinteger · integerOptional
limitinteger · integerOptional
orderBystringOptional
cursorstringOptional
directionstring · enumOptionalPossible values:
Responses
200

Search for polls succeeded for GET /poll/polls

application/json
get
/polls
200

Search for polls succeeded for GET /poll/polls

Endpoint to get a single poll by id

get
/poll/{pollId}
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
pollIdstringRequired

Poll Id to be retrieved

Responses
200

Success response

application/json
get
/poll/{pollId}
200

Success response

Deprecated

DEPRECATED - Vote on a poll

post
/user/poll/{pollId}/vote
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
pollIdstringRequired

Poll Id to vote for

Body
answerIdstring · uuidRequiredExample: 35de3eda-fc2f-4f15-be0a-17cbdef6630f
Responses
post
/user/poll/{pollId}/vote

No content

Deprecated

DEPRECATED - Endpoint to get a single poll by id & userId

get
/user/poll/{pollId}
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
pollIdstringRequired

Poll Id to be retrieved

Responses
200

Success response

application/json
get
/user/poll/{pollId}
200

Success response

Deprecated

DEPRECATED - Endpoint to get a list of polls using search filters

get
/user/polls
Authorizations
OAuth2implicitRequired
Authorization URL:
Query parameters
searchstringOptional

Filter by poll question text, accepts parts of question text as well

partnerIds[]string · uuid[]Optional

Filter by partner ids that polls have been created for

ids[]string · uuid[]Optional

Filter by poll ids

quorumReachedbooleanOptional

Filter polls by voting quorum achievement. * e.g. true = required percentage of votes for the poll is achieved

boundbooleanOptional

Filter by poll binding, should the poll outcome be respected

userVotedbooleanOptional

Only list polls where the user has voted (only used when listing polls for a user). * Providing value false will give the same response as value true.

disclosedAt[from]string · date-timeOptional

Filter by date and time when poll results were disclosed [from specific date]

Example: 2022-03-29T12:30:33
disclosedAt[to]string · date-timeOptional

Filter by date and time when poll results were disclosed [up to specific date]

Example: 2022-03-29T14:30:33
publicationDate[from]string · date-timeOptional

Filter by date and time when poll was published [from specific date]

publicationDate[to]string · date-timeOptional

Filter by date and time when poll was published [up to specific date]

openAt[from]string · date-timeOptional

Filter by date and time when poll opened [from specific date]

openAt[to]string · date-timeOptional

Filter by date and time when poll opened [up to specific date]

closeAt[from]string · date-timeOptional

Filter by date and time when poll got closed [from specific date]

closeAt[to]string · date-timeOptional

Filter by date and time when poll got closed [up to specific date]

pageinteger · integerOptional
limitinteger · integerOptional
orderBystringOptional
cursorstringOptional
directionstring · enumOptionalPossible values:
Responses
200

Search for user polls succeeded for GET /user/polls

application/json
get
/user/polls
200

Search for user polls succeeded for GET /user/polls

Deprecated

DEPRECATED - Endpoint to get a list of user polls history

get
/user/polls/history
Authorizations
OAuth2implicitRequired
Authorization URL:
Query parameters
searchstringOptional

Search by poll question text

pageinteger · integerOptional
limitinteger · integerOptional
orderBystringOptional
cursorstringOptional
directionstring · enumOptionalPossible values:
Responses
200

Search for user polls succeeded for GET /user/polls/history

application/json
get
/user/polls/history
200

Search for user polls succeeded for GET /user/polls/history

Last updated