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
}
]
}Set the portal flag state for multiple HubSpot accounts at once. Use this endpoint to manage flag exposure for groups of HubSpot accounts.
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
}
]
}Was this page helpful?