Create a feature-flag
POST /feature-flags
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”object
object
Unique identifier used in code, e.g. ‘new-billing-ui’ or ‘graphql-enabled’.
Percentage of organisations that see this flag (0–100). Assigned deterministically via DJB2 hash of org documentId.
Array of plan names that always see this flag, e.g. [“enterprise”, “pro”].
Array of organisation documentIds that are explicitly whitelisted.
Master switch. When false the flag evaluates to false for all orgs regardless of other settings.
Optional expiry. After this timestamp the flag evaluates to false automatically.
Responses
Section titled “ Responses ”Created
object
object
Unique identifier used in code, e.g. ‘new-billing-ui’ or ‘graphql-enabled’.
Percentage of organisations that see this flag (0–100). Assigned deterministically via DJB2 hash of org documentId.
Array of plan names that always see this flag, e.g. [“enterprise”, “pro”].
Array of organisation documentIds that are explicitly whitelisted.
Master switch. When false the flag evaluates to false for all orgs regardless of other settings.
Optional expiry. After this timestamp the flag evaluates to false automatically.
Validation error
Missing or invalid authentication
Not authorized (tenant scope or capability)