Skip to Content
Docs
APIπŸ§ͺ REST EndpointsAgents folders

Move an agent to a folder or remove from folder

POST
/api/agents/folders/move_agent

Move an agent to a folder or remove from folder.

Personal access token scope: agents: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).

Request Body

application/json
  1. body
agent_id*string

Agent ID to move

folder_id?string

Target folder ID (null to remove from folder)

Response Body

Success

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