Update poll
PATCH /v1/poll/:docId
Update a Poll by Id
Path Parameters
- docId string required
String Id of the Poll
- application/json
Request Body required
- name string
Name of the poll
- desc string
Description of the poll
- allowAbstain boolean
Whether this poll allows abstained votes
- allowVeto boolean
Whether this poll allows veto votes
- custom boolean
Whether this poll is a custom vote with custom answers
- endTime
Milliseconds since epoch for this timestamp/date
- supportDescMarkdown
Whether the description supports markdown
options object[]
The options of this poll (if custom poll)
Array [name stringcolor string]votes object[]
Votes on the poll
Array [id stringID of the member who votes
comment stringComment on the vote
vote stringOption name that was voted (if not-custom, "yes", "no", "veto" or "abstain")
]
Responses
- 200
- 404
OK
NOT FOUND
Loading...