Add a size, format or theme variant; the body is the file
post/assets/{id}/variants/{label}
Before you call
- Credential
Authorization: Bearer $KEY- Scope
files:write- Mcp
rivier_assets_add_variant- Sdk
files.variant.add- Cli
files variant add
Parameters
- idstring (uuid)requiredIn the path
- labelstringrequiredIn the path
- themestringIn the query
- namestringIn the query
- versionstring (uuid)In the query
Request bodyapplication/octet-stream, required
string (binary)
Responses
- 201application/jsonSuccess
object - 400application/jsonThe request was malformed
- errorstringrequired
- messagestring
- 401application/jsonNo valid credential
- errorstringrequired
- messagestring
- 403application/jsonThe credential lacks the scope, origin or address
- errorstringrequired
- messagestring
- 429application/jsonOver the key's rate limit; see Retry-After
- errorstringrequired
- messagestring