# Upload the workspace logo

Declare a new branding logo as `{"contentType", "sizeBytes"}` — a PNG, JPEG, SVG or WebP image up to 5MB — and get back its row, a signed `uploadUrl` good for 15 minutes for the bytes, and the public `url` that serves them once uploaded. The logo becomes the workspace's mark only when that `url` is saved into the `setting:general` workspace preference as `logo_url`. Admin only. Answers 503 when this deployment has no file storage or no public base URL, rather than an address that would not work.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/workspace/logo`

## Request body

Content type: `application/json`.

```json
{
  "contentType": "string",
  "sizeBytes": 1.5
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "contentType": "string",
    "createdAt": "string",
    "id": "",
    "sizeBytes": 1.5
  },
  "uploadUrl": "string",
  "url": "string"
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
