Basic

Set an account flag state

Changed on

Specify an account-level flag state for a specific HubSpot account.

put/feature-flags/2026-09/{appId}/flags/{flagName}/portals/{portalId}

Request

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

Path parameters

appIdinteger required

The unique identifier of the application associated with the feature flag.

flagNamestring required

The name of the feature flag to update.

portalIdinteger required

The unique identifier of the portal where the feature flag state is being updated.

Request body

flagState'ABSENT' | 'OFF' | 'ON' required

The state that the given flag should be in for this portal

Response

successful operation

appIdinteger required

The ID of the app

flagNamestring required

The name of the flag

flagState'ABSENT' | 'OFF' | 'ON' required

The state of the flag for this portal

portalIdinteger required

The ID of the portal

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