# Add a size, format or theme variant; the body is the file

`POST /assets/{id}/variants/{label}` · Rivier · files

Add a size, format or theme variant; the body is the file.

- Scope: files:write
- Mcp: rivier_assets_add_variant
- Sdk: files.variant.add
- Cli: files variant add

## Parameters

- `id` (path, required), string
- `label` (path, required), string
- `theme` (query), string
- `name` (query), string
- `version` (query), string

## Request body

`application/octet-stream`

```json
{
  "type": "string",
  "format": "binary"
}
```

## Responses

- `201`: Success
- `400`: The request was malformed
- `401`: No valid credential
- `403`: The credential lacks the scope, origin or address
- `429`: Over the key's rate limit; see Retry-After

## Example

```sh
curl -X POST 'https://api.rivier.ai/assets/{id}/variants/{label}' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/octet-stream'
```
