action mastodon_post_api_v1_polls_id { label: "post_api_v1_polls_id" description: "Vote on a poll." provider: mastodon method: POST path: "/api/v1/polls/{id}" encoding: json input: { type: "object" required: ["choices"] properties: { choices: { type: "array" items: { type: "string" } } } } output: { description: "Represents a poll attached to a status." properties: { emojis: { type: "array" description: "Custom emoji to be used for rendering poll options." items: { type: "object" description: "Represents a custom emoji." required: ["shortcode", "url", "static_url", "visible_in_picker"] properties: { category: { type: "string" description: "Used for sorting custom emoji in the picker." } shortcode: { type: "string" description: "The name of the custom emoji." } static_url: { type: "string" description: "A link to a static copy of the custom emoji. The format is URL." } url: { type: "string" description: "A link to the custom emoji. The format is URL." } visible_in_picker: { type: "boolean" description: "Whether this Emoji should be visible in the picker or unlisted." } } } } expired: { type: "boolean" description: "Is the poll currently expired?" } expires_at: { type: "string" format: "date-time" description: "When the poll ends. ISO 8601 Datetime, or null if the poll does not end." } id: { type: "string" description: "The ID of the poll in the database. Cast from an integer, but not guaranteed to be a number." } multiple: { type: "boolean" description: "Does the poll allow multiple-choice answers?" } options: { type: "array" description: "Possible answers for the poll." items: { type: "object" } } own_votes: { type: "array" description: "When called with a user token, which options has the authorized user chosen? Contains an array of index values for `options`. Array of Number, or null if no current user" items: { type: "integer" } } voted: { type: "boolean" description: "When called with a user token, has the authorized user voted? Boolean, or null if no current user" } voters_count: { type: "integer" description: "How many unique accounts have voted on a multiple-choice poll. Number, or null if `multiple` is false." } votes_count: { type: "integer" description: "How many votes have been received." } } } }