Skip to Content
Docs

PUT /api/folders/{folder_id}

PUT
/api/folders/{folder_id}

Rename or move a folder within its tree: {name?, parent_id?}; parent_id null moves it to the top level. The folder's own tree decides (a team's folder needs the Editor role there). Errors: 404 folder_not_found, 403 workspace_role_required, 400 folder_cycle / folder_too_deep, 409 folder_name_taken.

Personal access token scope: agents:write or prompts:write or sources:write or tools:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Path Parameters

folder_id*string

Request Body

application/json
  1. body
name?string

New name

parent_id?string

New parent folder id, or null

Response Body

Success

Example Request
curl -X PUT 'http://localhost:7091/api/folders/string' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response200
Empty