---
title: "Update a workspace"
description: "Changes a workspace's name, branding or settings."
canonical_url: https://docs.markdrop.in/api/workspaces/update-a-workspace
last_updated: 2026-10-30
site: "Markdrop Docs"
index: https://docs.markdrop.in/llms.txt
---

# Update a workspace

`PUT https://api.markdrop.in/api/v1/workspaces/{workspace_id}`

Changes a workspace's name, branding or settings. Every field is optional.

- **Authentication:** API token required: `Authorization: Bearer mdk_…`.
- **Rate limit:** 60 per minute per IP address.
- **Guide:** [Branding](https://docs.markdrop.in/workspaces/branding)

## Path parameters

- `workspace_id` (string, required): The workspace's id, from the address of its settings page (`markdrop.in/settings/workspaces/<workspace-id>`) or from [List workspaces](https://docs.markdrop.in/api/workspaces/list-workspaces).

## Request body

`application/json`, required.

- `name` (string): 1–80 characters.
- `branding` (object): Every field optional — an unset workspace looks exactly like Markdrop.
  - `site_name` (string): Up to 60 characters.
  - `favicon_url` (string): Up to 500 characters.
  - `logo_url` (string): Up to 500 characters.
  - `accent_color` (string): Matches `^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$`.
  - `hide_markdrop_branding` (boolean): Default `false`.
  - `logo_well` ("light" | "dark" | "checker")
- `settings` (object)
  - `viewer_chrome` ("full" | "minimal" | "none"): Default `"full"`.
  - `require_auth_to_view` (boolean): Default `false`.
  - `members_can_share_folders` (boolean): Default `true`.
  - `default_access` ("link" | "workspace" | "private"): Default `"workspace"`.

## Responses

- `200`: OK.
  - `id` (string)
  - `name` (string)
  - `owner_id` (string)
  - `created_at` (string (date-time)): ISO 8601, for example `2026-11-30T12:00:00Z`.
  - `updated_at` (string (date-time)): ISO 8601, for example `2026-11-30T12:00:00Z`.
  - `branding` (object): Every field optional — an unset workspace looks exactly like Markdrop.
    - `site_name` (string | null): Up to 60 characters.
    - `favicon_url` (string | null): Up to 500 characters.
    - `logo_url` (string | null): Up to 500 characters.
    - `accent_color` (string | null): Matches `^#(?:[0-9a-fA-F]{3}|[0-9a-fA-F]{6})$`.
    - `hide_markdrop_branding` (boolean): Default `false`.
    - `logo_well` ("light" | "dark" | "checker" | null)
  - `settings` (object)
    - `viewer_chrome` ("full" | "minimal" | "none"): Default `"full"`.
    - `require_auth_to_view` (boolean): Default `false`.
    - `members_can_share_folders` (boolean): Default `true`.
    - `default_access` ("link" | "workspace" | "private"): Default `"workspace"`.
  - `role` ("owner" | "admin" | "member" | "viewer")
  - `primary_host` (string | null)
  - `domains` (array of object)
    - `host` (string)
    - `kind` (string | null)
    - `status` (string): Default `"pending"`.
    - `verified` (boolean)
    - `primary` (boolean)
    - `live` (boolean)
    - `txt_ok` (boolean | null)
    - `routing_ok` (boolean | null)
    - `failures` (integer): Default `0`.
  - `default_access` (string): Default `"workspace"`.
  - `privacy` (string): Default `"custom"`.
  - `member_count` (integer): Default `0`.
  - `pending_invite_count` (integer): Default `0`.
  - `domain_count` (integer): Default `0`.
- `401`: No token, or the token is revoked or mistyped.
- `422`: The request didn't validate. `detail` lists each problem, with where it is (`loc`) and why (`msg`).
- `429`: Too many requests from your IP address. Wait the seconds in `Retry-After`.

## Examples

**curl**

```bash
curl -X PUT https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID \
  -H "Authorization: Bearer $MARKDROP_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name":"Acme Inc."}'
```

**JavaScript**

```javascript
const res = await fetch("https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID", {
  method: "PUT",
  headers: {
    Authorization: `Bearer ${process.env.MARKDROP_TOKEN}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "name": "Acme Inc."
  }),
});
const data = await res.json();
```

**Python**

```python
import os

import requests

r = requests.put(
    "https://api.markdrop.in/api/v1/workspaces/WORKSPACE_ID",
    headers={"Authorization": f"Bearer {os.environ['MARKDROP_TOKEN']}"},
    json={"name": "Acme Inc."},
)
r.raise_for_status()
print(r.json())
```
