Workspaces · renameWorkspace
Rename a workspace
PATCH /v1/workspaces/{id}
Owners only.
- Who may call it
- humans: Owners and up
- Server
- https://api.logu.dev
Parameters#
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | required | The workspace's id (wsp_…). The request acts in this workspace (the Logu-Workspace header is ignored). · e.g. wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6 |
Request body#
Content type application/json (required).
A workspace's new name. Strict.
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | required | 1–64 chars |
{
"name": "Acme ops"
}
Example#
curl -s -X PATCH "https://api.logu.dev/v1/workspaces/wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Acme ops"}'
Responses#
200
The workspace.
{
"id": "wsp_01K7D7Y8Z0B2D4F6H8K0M2P4R6",
"name": "Acme ops",
"personal": false,
"role": "owner",
"plan": "pro",
"createdAt": "2026-10-02T12:00:00.000Z"
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | required | |
name | string | required | |
personal | boolean | required | |
role | "owner" | "decider" | "viewer" | required | |
plan | "free" | "pro" | required | |
createdAt | string | required | date-time |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 400 | bad_request | The request is malformed or a field is invalid (see issues). |
| 400 | unknown_field | The body has a field the endpoint doesn't know (often a typo or snake_case). |
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 403 | forbidden | The caller is authenticated but may not do this (wrong role, or an API key on a human-only endpoint). |
| 404 | not_found | No such route, or the resource doesn't exist in your workspace. |
| 500 | internal_error | Something went wrong on Logu's side. |