---
title: "Update a workspace"
method: PUT
path: "/api/projects/{projectId}/workspaces/{workspaceId}"
tags: ["Workspaces"]
---

# Update a workspace

`PUT /api/projects/{projectId}/workspaces/{workspaceId}`

Update a workspace. Replaces the target resource or assignment with the supplied JSON representation.

## Request body

- UpdateWorkspaceRequest — update Workspace Request payload accepted by the API.
  - `path` string — File system path or repository-relative path.
  - `displayName` string, nullable — Optional display name shown to users.

## Response `200`

Workspace

- Workspace — Workspace record that links a project to a source checkout or directory.
  - `id` string, required — Stable identifier for the object.
  - `projectId` string, required — Project identifier that owns or scopes this object.
  - `path` string, required — File system path or repository-relative path.
  - `displayName` string, nullable — Optional display name shown to users.
  - `sourceType` string, required — source Type value for the workspace object.
  - `autoGenerated` boolean, required — auto Generated value for the workspace object.
  - `status` string, required — Current status value.
  - `errorMessage` string, nullable — Detailed error message, when present.
  - `createdAt` string, date-time, required — Time when the object was created.
  - `updatedAt` string, date-time, required — Time when the object was last updated.

---

[API](https://skmtc.net/ibuildthecloud/apis/discobot-server-api.md) · [All operations](https://skmtc.net/ibuildthecloud/apis/discobot-server-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ibuildthecloud/discobot-server-api/versions/4de3fcd6be56/schema)
