# Update workspace

`opensend workspace update`

Renames the workspace, sets where invoices go, sets the reply address its messages get by default, switches image hosting on or off, or replaces the page a recipient sees after they unsubscribe.

Needs the scope: `workspace:write`

## Flags

- `--name` (string): A new name for the workspace. Up to 120 characters.
- `--unsubscribe-page` (object): How the unsubscribe page should look. Send every field of it.
- `unsubscribePage.title` (string, required): The heading of the unsubscribe page. Up to 120 characters.
- `unsubscribePage.message` (string, required): The sentence under the heading. Up to 500 characters.
- `unsubscribePage.button` (string, required): The words on the button. Up to 60 characters.
- `unsubscribePage.accent` (string, required): The colour of the button, as a hex colour such as `#111111`.
- `unsubscribePage.askReason` (boolean, required): Whether the page asks why the person is leaving.
- `unsubscribePage.showLogo` (boolean, required): Whether the page shows your logo.
- `--billing-email` (string): Where invoices and billing notices should go. Up to 120 characters.
- `--reply-to` ("" | string): The address replies go to when a message names none and its template has none: every email, broadcast and automation step of the workspace. Empty to have none.
- `--host-images` (boolean): `true` to keep a copy of every image of your templates and broadcasts and link the copy in outgoing mail, `false` to link each image where it is. Turning it off is not recommended: an image that moves or goes away on its own site then stops loading in mail that was already sent.

## Returns

