# Set the logo (variant light or dark)

`PUT /org/{orgId}/branding/logo` · Rivier · workspace

Set the logo (variant light or dark): base64 PNG, JPEG, WebP or SVG up to 512 KB; an SVG is sanitised. Needs an admin.

- Scope: workspace:write
- Sdk: workspace.orgBranding.logoSet
- Cli: branding logo set

## Parameters

- `orgId` (path, required), string

## Request body

`application/json`

```json
{
  "type": "object",
  "properties": {
    "variant": {
      "type": "string",
      "enum": [
        "light",
        "dark"
      ],
      "default": "light"
    },
    "mime": {
      "type": "string",
      "enum": [
        "image/png",
        "image/jpeg",
        "image/svg+xml",
        "image/webp"
      ]
    },
    "data": {
      "type": "string",
      "minLength": 1,
      "maxLength": 699251
    }
  },
  "required": [
    "mime",
    "data"
  ],
  "additionalProperties": false
}
```

## Responses

- `200`: 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 PUT 'https://api.rivier.ai/org/{orgId}/branding/logo' \
  -H 'Authorization: Bearer $KEY' \
  -H 'Content-Type: application/json' \
  -d '{
  "mime": "image/png",
  "data": "string"
}'
```
