---
title: "Update a workspace"
method: PATCH
path: "/workspaces/{id}"
tags: ["workspaces"]
---

# Update a workspace

`PATCH /workspaces/{id}`

Updates a workspace by ID.

## Path parameters

- `id` string, cuid, required — The ID of the item

## Headers

- `x-client-id` string, cuid, required — The ID of the client

## Request body

- WorkspaceUpdate
  - `name` string, required — The new name of the workspace

## Response `200`

Workspace updated successfully

- Workspace
  - `id` string, cuid, required — The ID of the workspace
  - `name` string, required — The name of the workspace
  - `createdAt` string, date-time, required — The date and time of the creation for the workspace. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `updatedAt` string, date-time, required — The date and time of the last update for the workspace. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `archivedAt` string, date-time, nullable, required — The date and time the workspace was archived. ISO-8601 format (YYYY-MM-DDTHH:MM:SSZ).
  - `clientId` string, cuid, required — The ID of the client

## Other responses

- `401` — Unauthorized
- `404` — Workspace not found
- `422` — The validation error(s)
- `429` — Rate limit exceeded
- `500` — Internal server error

---

[API](https://skmtc.net/steuerboard/apis/steuerboard-api.md) · [All operations](https://skmtc.net/steuerboard/apis/steuerboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/steuerboard/steuerboard-api/revisions/2289f3059f77/schema)
