Skip to content

Change a recording's gate, button or end card

PUT/v1/organization/{orgId}/marketing/video/items/{mediaId}

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

Send only what changes; anything left out keeps its value. A custom button needs a label and a web link. This changes what visitors see wherever the recording plays. Requires write:marketing; refused for a key restricted to particular events. Also at PUT /v1/marketing/video/items/{mediaId}.

Request example

Terminal window
curl --request PUT \
--url 'https://public-api.sessionboard.com/v1/organization/{orgId}/marketing/video/items/{mediaId}' \
--header 'x-access-token: <api-token>' \
--header 'Content-Type: application/json' \
--data '{
"gate": "off",
"gateAtS": 0,
"ctaMode": "auto",
"ctaLabel": "<string>",
"ctaUrl": "<string>",
"ctaAtS": 0,
"endCard": true
}'

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
PUT

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.

  • mediaIdstring<uuid>pathrequired

    The recording (Media item)

Request body

application/jsonrequired

  • gatestring
    Allowed values
    "off", "before", "at"
  • gateAtSinteger

    Needed with gate at

    Minimum
    0
    Maximum
    86400
  • ctaModestring
    Allowed values
    "auto", "custom", "off"
  • ctaLabelstring
    Max length
    80
  • ctaUrlstring

    A web address (https://…)

  • ctaAtSinteger | null
    Minimum
    0
    Maximum
    86400
  • endCardboolean
{
"gate": "off",
"gateAtS": 0,
"ctaMode": "auto",
"ctaLabel": "<string>",
"ctaUrl": "<string>",
"ctaAtS": 0,
"endCard": true
}

Responses

200

payload is the VideoOptions after the change

400

A time after the end of the recording, a custom button without a label or link, or a link that is not a web address.

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

The recording is not in your organization.