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

# Update a workspace

`PUT /v1/workspaces/{id}`

Updates an existing workspace.

## Request body

- WorkspaceUpdate
  - `name` string
  - `isPrivate` boolean

## Response `200`

Updates an existing workspace.

- object
  - `data` Workspace
    - `id` string
    - `name` string
    - `source` string
    - `company` string
    - `isPrivate` boolean
    - `isPersonal` boolean
    - `createdAt` string, date-time
    - `updatedAt` string, date-time

## Other responses

- `400` — The request body or parameters are invalid.
- `401` — Missing or invalid API key credentials.
- `404` — The resource does not exist in your organization.

---

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