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

Authorizations

Authorization
string
header
required

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

Path Parameters

namespaceKey
string
required
flagKey
string
required
id
string
required

Body

application/json
key
string
required
id
string
flagKey
string
name
string
description
string
attachment
string
namespaceKey
string

Response

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