---
title: Update a workspace
description: Changes the workspace name.
doc_version: 0.1.0-preview
last_updated: 2026-09-14
---

# Update a workspace

`PATCH /v1/workspaces/{workspaceId}`

Changes the workspace name. Requires the admin role. Send the revision from a read: the update fails with a conflict when another writer changed the workspace first.

## Authentication

Send `Authorization: Bearer <GRAPHON_API_KEY>`. Read the key from the
GRAPHON_API_KEY environment variable. Never print it.

## Path parameters

- `workspaceId` (string) — The workspace id.

## Request body

- `name` (string) — The new workspace name. 1 to 100 characters after trimming.
- `revision` (number) — The revision the caller read. The update fails when the workspace changed after that read.

## Example request

```bash
curl --request PATCH \
  --url "https://api.beta.graphon.ai/v1/workspaces/wspq7ws2np5l8z4" \
  --header "Authorization: Bearer $GRAPHON_API_KEY" \
  --header "Content-Type: application/json" \
  --data '{"name":"Research","revision":1}'
```

## Example response

```json
{
  "id": "wspq7ws2np5l8z4",
  "name": "Ada Lovelace’s workspace",
  "revision": 1
}
```

## Sitemap

See the full [sitemap](/sitemap.md) for all pages.
