Skip to content

Add or change a premiere poll

POST/v1/organization/{orgId}/marketing/video/premieres/{premiereId}/polls

US Region: https://public-api.sessionboard.com · EU Region: https://public-api-eu.sessionboard.com

create adds a poll with a question and 2 to 6 answers; it opens at once and viewers see it. open, close and delete act on pollId. Requires write:marketing; refused for a key restricted to particular events. Also at POST /v1/marketing/video/premieres/{premiereId}/polls.

Request example

Terminal window
curl --request POST \
--url 'https://public-api.sessionboard.com/v1/organization/{orgId}/marketing/video/premieres/{premiereId}/polls' \
--header 'x-access-token: <api-token>' \
--header 'Content-Type: application/json' \
--data '{
"action": "create",
"pollId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"question": "<string>",
"options": [
"<string>"
]
}'

Try it

Authorization

Your token stays in this page. It is sent only to the region above and is never saved; it is gone when you leave or reload the page.

Path parameters
Body application/json
POST

Authorizations

  • x-access-tokenstringheader

    Organization API token. Generate from Organization Settings → API Tokens.

  • AuthorizationBearer <token>headeror

    OAuth 2.1 access token. Obtained via the OAuth PKCE flow at /oauth/token.

Send one of these. See Authentication.

Path parameters

  • orgIdstringpathrequired

    Your organization ID. Any other organization returns 404.

  • premiereIdstring<uuid>pathrequired

    The premiere

Request body

application/jsonrequired

  • actionstringrequired
    Allowed values
    "create", "open", "close", "delete"
  • pollIdstring<uuid>
  • questionstring
    Max length
    300
  • optionsstring[]
    Max items
    6
{
"action": "create",
"pollId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"question": "<string>",
"options": [
"<string>"
]
}

Responses

200

payload.poll with its answers and votes

400

A poll without a question or with fewer than 2 or more than 6 answers.

403

  • SCOPE_REQUIRED — the token lacks read:marketing (reads) or write:marketing (writes).
  • ORG_WIDE_TOKEN_REQUIRED — the token is restricted to particular events; this operation reads the whole organization.
  • FORBIDDEN — the organization's plan does not include Marketing, or the token's user cannot change goals (writes need an organization admin or the organization settings permission).

404

Not found in your organization.