POST

/api/v1/namespaces/{namespaceKey}/flags

{
  "createdAt": "string",
  "description": "string",
  "enabled": "boolean",
  "key": "string",
  "name": "string",
  "namespaceKey": "string",
  "type": "VARIANT_FLAG_TYPE",
  "updatedAt": "string",
  "variants": [
    {
      "attachment": "string",
      "createdAt": "string",
      "description": "string",
      "flagKey": "string",
      "id": "string",
      "key": "string",
      "name": "string",
      "namespaceKey": "string",
      "updatedAt": "string"
    }
  ]
}
curl --request POST \
  --url https://try.flipt.io/api/v1/namespaces/default/flags \
  --header 'Content-Type: application/json' \
  --header 'Accept: application/json' \
  --data '{
  "key": "<key>",
  "name": "<name>",
  "description": "<description>",
  "enabled": true
}'

Authorizations

Authorizationheaderrequired
string

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

namespaceKeyrequired
string

Body

application/json
description
string
enabled
boolean
keyrequired
string
namerequired
string
typerequired
enum<string>
Available options:
VARIANT_FLAG_TYPE,
BOOLEAN_FLAG_TYPE

Response

200 - application/json
createdAtrequired
string
descriptionrequired
string
enabledrequired
boolean
keyrequired
string
namerequired
string
namespaceKeyrequired
string
typerequired
enum<string>
Available options:
VARIANT_FLAG_TYPE,
BOOLEAN_FLAG_TYPE
updatedAtrequired
string
variantsrequired
object[]