POST /api/workspace_moves/plan
Plan a move to a team (the person who owns the items, Editor or above there) or out of one to the caller's Personal (an Admin): what comes along, what can't, who gains or loses access, and the fingerprint to apply it with. Changes nothing.
Not available to personal access tokens; call it from a signed-in session.
bearerAuthorizationBearer <token>A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).
application/json- body
fingerprint?stringThe plan's fingerprint (apply only)
items*[{type: agent|source|tool|prompt|folder, id}]
to*{workspace: "personal" | team id, folder_id?}
Success
curl -X POST 'http://localhost:7091/api/workspace_moves/plan' \ -H 'Content-Type: application/json' \ -d '{ "items": {}, "to": {}}'GET /api/workspaces GET
Personal and every team the caller is in, with the caller's role in each. [Personal access token](/API/personal-access-tokens) scope: `teams:read`.
Apply a planned move in one transaction POST
Apply a planned move in one transaction. Answers 409 move_plan_changed with the fresh plan when the fingerprint no longer matches, 409 move_would_borrow naming the agents with outside access that would use a moved item (and counting those the caller can't open), 403 move_needs_admin when a moving agent has outside access and the caller isn't a team Admin, and 409 credentials_unreadable naming a tool whose saved secret can't be re-sealed. Not available to [personal access tokens](/API/personal-access-tokens); call it from a signed-in session.