Batch

Batch set account flag state

Changed on

Set the portal flag state for multiple HubSpot accounts at once. Use this endpoint to manage flag exposure for groups of HubSpot accounts.

post/feature-flags/2026-09/{appId}/flags/{flagName}/portals/batch/upsert

Request

  • Base URL
    https://api.hubapi.com
  • URL
    https://api.hubapi.com/feature-flags/2026-09/{appId}/flags/{flagName}/portals/batch/upsert
  • Auth
    API key in query parameter hapikey

Path parameters

appIdinteger required

The unique identifier of the app for which the feature flags are being managed.

flagNamestring required

The name of the feature flag to upsert.

Request body

Response

successful operation

Changes

  • 2026-09de25edbdcd67Revision changes
    • info

      the endpoint scheme security developer_hapikey was added to the API

    • info

      the endpoint scheme security oauth2 was removed from the API