poll

Vote on a poll

post/ocs/v2.php/apps/spreed/api/{apiVersion}/poll/{token}/{pollId}

Request

  • The document declares no server URL.
  • Auth
    • none
    • or HTTP bearer
    • or HTTP basic

Path parameters

apiVersion'v1' required
tokenstring required
pollIdinteger required

ID of the poll

Headers

x-nextcloud-federationstring

Set to 1 when the request is performed by another Nextcloud Server to indicate a federation request

OCS-APIRequestboolean required

Required to be true for the API request to pass

Request body

optionIdsinteger[]

IDs of the selected options

Response

Voted successfully

Changes

No recorded changes to this operation across all 93 revisions of this API.