Update Mode
Modes
Update Mode
Update mode details
PATCH
Update Mode
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 Mode
Updates an existing mode. 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
Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
id | string | Yes | Tokenset ID |
modeId | string | Yes | Mode ID |
Body Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
name | string | No | New mode name (max 255 characters) |
is_default | boolean | No | Set as default mode |
All body parameters are optional. Only provided fields will be updated.
Response
Status:200 OK
Examples
Error Responses
400 Bad Request
404 Not Found
Default Mode Behavior
When settingis_default: true:
- All other modes in this tokenset are set to
is_default: false - Only one mode can be default per tokenset
Next Steps
Delete Mode
Permanently delete a mode
List Tokens
View mode tokens