Skip to content

Set the outcomes window

PUT/v1/organization/{orgId}/marketing/results/outcomes/settings

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

Sets how many days after someone's first webinar touch a deal or membership still counts (30 to 365). Changes how outcomes are counted for everyone in the organization and is logged to History; sends nothing. Requires write:marketing, a key without an event restriction, and a user who can update or manage Contacts. Also at PUT /v1/marketing/results/outcomes/settings.

Request example

Terminal window
curl --request PUT \
--url 'https://public-api.sessionboard.com/v1/organization/{orgId}/marketing/results/outcomes/settings' \
--header 'x-access-token: <api-token>' \
--header 'Content-Type: application/json' \
--data '{
"windowDays": 30
}'

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.

Request body

application/jsonrequired

  • windowDaysintegerrequired

    Days after the first touch.

    Minimum
    30
    Maximum
    365
{
"windowDays": 30
}

Responses

200application/json

OK

  • payloadWebinarOutcomesSettings
    Show child attributes
    • window_daysinteger

      The organization's window, in days.

      Minimum
      30
      Maximum
      365
      Example
      180
    • default_window_daysinteger

      The window when none is set.

      Example
      180
    • min_window_daysinteger
      Example
      30
    • max_window_daysinteger
      Example
      365

400

windowDays is not a whole number from 30 to 365.

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).

Response examples

{
"payload": {
"window_days": 180,
"default_window_days": 180,
"min_window_days": 30,
"max_window_days": 365
}
}