v1

latestOpenAPI 3.0.3agpl2026-07-174323249.6 KB
option_api

Update option

This endpoint allows CORS requests

put/ocs/v2.php/apps/polls/api/v1.0/option/{optionId}

Path parameters

optionIdinteger required

Option id

Headers

OCS-APIRequestboolean required

Required to be true for the API request to pass

Request body

timestampinteger

Unix timestamp for date poll

textstring

Option text for text poll

durationinteger

Duration of option in seconds

isoTimestamostring nullable

ISO 8601 timestamp

isoDurationstring nullable

ISO 8601 duration

Response

Option updated