Skip to main content
POST
/
feature-flags
/
v3
/
{appId}
/
flags
/
{flagName}
/
portals
/
batch
/
upsert
Batch set account flag state
curl --request POST \
  --url https://api.hubapi.com/feature-flags/v3/{appId}/flags/{flagName}/portals/batch/upsert \
  --header 'Content-Type: application/json' \
  --data '{
  "portalStates": [
    {
      "portalId": 123,
      "flagState": "OFF"
    }
  ]
}'
{
  "portalFlagStates": [
    {
      "appId": 123,
      "portalId": 123,
      "flagName": "<string>",
      "flagState": "OFF"
    }
  ]
}

Supported products

Requires one of the following products or higher.
Marketing HubMarketing Hub -Free
Sales HubSales Hub -Free
Service HubService Hub -Free
Content HubContent Hub -Free

Authorizations

hapikey
string
query
required

Path Parameters

flagName
string
required

The name of the flag, either hs-release-app-cards or hs-hide-crm-cards.

appId
integer
required

The ID of the app.

Body

application/json
portalStates
object[]
required

Response

successful operation

portalFlagStates
object[]
required