VoidhashDocs
DocumentationAPI reference
Dashboard
Essentials
API overview
Authentication
Endpoints
Ad_accounts
Analytics
Api_keys
Auth
Component_dev_sessions
Component_registry
Components
Development
Events
Experiments
Feature_flag_overrides
Feature_flag_targets
Feature_flags
Ingest_policy
Notification_sends
Notifications
Organizations
Payment_provider_configurations
Payment_provider_products
Payment_sources
Paywall_locations
Paywalls
Perks
Persons
Products
Projects
Push_notification_configurations
Schema
Sdk
Users
Webhooks
Analytics
Event capture
List Feature Flag Overrides
Upsert Feature Flag Override
Archive Feature Flag Override

Upsert Feature Flag Override

PreviousList Feature Flag OverridesNextArchive Feature Flag Override
POST
/api/v1/feature-flag-overrides

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

featureFlagId*string
forcedEnabled?boolean|null|null
forcedVariantKey?string|null|null
identityType*number

Value in

  • 1
  • 2
  • 3
  • 4
identityValue*string
note?string|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/v1/feature-flag-overrides" \  -H "Content-Type: application/json" \  -d '{    "featureFlagId": "string",    "identityType": 1,    "identityValue": "string"  }'
{  "archivedAt": "string",  "createdAt": "string",  "featureFlagId": "string",  "forcedEnabled": true,  "forcedVariantKey": "string",  "id": "string",  "identityType": 0,  "identityValue": "string",  "note": "string",  "updatedAt": "string"}
{  "_tag": "Api/SdkValidationError",  "message": "string"}
{  "_tag": "Api/AuthenticationError",  "cause": "string",  "message": "string"}
{  "_tag": "Api/ActionForbiddenError",  "message": "string"}
{  "_tag": "Api/FeatureFlagNotFoundError",  "featureFlagId": "string"}
{  "_tag": "Api/FeatureFlagServiceError",  "cause": "string"}