---
title: "Update Workspace"
method: PUT
path: "/workspaces/{workspace_id}"
tags: ["Workspaces"]
---

# Update Workspace

`PUT /workspaces/{workspace_id}`

## Request

- Base URL: `https://api.aspect.inc`
- URL: `https://api.aspect.inc/workspaces/{workspace_id}`
- Auth: API key in header `Authorization`

Update a workspace

## Path parameters

- `workspace_id` string, uuid, required

## Request body

- WorkspaceUpdateRequest: API request schema for updating a workspace
  - `name` string, nullable: New name for the workspace

## Response `200`

Successful Response

- WorkspaceResponse: API response schema for a workspace
  - `id` string, uuid, required: Workspace ID
  - `name` string, required: Workspace name
  - `created_by_user_id` string, uuid, required: ID of the user that created the workspace
  - `created` string, date-time, required: Creation timestamp
  - `updated` string, date-time, required: Last update timestamp

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/aspect/apis/aspect-api.md) - [All operations](https://skmtc.dev/aspect/apis/aspect-api/llms.txt) - [OpenAPI document](https://skmtc.dev/aspect/apis/aspect-api/revisions/28ea5f1adb54?raw)