The command prints the answer: as JSON when its output goes to a file or another program, and as a table or a list of fields in a terminal. When the API refuses, the error goes to the error stream and the command ends with a code that names the failure. [Output and scripts](https://opensend.sh/docs/scripting) lists the codes.

- `object` ("workspace"): Always `workspace`.
- `id` (string): The id of the workspace.
- `name` (string): The name of the workspace.
- `slug` (string): The name in lowercase letters, digits and dashes.
- `plan` (object): The plan the workspace is on.
- `plan.id` (string): The id of the plan: `free`, `pro` or `max`, or `self_hosted` on a server a team hosts itself.
- `plan.name` (string): The name of the plan.
- `plan.renewsAt` (string): When the counts of the current month start again.
- `plan.interval` (string | null): How the plan is paid: by the `month` or by the `year`. `null` when nobody pays for it. One of: `month`, `year`.
- `plan.paidUntil` (string | null): Until when the plan is paid for, or `null`.
- `plan.extraEmailCents` (number | null): What every 1,000 emails past a limit cost on this plan, in cents of a US dollar, or `null`.
- `plan.stopsAtLimit` (boolean): Whether sending stops when the emails of the month are used up.
- `limits` (object[]): Every limit of the plan, with how much of it is used.
- `limits[].id` (string): Which limit this is, such as `domains` or `members`.
- `limits[].used` (number): How much of it is used in the current period.
- `limits[].limit` (number): How much the plan allows.
- `usage` (object[]): Everything that is counted, whether the plan limits it or not.
- `usage[].id` (string): What is counted, such as `transactional` or `contacts`.
- `usage[].used` (number): How much of it is used in the current period.
- `extra` (object): What this month has used beyond the plan. Zero on a plan that stops at its limits.
- `extra.emails` (integer): How many emails went past the limits of the plan this month.
- `extra.cents` (integer): What they cost so far, in cents of a US dollar.
- `viewer` (object): Who is asking.
- `viewer.name` (string): The name of the person, or of the API key.
- `viewer.email` (string): The address of the person. Empty for an API key.
- `viewer.image` (string | null): The address of their picture, or `null`.
- `viewer.kind` (string): How the request was signed: `session` for a signed-in person, `key` for an API key. One of: `session`, `key`, `demo`.
- `viewer.role` (string | null): Their role in the workspace, or `null` for an API key. One of: `owner`, `admin`, `member`, `viewer`.
- `storage` (string): Where the data is kept: `d1` for the database, `memory` when nothing outlives a restart. One of: `memory`, `d1`.
- `services` (object[]): What the API is connected to, and whether each part works.
- `services[].id` (string): The part: `api`, `sending`, `receiving`, `webhooks`, `payments`, `assistant` or `images`, the storage that keeps copies of your images. One of: `api`, `sending`, `receiving`, `webhooks`, `payments`, `assistant`, `images`.
- `services[].state` (string): `ok` when it works, `off` when it is not connected, `degraded` or `down` when it fails. One of: `ok`, `off`, `degraded`, `down`.
- `unsubscribePage` (object): How the unsubscribe page of the workspace looks.
- `unsubscribePage.title` (string): The heading of the unsubscribe page. Up to 120 characters.
- `unsubscribePage.message` (string): The sentence under the heading. Up to 500 characters.
- `unsubscribePage.button` (string): The words on the button. Up to 60 characters.
- `unsubscribePage.accent` (string): The colour of the button, as a hex colour such as `#111111`.
- `unsubscribePage.askReason` (boolean): Whether the page asks why the person is leaving.
- `unsubscribePage.showLogo` (boolean): Whether the page shows your logo.
- `billingEmail` (string): Where invoices and billing notices are sent.
- `replyTo` (string): The address replies go to when a message names none and its template has none. Empty for none.
- `hostImages` (boolean): Whether a copy is kept of every image of your templates and broadcasts, and outgoing mail links the copy. It only happens while the `images` service is `ok`.
- `createdAt` (string): When the workspace was made.

## Example

CLI:

```bash
opensend workspace update --name 'Acme Mail'
```

Answer:

```json
{
  "object": "workspace",
  "id": "ws_demo",
  "name": "Acme Mail",
  "slug": "acme-mail",
  "plan": {
    "id": "growth",
    "name": "Growth",
    "renewsAt": "2026-12-01T00:00:00.000Z",
    "interval": null,
    "paidUntil": null,
    "extraEmailCents": null,
    "stopsAtLimit": false
  },
  "limits": [
    {
      "id": "transactional",
      "used": 29325,
      "limit": 30000
    },
    {
      "id": "marketing",
      "used": 8879,
      "limit": 20000
    },
    {
      "id": "received",
      "used": 3185,
      "limit": 10000
    },
    {
      "id": "contacts",
      "used": 14914,
      "limit": 20000
    },
    {
      "id": "domains",
      "used": 3,
      "limit": 5
    },
    {
      "id": "members",
      "used": 6,
      "limit": 10
    },
    {
      "id": "requests",
      "used": 412900,
      "limit": 1000000
    },
    {
      "id": "storage",
      "used": 9234179686,
      "limit": 10737418240
    },
    {
      "id": "test",
      "used": 0,
      "limit": 30000
    }
  ],
  "usage": [
    {
      "id": "transactional",
      "used": 29325
    },
    {
      "id": "marketing",
      "used": 8879
    },
    {
      "id": "received",
      "used": 3185
    },
    {
      "id": "contacts",
      "used": 14914
    },
    {
      "id": "domains",
      "used": 3
    },
    {
      "id": "members",
      "used": 6
    },
    {
      "id": "requests",
      "used": 412900
    },
    {
      "id": "storage",
      "used": 9234179686
    },
    {
      "id": "test",
      "used": 0
    }
  ],
  "extra": {
    "emails": 0,
    "cents": 0
  },
  "viewer": {
    "name": "Backend",
    "email": "",
    "image": null,
    "kind": "key",
    "role": null
  },
  "storage": "memory",
  "services": [
    {
      "id": "api",
      "state": "ok"
    },
    {
      "id": "sending",
      "state": "ok"
    },
    {
      "id": "receiving",
      "state": "ok"
    },
    {
      "id": "webhooks",
      "state": "ok"
    },
    {
      "id": "payments",
      "state": "ok"
    },
    {
      "id": "assistant",
      "state": "ok"
    },
    {
      "id": "images",
      "state": "ok"
    }
  ],
  "unsubscribePage": {
    "title": "You are unsubscribed",
    "message": "You will not get any more emails from this list. It can take a day to reach every sender.",
    "button": "Subscribe again",
    "accent": "#0a0a0b",
    "askReason": true,
    "showLogo": true
  },
  "billingEmail": "billing@example.com",
  "replyTo": "",
  "hostImages": true,
  "createdAt": "2026-01-15T09:30:00.000Z"
}
```
