v1

latestOpenAPI 3.0.0Apache 2.02026-07-179012215.4 KB
vote

Create a Vote

Create a Vote

post/api/users/:userId/topics/:topicId/votes

Path parameters

userIdstring required

logged in user id

topicIdstring required

topic id

Request body

authType'soft' | 'hard'
minChoicesinteger
maxChoicesinteger
delegationIsAllowedboolean
endsAtstring
descriptionstring
type'regular' | 'multiple'

Example request

{
  "endsAt": "2018-08-06T04:11:41.568Z"
}

Response

New Vote created successfully

Example response

{
  "status": {
    "code": 20000
  }
}