Create LinkedIn poll post
Input
options requiredBetween 2 and 4 answer options, each max 30 characters (LinkedIn's own limits). LinkedIn shows two option fields by default and the script adds the extra fields for a third and fourth.
question requiredThe poll question, max 140 characters (LinkedIn's own limit). This publishes a real, public poll under the logged-in member immediately, so show the exact question and options to the user and get their explicit approval for this specific content before running — approval from an earlier or unrelated message does not carry over.
text optionalOptional commentary posted above the poll, in the main composer body. Omit for a bare poll.
durationDays optionalHow long voting stays open, in days. These are the only four values LinkedIn offers (1 day, 3 days, 1 week, 2 weeks) and they are the select's own option values, which are numeric and therefore locale-invariant. Defaults to 7 (1 week), matching LinkedIn's own default.
Default: 7Output
posted requiredTrue when this run published a new poll. False when an identical poll already existed and nothing was posted (see already_present).
options requiredquestion requiredaccount_used requiredDisplay name of the logged-in member, read from the composer rather than assumed.
verified_on_page requiredTrue only if the account's own activity was reloaded after publishing and a post carrying this exact question was found. Never inferred from the composer closing.
url optionalPermalink of the poll, resolved from the account's own recent activity.
urn optionalThe poll post's activity urn — the join key, usable with get_post or delete_post.
durationDays optionalalready_present optionalTrue when a poll with this exact question was already on the account's own activity before this run composed anything — nothing new was posted, and url/urn point at the existing poll. This makes retrying after a failed or ambiguous run safe rather than duplicating a public post.
