Dream Sports · Schema

CTAUpdateRequest

CompanySports TechnologyFantasy SportsOpen SourceDeveloper ToolsPlatform EngineeringAuthenticationOpenID ConnectMobileReact NativeDevOpsObservabilityTest ManagementOTA UpdatesFeature FlagsIndiaMCPAgent-Native

Properties

Name Type Description
tags array
description string
team string
startTime integer
endTime integer
rule object
View JSON Schema on GitHub

JSON Schema

dream-sports-ctaupdate-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dream-sports/json-schema/dream-sports-ctaupdate-request-schema.json",
  "title": "CTAUpdateRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dream-sports-ctas-api-openapi.yml#/components/schemas/CTAUpdateRequest",
  "type": "object",
  "properties": {
    "tags": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "description": {
      "type": "string"
    },
    "team": {
      "type": "string"
    },
    "startTime": {
      "type": "integer",
      "format": "int64"
    },
    "endTime": {
      "type": "integer",
      "format": "int64"
    },
    "rule": {
      "$ref": "#/$defs/RuleRequest"
    }
  },
  "$defs": {
    "CohortEligibility": {
      "type": "object",
      "description": "Cohort eligibility configuration for CTAs. IMPORTANT: User-cohorts system is not currently supported. Always use includes: [\"all\"] (single cohort) or includes: [\"all\"] (list), and keep excludes: [] empty.",
      "required": [
        "includes",
        "excludes"
      ],
      "properties": {
        "includes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of cohort names to include. Must be [\"all\"] since user-cohorts system is not currently supported.",
          "minItems": 1
        },
        "excludes": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "List of cohort names to exclude. Must always be empty [] since user-cohorts system is not currently supported."
        }
      }
    },
    "Filters": {
      "type": "object",
      "required": [
        "operator",
        "filter"
      ],
      "properties": {
        "operator": {
          "type": "string"
        },
        "filter": {
          "type": "array",
          "items": {}
        }
      }
    },
    "Frequency": {
      "type": "object",
      "properties": {
        "session": {
          "$ref": "#/$defs/SessionFrequency"
        },
        "window": {
          "$ref": "#/$defs/WindowFrequency"
        },
        "lifeSpan": {
          "$ref": "#/$defs/LifespanFrequency"
        }
      }
    },
    "GroupByConfig": {
      "type": "object",
      "properties": {
        "maxActiveStateMachineCount": {
          "type": "integer",
          "format": "int32"
        },
        "groupByKeys": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "LifespanFrequency": {
      "type": "object",
      "required": [
        "limit"
      ],
      "properties": {
        "limit": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "RuleRequest": {
      "type": "object",
      "description": "Rule configuration for CTA including cohort eligibility, state transitions, actions, and frequency. Note: cohortEligibility must use includes: [\"all\"] and excludes: [].",
      "required": [
        "cohortEligibility",
        "stateToAction",
        "stateTransition",
        "priority",
        "stateMachineTTL",
        "actions",
        "frequency"
      ],
      "properties": {
        "cohortEligibility": {
          "description": "Cohort eligibility. Must use includes: [\"all\"] and excludes: [] since user-cohorts system is not currently supported.",
          "type": "object",
          "$ref": "#/$defs/CohortEligibility"
        },
        "stateToAction": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "minProperties": 1
        },
        "resetStates": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "resetCTAonFirstLaunch": {
          "type": "boolean"
        },
        "contextParams": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "stateTransition": {
          "type": "object",
          "additionalProperties": {
            "type": "object",
            "additionalProperties": {
              "type": "array",
              "items": {
                "$ref": "#/$defs/StateTransitionCondition"
              }
            }
          }
        },
        "groupByConfig": {
          "$ref": "#/$defs/GroupByConfig"
        },
        "priority": {
          "type": "integer",
          "format": "int32"
        },
        "stateMachineTTL": {
          "type": "integer",
          "format": "int64"
        },
        "actions": {
          "type": "array",
          "items": {
            "type": "object",
            "additionalProperties": {}
          }
        },
        "frequency": {
          "$ref": "#/$defs/Frequency"
        }
      }
    },
    "SessionFrequency": {
      "type": "object",
      "required": [
        "limit"
      ],
      "properties": {
        "limit": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "StateTransitionCondition": {
      "type": "object",
      "required": [
        "transitionTo",
        "filters"
      ],
      "properties": {
        "transitionTo": {
          "type": "string"
        },
        "filters": {
          "$ref": "#/$defs/Filters"
        }
      }
    },
    "WindowFrequency": {
      "type": "object",
      "required": [
        "limit",
        "unit",
        "value"
      ],
      "properties": {
        "limit": {
          "type": "integer",
          "format": "int32"
        },
        "unit": {
          "$ref": "#/$defs/WindowFrequencyUnit"
        },
        "value": {
          "type": "integer",
          "format": "int32"
        }
      }
    },
    "WindowFrequencyUnit": {
      "type": "string",
      "enum": [
        "days",
        "hours",
        "minutes",
        "seconds"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/dream-sports-ctaupdate-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.