Skip to main content

Update poll

PATCH /v1/poll/:docId

Update a Poll by Id

Path Parameters
  • docId string required

    String Id of the Poll

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 string
  • color string
  • ]
  • votes object[]

    Votes on the poll

  • Array [
  • id string

    ID of the member who votes

  • comment string

    Comment on the vote

  • vote string

    Option name that was voted (if not-custom, "yes", "no", "veto" or "abstain")

  • ]
Responses

OK

Loading...