Skip to Content
Docs

Apply a planned move in one transaction

POST
/api/workspace_moves

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; call it from a signed-in session.

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
fingerprint?string

The plan's fingerprint (apply only)

items*

[{type: agent|source|tool|prompt|folder, id}]

to*

{workspace: "personal" | team id, folder_id?}

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/workspace_moves' \  -H 'Content-Type: application/json' \  -d '{  "items": {},  "to": {}}'
Example Response200
Empty