> For the complete documentation index, see [llms.txt](https://webside.gitbook.io/webside/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://webside.gitbook.io/webside/api/workspaces/put.md).

# Update a workspace

Update the workspace with a given ID.

**URL**: `/workspaces/{id}`

**Method**: `PUT`

## Success Responses

**Code** : `200 OK`

**Example:**: `GET /workspaces/1`

**Payload**: a `workspace` with the following properties:

```json
{
	"name": "string",
	"source": "string"
}
```

**Example:**: `PUT /workspaces/1` with the following body:

```json
{
	"source": "4 + 5"
}
```

Response:

```json
{
	"id": 1,
	"name": "Unnamed",
	"source": "4 + 5"
}
```
