---
title: "Change name and/or inbox_quota. An inbox_quota below the live inbox count is 409 quota_below_usage and changes nothing. Another parent's workspace is 404 workspace_not_found. A sub-account key is 403 permission_denied."
method: PATCH
path: "/api/v1/workspaces/{id}"
tags: ["Workspaces"]
---

# Change name and/or inbox_quota. An inbox_quota below the live inbox count is 409 quota_below_usage and changes nothing. Another parent's workspace is 404 workspace_not_found. A sub-account key is 403 permission_denied.

`PATCH /api/v1/workspaces/{id}`

## Request

- Base URL: `https://cooperemail.com`
- URL: `https://cooperemail.com/api/v1/workspaces/{id}`
- Auth: HTTP bearer

## Path parameters

- `id` string, required

## Request body

- object
  - `name` string
  - `inbox_quota` integer

## Response `200`

The updated workspace

- Workspace
  - `object` 'workspace', required
  - `id` string, required
  - `name` string, required
  - `inbox_quota` integer, required
  - `inboxes_used` integer, required: Live inboxes. Expired inboxes are not counted.
  - `account_id` string, required
  - `api_key_id` string
  - `api_key_prefix` string, required
  - `created_at` string, required

---

[API](https://skmtc.dev/cooperemail/apis/cooper-email-api.md) · [All operations](https://skmtc.dev/cooperemail/apis/cooper-email-api/llms.txt) · [OpenAPI document](https://skmtc.dev/cooperemail/apis/cooper-email-api/revisions/6d800a7b3e33?raw)
