# Rename a workspace

`PATCH /v1/workspaces/{workspaceId}`

Scope: `docs:write`.

## Request

```bash
curl -X PATCH "https://api.lydie.co/v1/workspaces/01JCQ3TZ0WJ8K4M2X7T9R6N1PA" \
  -H "Authorization: Bearer $LYDIE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Notes"
  }'
```

## Path parameters

- `workspaceId` (string, required): (1–64 chars)

## Body

- `name` (string, required): (1–200 chars)

## Response

- `id` (string, required): (1–64 chars)
- `name` (string, required)
- `role` (string, required): One of: `owner`, `admin`, `member`, `guest`.
- `createdAt` (timestamp, required)
- `updatedAt` (timestamp, required)

```json
{
  "id": "01JCQ3TZ0WJ8K4M2X7T9R6N1PA",
  "name": "Notes",
  "role": "owner",
  "createdAt": "2026-11-12T09:30:00.000Z",
  "updatedAt": "2026-11-12T09:30:00.000Z"
}
```

Errors use the envelope described at https://developers.lydie.co/errors.md.
