Move a folder to another workspace
move_folder_to_workspace
Moves a folder and every site inside it into a different workspace, in a one-way move that cannot be undone.
The folder and all of its sites change owner, and each one has its creator rewritten to you, which cannot be recovered. Deleted sites stay behind in the old workspace. The tool tells the client to confirm with you before calling it.
You need the Move folders permission in the workspace the folder is leaving and an accepted membership in the one it is going to. The move is refused when the destination already holds a folder with the same name, when the two workspace ids are the same, and when the destination has too few project or site slots left on its plan.
A site whose code was moved to a connected GitHub account has that code copied back to Modulify first. So the move is also refused while that code is still being moved, when the Modulify app lost access to its repository, or when the repository was deleted on GitHub, and it stops when a copy fails, naming any sites whose code was already copied back. These answers start with The folder was not moved. See Move your code to GitHub.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
folderId |
string | Yes | The folder to move, from list_folders. |
currentWorkspaceId |
string | Yes | The workspace it is in today. |
workspaceId |
string | Yes | The workspace to move it into, from list_workspaces. A token limited to specific workspaces must be allowed in both. |