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

Authorizations

Authorization
string
headerrequired

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

Path Parameters

namespaceKey
string
required
flagKey
string
required

Body

application/json
key
string
required
name
string
description
string
attachment
string

Response

200 - application/json
id
string
required
namespaceKey
string
required
flagKey
string
required
key
string
required
name
string
required
description
string
required
createdAt
string
required
updatedAt
string
required
attachment
string
required