Update Workspace
Workspaces
Update Workspace
Update workspace details
PATCH
Update Workspace
Documentation Index
Fetch the complete documentation index at: https://docs.tokencraft.dev/llms.txt
Use this file to discover all available pages before exploring further.
Update Workspace
Updates an existing workspace. Only provided fields will be updated.Write access policy - This endpoint requires the
write:tokens scope.- TEAM-owned workspace:
owner,admin,editorcan write;vieweris blocked (403). - Non-TEAM workspace: only the workspace owner can write.
- If the workspace owner plan has no API write access (for example FREE), write is blocked.
Endpoint
Authentication
Requires a valid API token in the Authorization header.Request
Headers
| Header | Value | Required |
|---|---|---|
Authorization | Bearer token | Yes |
Content-Type | application/json | Yes |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Workspace ID |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | New workspace name (max 255 characters) |
description | string | No | New description (null to remove) |
All body parameters are optional. Only provided fields will be updated.
Request Body
Response
Success Response
Status:200 OK
Examples
Error Responses
400 Bad Request
- Empty
namefield nameexceeds 255 characters- Invalid field types
401 Unauthorized
404 Not Found
- Workspace ID doesn’t exist
- You do not have access to this workspace
Validation Rules
- name: If provided, must be non-empty string, max 255 characters
- description: If provided, must be string or null
Use Cases
1. Rename Workspace
2. Update Description
3. Remove Description
Next Steps
Delete Workspace
Permanently delete a workspace
Get Workspace
Retrieve workspace details