Saltar al contenido principal
POST
/
feature-flags
/
v3
/
{appId}
/
flags
/
{flagName}
/
portals
/
batch
/
upsert
Establece por lotes el estado de los indicadores de cuenta
curl --request POST \
  --url https://api.hubapi.com/feature-flags/v3/{appId}/flags/{flagName}/portals/batch/upsert \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "portalStates": [
    {
      "flagState": "ABSENT",
      "portalId": 123
    }
  ]
}
'
{
  "portalFlagStates": [
    {
      "appId": 123,
      "flagName": "<string>",
      "flagState": "ABSENT",
      "portalId": 123
    }
  ]
}

Supported products

Autorizaciones

Authorization
string
header
requerido

The access token received from the authorization server in the OAuth 2.0 flow.

Parámetros de ruta

appId
integer<int32>
requerido

El ID de la aplicación.

flagName
string
requerido

El nombre del indicador, bien sea "hs-release-app-cards" o "hs-hide-crm-cards".

Cuerpo

application/json
portalStates
object[]
requerido

Respuesta

successful operation

portalFlagStates
object[]
requerido
Last modified on April 13, 2026