Skip to navigation

Create flag

Authentication

X-Schematic-Api-Keystring
API Key authentication via header

Request

This endpoint expects an object.
descriptionstringRequired<=1024 characters
flag_typeenumRequired
Allowed values:
keystringRequired<=512 characters
namestringRequired<=512 characters
feature_idstring or nullOptional
maintainer_account_member_idstring or nullOptional
default_valueboolean or nullOptionalDeprecated

Deprecated. On create, the value a check returns in every environment until that environment has a default rule. Ignored on update: flags are account-wide and rules are per environment, so set an environment’s default through its default rule via the flag rules endpoint

Response

Created
dataobject
paramsobject
Input parameters

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
500
Internal Server Error