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 \
  --header 'Content-Type: application/json' \
  --data '{
  "portalStates": [
    {
      "portalId": 123,
      "flagState": "OFF"
    }
  ]
}'
{
  "portalFlagStates": [
    {
      "appId": 123,
      "portalId": 123,
      "flagName": "<string>",
      "flagState": "OFF"
    }
  ]
}
Unterstützte Produkte
Erfordert eines der folgenden Produkte oder höher.
Marketing HubMarketing HubKostenlos
Sales HubSales HubKostenlos
Service HubService HubKostenlos
Content HubContent HubKostenlos

Authorizations

hapikey
string
query
required

Path Parameters

flagName
string
required

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

appId
integer
required

Die ID der App.

Body

application/json
portalStates
object[]
required

Response

successful operation

portalFlagStates
object[]
required