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.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
folder_id*stringapplication/json- body
name?stringNew name
parent_id?stringNew parent folder id, or null
Success
curl -X PUT 'http://localhost:7091/api/folders/string' \ -H 'Content-Type: application/json' \ -d '{}'POST /api/folders POST
Create a folder in the workspace the request names: {name, parent_id?} (type is ignored). Names are trimmed, 1-80 characters, unique among siblings ignoring case across kinds (409 folder_name_taken); folders nest 3 levels deep (400 folder_too_deep). In a team it needs the Editor role (403 workspace_role_required). Answers 201 with the Folder. [Personal access token](/API/personal-access-tokens) scope: `agents:write` or `prompts:write` or `sources:write` or `tools:write`.
GET /api/agents/defaults GET
The guardrails a new agent starts with (set by an admin under Admin > Defaults), for prefilling the new-agent form: `{guardrails: {...}}`, the built-in defaults when none are set. [Personal access token](/API/personal-access-tokens) scope: `agents:read`.