Skip to main content
PUT
/
feature-flags
/
v3
/
{appId}
/
flags
/
{flagName}
/
portals
/
{portalId}
Set an account flag state
curl --request PUT \
  --url https://api.hubapi.com/feature-flags/v3/{appId}/flags/{flagName}/portals/{portalId} \
  --header 'Content-Type: application/json' \
  --data '{
  "flagState": "OFF"
}'
{
  "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.

portalId
integer
required

The ID of the account that installed the app.

appId
integer
required

The ID of the app.

Body

application/json
flagState
enum<string>
required
Available options:
OFF,
ON,
ABSENT

Response

successful operation

appId
integer
required
portalId
integer
required
flagName
string
required
flagState
enum<string>
required
Available options:
OFF,
ON,
ABSENT