Zum Hauptinhalt springen
PUT
/
feature-flags
/
v3
/
{appId}
/
flags
/
{flagName}
Set an app's feature flag
curl --request PUT \
  --url 'https://api.hubapi.com/feature-flags/v3/{appId}/flags/{flagName}?hapikey=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "defaultState": "ABSENT",
  "overrideState": "ABSENT"
}
'
{
  "appId": 123,
  "defaultState": "ABSENT",
  "flagName": "<string>",
  "overrideState": "ABSENT"
}

Supported products

Autorisierungen

hapikey
string
query
erforderlich

Pfadparameter

appId
integer<int32>
erforderlich
flagName
string
erforderlich

Body

application/json
defaultState
enum<string>
erforderlich

The state that the flag should have if there are no overrides for a particular portal

Verfügbare Optionen:
ABSENT,
OFF,
ON
overrideState
enum<string>

A flag value that supercedes all other overrides, including portal-level values. Mostly used for things like emergency overrides

Verfügbare Optionen:
ABSENT,
OFF,
ON

Antwort

successful operation

appId
integer<int32>
erforderlich

The ID of the app

defaultState
enum<string>
erforderlich

The flag state for any portal that doesn't have an override value

Verfügbare Optionen:
ABSENT,
OFF,
ON
flagName
string
erforderlich

The name of the flag

overrideState
enum<string>

An optional flag value that overrides all others for this flag name and app, including portal-level values

Verfügbare Optionen:
ABSENT,
OFF,
ON
Last modified on April 9, 2026