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

Authorizations

Authorization
string
headerrequired

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

Path Parameters

namespaceKey
string
required
key
string
required

Body

application/json
description
string
enabled
boolean
name
string
required

Response

200 - application/json
createdAt
string
required
description
string
required
enabled
boolean
required
key
string
required
name
string
required
namespaceKey
string
required
type
enum<string>
required
Available options:
VARIANT_FLAG_TYPE,
BOOLEAN_FLAG_TYPE
updatedAt
string
required
variants
object[]
required