HubSpot · JSON Structure

Crm Feature Flags Api Portal Flag State Structure

Represents the flag state override for a specific portal (account)

Type: object Properties: 4 Required: 4
AnalyticsCommerceContentCRMCustomer ServiceEmail MarketingMarketingMarketing AutomationOperationsSales

PortalFlagState is a JSON Structure definition published by HubSpot, describing 4 properties, of which 4 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

appId flagName portalId flagState

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/hubspot/refs/heads/main/json-structure/crm-feature-flags-api-portal-flag-state-structure.json",
  "name": "PortalFlagState",
  "description": "Represents the flag state override for a specific portal (account)",
  "type": "object",
  "properties": {
    "appId": {
      "type": "int64",
      "description": "The unique identifier for the HubSpot application",
      "example": 12345678
    },
    "flagName": {
      "type": "string",
      "description": "The name of the feature flag",
      "example": "new-dashboard-feature"
    },
    "portalId": {
      "type": "int64",
      "description": "The unique identifier for the HubSpot portal (account)",
      "example": 98765432
    },
    "flagState": {
      "type": "string",
      "description": "The state of a feature flag",
      "enum": [
        "ON",
        "OFF",
        "ABSENT"
      ],
      "example": "ON"
    }
  },
  "required": [
    "appId",
    "flagName",
    "portalId",
    "flagState"
  ]
}