# Upload the workspace logo

```http
PUT https://trydimmi.com/api/v1/workspace/logo
```

## Authorization

Send an API token as `Authorization: Bearer <token>`.
The token needs: `settings:write`.

## Body

- `filename` (string): filename of the file being uploaded
- `name` (string): general purpose name for multipart form value

## Response 200 (OK)

- `data` (object, required)
  - `customer_facing_name` (string | null, required): The name customers see for the workspace. Null when they see the workspace's own name.
  - `deleted_at` (string | null, required): When the workspace was moved to the trash. Null while it is not deleted.
  - `id` (string, required): The id of this record. Send it wherever an endpoint asks for this record; never use its name or title in its place.
  - `link_safety` (object, required)
    - `allow_domains` (string[] | null, required): Domains whose links skip the warning; each covers the domain and every name under it. Empty when none.
    - `block_domains` (string[] | null, required): Domains whose links cannot be clicked; each covers the domain and every name under it. Empty when none.
    - `enabled` (boolean, required): True when links in messages are checked and warned about before opening.
    - `strip_inbound_email_links` (boolean, required): True when links in received email show as plain text until a teammate reveals them.
  - `locale` (string, required): The workspace's language, such as en.
  - `logo_url` (string | null, required): Web address of the workspace's logo on this server. Null when it has none.
  - `name` (string, required): The workspace's name, 1 to 80 characters.
  - `object` (string, required): The kind of record this is, the same for every record of its kind, such as article.
  - `onboarding` (object, required)
    - `completed_at` (string | null, required): When the workspace finished setup. Null while setup is still under way.
    - `step` (string, required): The setup step the workspace is on: workspace, logo, channels, tags, team, knowledge, test_conversations or done.
  - `purge_after` (string | null, required): When a deleted workspace is removed for good unless restored. Null while it is not deleted.
  - `require_two_factor` (boolean, required): True when every member must have a second sign-in factor to work in the workspace.
  - `retention` (object, required)
    - `changed_at` (string): When the retention periods were last changed; left out if they never were.
    - `closed_conversation_days` (integer | null, required): Days a closed conversation is kept; null when closed conversations are kept for ever.
    - `export_days` (integer, required): Days a data export is kept; 7 unless the workspace chose otherwise.
    - `raw_email_days` (integer, required): Days raw email is kept after it is read; 30 unless the workspace chose otherwise.
    - `spam_days` (integer, required): Days spam is kept; 30 unless the workspace chose otherwise.
    - `trash_days` (integer, required): Days the trash is kept; 30 unless the workspace chose otherwise.
  - `seen_receipt_shows_name` (boolean, required): True when the customer's messenger names the teammate who read their message.
  - `seen_receipts` (boolean, required): True when the customer's messenger is told that the team read their message.
  - `show_viewers_on_list` (boolean, required): True when inbox lists show who is viewing each conversation.
  - `slug` (string, required): The workspace's short name used in its web addresses.
  - `team_mentions_enabled` (boolean, required): True when a note may mention a whole team.
  - `test_mode` (boolean, required): True when the workspace is a test-mode workspace. It is fixed and cannot be changed.
  - `timezone` (string, required): The workspace's time zone, as an IANA name such as UTC or Europe/Paris.
  - `undo_send_seconds` (integer, required): How many seconds a reply waits before it leaves, during which its writer can undo it. 5 unless the workspace changed it.

## Response default (Error)

- `code` (string, required): Stable code for programs to tell errors apart, such as validation_failed or internal_error.
- `errors` (object): Each rejected field mapped to its messages. Only present when the input was invalid.
- `message` (string, required): What went wrong, in words safe to show a person.

## Example request

```bash
curl --request PUT \
  --url 'https://trydimmi.com/api/v1/workspace/logo' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "filename": "<string>",
  "name": "<string>"
}'
```

## Example response

```json
{
  "data": {
    "customer_facing_name": "<string>",
    "deleted_at": "2026-11-01T09:30:00Z",
    "id": "<string>",
    "link_safety": {
      "allow_domains": [
        "<string>"
      ],
      "block_domains": [
        "<string>"
      ],
      "enabled": true,
      "strip_inbound_email_links": true
    },
    "locale": "<string>",
    "logo_url": "<string>",
    "name": "<string>",
    "object": "<string>",
    "onboarding": {
      "completed_at": "2026-11-01T09:30:00Z",
      "step": "<string>"
    },
    "purge_after": "2026-11-01T09:30:00Z",
    "require_two_factor": true,
    "retention": {
      "changed_at": "2026-11-01T09:30:00Z",
      "closed_conversation_days": 123,
      "export_days": 123,
      "raw_email_days": 123,
      "spam_days": 123,
      "trash_days": 123
    },
    "seen_receipt_shows_name": true,
    "seen_receipts": true,
    "show_viewers_on_list": true,
    "slug": "<string>",
    "team_mentions_enabled": true,
    "test_mode": true,
    "timezone": "<string>",
    "undo_send_seconds": 123
  }
}
```

---

Index of all dimmi docs: https://trydimmi.com/llms.txt (full text: https://trydimmi.com/llms-full.txt)
