Update option
Changes an existing option. Only the given attributes are written, the others keep their value. Admin access through the admin_hash may change every option; otherwise the option has to belong to the requesting user and the poll has to still allow changes. Options that already collected votes can only be changed as long as the poll allows it.
Authorizations
Personal API token — find yours under My Account → API.
Headers
Your own identification of the user on whose behalf the request is made, any string. The user identifiers should not be guessable and stay secret, otherwise users could get access to other users' contents. Only used with a public API token: the created or changed object belongs to that anonymous user instead of the token owner, which keeps the user in control of it in later requests with the same identifier.
Path Parameters
Poll member_hash or admin_hash
Option public_id, as returned in the id field
Query Parameters
public_id of an organization the user belongs to. When given, the request runs in that organization context instead of the personal account.
Body
Attributes accepted when creating or updating an option. The option class is derived from the poll (or from the parent option for nested options) and cannot be set through the API.
public_id of a parent option to move the option to. Omit to keep the current parent.
Values for the poll's additional_option_attributes. Omit to keep the stored values; when given, the hash replaces all of them, so it has to carry every required value.
Response
option updated
Full representation of a single poll option. Top-level fields vary by option type and are included conditionally depending on the poll's visibility settings and your access level (admin vs. member); type-specific configuration is grouped under settings.
Option public_id
Option STI class
"Options::TextOption"
Admin access only
Collection polls only
incoming, investigation, planned, in_implementation, rejected, done Option-type-specific payload (e.g. location_data for location options)
free_sketch, sign, draw_on_image Input options only
text, textarea, email, url, select, radio, multi_select, checkbox, number, number_float, file, date, datetime point, route, polygon, circle, rectangle Option-type-specific configuration, grouped for readability.
URLs of the file uploaded to the option, returned by both the list and the show endpoint. Only present for option types that carry an uploaded file (image, photo, audio, drawing and advent calendar options); youtube/vimeo and uploaded-video options do not have it. The attachment_url_* keys are the processed derivatives that exist for this file, so which ones are returned depends on the uploaded file: images and videos get large, thumb and social, an audio file only gets cover if it has embedded cover art, and a file that is still processing has none at all. The whole object is omitted when none of its keys apply, e.g. an option without a file or a still-processing upload you have no download access to.
Admin access only
unreviewed, approved, disapproved Admin access only
Admin access only
Admin access only
Admin access only