Skip to main content
PATCH
/
v1
/
flags
/
{flag}
/
variants
/
{variant}
Update Variant
curl --request PATCH \
  --url https://flags.eu.confidence.dev/v1/flags/{flag}/variants/{variant} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{}'
{
  "name": "<string>",
  "value": {},
  "createTime": {},
  "updateTime": {},
  "creator": "<string>",
  "updater": "<string>",
  "labels": [
    {}
  ],
  "description": "<string>",
  "imageUri": "<string>"
}

Authorizations

Authorization
string
header
required

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

Path Parameters

flag
string
required
variant
string
required

Query Parameters

updateMask
object

The list of fields in Variant that you want to update e.g. 'description', if empty all mutable properties are updated. Fields are specified relative to the variant.

Body

application/json

The body is of type object.

Response

200 - application/json

OK

A possible named value the flag can assign.

name
string
required

The resource name of the variant. For example: flags/my-flag/variants/control

value
object
required

The value that this variant represents. A possibly nested json object.

createTime
object
required

Time when the flag was first created.

updateTime
object
required

Time when the flag was last updated.

creator
string
required

Reference to the identity that created this variant.

updater
string
required

Reference to the identity that last updated this variant.

labels
object[]

General set of labels for this resource.

description
string

A human-friendly description of the variant.

imageUri
string

An image URL or path for the variant.