Zum Hauptinhalt springen
POST
/
feature-flags
/
v3
/
{appId}
/
flags
/
{flagName}
/
portals
/
batch
/
upsert
Account-Flag-Status batchweise festlegen
curl --request POST \
  --url 'https://api.hubapi.com/feature-flags/v3/{appId}/flags/{flagName}/portals/batch/upsert?hapikey=' \
  --header 'Content-Type: application/json' \
  --data '
{
  "portalStates": [
    {
      "flagState": "ABSENT",
      "portalId": 123
    }
  ]
}
'
{
  "portalFlagStates": [
    {
      "appId": 123,
      "flagName": "<string>",
      "flagState": "ABSENT",
      "portalId": 123
    }
  ]
}

Unterstützte Produkte

Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing Hub -Kostenlos
Sales HubSales Hub -Kostenlos
Service HubService Hub -Kostenlos
Content HubContent Hub -Kostenlos

Autorisierungen

hapikey
string
query
erforderlich

Pfadparameter

appId
integer<int32>
erforderlich

Die ID der App.

flagName
string
erforderlich

Der Name des Flags, entweder „hs-release-app-cards“ oder „hs-hide-crm-cards“.

Body

application/json
portalStates
object[]
erforderlich

Antwort

successful operation

portalFlagStates
object[]
erforderlich
Last modified on March 24, 2026