Site folders
The folders an account sorts its sites into, nested a few levels deep. Folders only organise the dashboard: moving a site changes no address, and deleting a folder lifts what it held up to its parent rather than deleting any site.
Reads the whole of the account's folder tree, with the limits it is bounded by.
Reads the whole of the account's folder tree, with the limits it is bounded by. › Responses
OK
Every folder the account holds, by name.
maxDepth^-?(?:0|[1-9]\d*)$ · requiredHow deeply folders may nest. Sent for the same reason as MaxFolders: the drag target that would break this rule can be refused before the drop rather than after the request.
maxFolders^-?(?:0|[1-9]\d*)$ · requiredHow many folders this account may hold in total.
Sent so the dashboard can grey out "New folder" before somebody names one and is refused. A client that had to discover the limit by hitting it would have to discard what they typed.
Makes a folder, at the top level or inside another.
Makes a folder, at the top level or inside another. › Request Body
nameWhat to call the folder. Cleaned the way a site's name is.
parentIdFolder to create it inside. Omit it, or send "root", to create it at the top level — see
string SiteFolderAccess.RootToken for why a literal token rather than null.
Makes a folder, at the top level or inside another. › Responses
Created
The folder as it now stands.
Files several sites and folders into one folder, or to the top level, all or nothing.
Files several sites and folders into one folder, or to the top level, all or nothing. › Request Body
folderIdsFolders to move under it. May be empty when only sites move.
siteIdsSites to file there. May be empty when only folders move.
targetIdWhere everything goes: a folder id, or "root" for the top level. Required — see
string SiteFolderAccess.RootToken for why the root is a token rather than an absent value.
Files several sites and folders into one folder, or to the top level, all or nothing. › Responses
OK
foldersMoved^-?(?:0|[1-9]\d*)$ · requiredFolders that changed parent, counted the same way.
sitesMoved^-?(?:0|[1-9]\d*)$ · requiredSites that changed folder. Fewer than were sent when some were already there, which is not an error.
targetIdThe folder everything is now in, or null for the top level.
Renames a folder, moves it under another, or both.
path Parameters
folderIdRenames a folder, moves it under another, or both. › Request Body
nameA new name, or null to leave it alone.
parentIdWhere to move it: a folder id, or "root" to move it to the top level. Null leaves it where it
is — see string SiteFolderAccess.RootToken for why moving to the root needs a token of its
own rather than a null.
Renames a folder, moves it under another, or both. › Responses
OK
The folder as it now stands.
Removes a folder and lifts its folders and sites up to its parent.
path Parameters
folderIdRemoves a folder and lifts its folders and sites up to its parent. › Responses
OK
folderIdThe folder that was removed.
foldersMoved^-?(?:0|[1-9]\d*)$ · requiredHow many folders were lifted one level.
movedToWhere its contents went: the deleted folder's own parent, or null when they are now at the root.
sitesMoved^-?(?:0|[1-9]\d*)$ · requiredHow many sites were lifted one level. Reported so the dashboard can say what happened rather than leaving somebody to find their sites somewhere they did not put them.