---
title: "PUT /flags/{flagID}/variants/{variantID}"
method: PUT
path: "/flags/{flagID}/variants/{variantID}"
tags: ["variant"]
---

# PUT /flags/{flagID}/variants/{variantID}

`PUT /flags/{flagID}/variants/{variantID}`

## Path parameters

- `flagID` integer, required
- `variantID` integer, required

## Request body

- PutVariantRequest
  - `key` string, required
  - `attachment` object

## Response `200`

variant just updated

- Variant
  - `id` integer
  - `key` string, required
  - `attachment` object

## Other responses

- `default` — generic error response

---

[API](https://skmtc.dev/checkr/apis/flagr.md) · [All operations](https://skmtc.dev/checkr/apis/flagr/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/checkr/flagr/revisions/67717c0f1f1a/schema)
