Show the folders of a web hosting package
Where the web part of a package keeps what, and who owns it.
Returns how the web part of a web hosting package is laid out, by its site_id: the layout (legacy or current), the user PHP runs as and the package's group, its folders with path.absolute and path.api (as target_dir of a website and manitu_webhosting_web_permission_setPOST /v1/webhosting/web/permission/set take it), owner and mode, and where a website's folder belongs (website_folder_template). Changes nothing.
manitu_webhosting_web_structure_get on https://mcp.manitu.de/mcpAnnotations as tools/list sends them
Description for the model
Shows how the web part of a web hosting package is laid out, by its site_id: the layout (legacy or current - never assume one), the user PHP runs as and the package's group, its folders with path.absolute and path.api (as target_dir of a website and manitu_webhosting_web_permission_setPOST /v1/webhosting/web/permission/set take it), owner and mode, and where a website's folder belongs (website_folder_template). Call it before you name a path to the user or pick a folder for a website; how owners, group and modes work says manitu_guide_get"Read a guide" with topic webhosting-web. It changes nothing.
Arguments
site_id (required)integer | stringThe site_id of the package. Never guess one.
Result structuredContent, checked against the schema
site_idintegerlayoutstringWhich of two layouts: current - every new package, and those moved in the platform migration at the end of 2025, htdocs is web/htdocs; legacy - the older one, htdocs is web. Never assume one: paths differ.
accountobjectThe package's Unix account - both named site<id> today, but two roles.
account.web_userstringThe user the web server and PHP run as - not an FTP or SSH user.
account.groupstringThe package's group - the web server, PHP and every FTP and SSH user of the package are in it. Files are meant to be read- and writable for it, never for others.
folder_listarray of objectfolder_list[].namestringfolder_list[].purposestring | nullfolder_list[].pathobjectfolder_list[].path.absolutestringAbsolute, ending in "/" - as an SSH user of the package sees it. An FTP user sees the part below its own start folder.
folder_list[].path.apistring | nullRelative to the web root, ending in "/" - as the API takes folders (target_dir of a website, directory of manitu_webhosting_web_permission_setPOST /v1/webhosting/web/permission/set); null above the web root.
folder_list[].owner_userstringfolder_list[].owner_groupstringfolder_list[].modestringOctal, as the folder is set up.
website_folder_templateobjectWhere a website's folder belongs - {fqdn} is its full name, e.g. www.example.com.
website_folder_template.absolutestringwebsite_folder_template.apistringAs target_dir of manitu_webhosting_web_vhost_createPOST /v1/webhosting/web/vhost/create takes it.
Authentication
One of X-API-Key, Authorization: Bearer … - never more than one in a request. More
Request body JSON; unknown fields are refused
site_id (required)integer | stringThe site_id of the package.
Response in data; the rest of the body as on every call
site_idintegerlayoutstringWhich of two layouts: current - every new package, and those moved in the platform migration at the end of 2025, htdocs is web/htdocs; legacy - the older one, htdocs is web. Never assume one: paths differ.
accountobjectThe package's Unix account - both named site<id> today, but two roles.
account.web_userstringThe user the web server and PHP run as - not an FTP or SSH user.
account.groupstringThe package's group - the web server, PHP and every FTP and SSH user of the package are in it. Files are meant to be read- and writable for it, never for others.
folder_listarray of objectfolder_list[].namestringfolder_list[].purposestring | nullfolder_list[].pathobjectfolder_list[].path.absolutestringAbsolute, ending in "/" - as an SSH user of the package sees it. An FTP user sees the part below its own start folder.
folder_list[].path.apistring | nullRelative to the web root, ending in "/" - as the API takes folders (target_dir of a website, directory of manitu_webhosting_web_permission_setPOST /v1/webhosting/web/permission/set); null above the web root.
folder_list[].owner_userstringfolder_list[].owner_groupstringfolder_list[].modestringOctal, as the folder is set up.
website_folder_templateobjectWhere a website's folder belongs - {fqdn} is its full name, e.g. www.example.com.
website_folder_template.absolutestringwebsite_folder_template.apistringAs target_dir of manitu_webhosting_web_vhost_createPOST /v1/webhosting/web/vhost/create takes it.
Statuses
200Success.400The input is wrong, or the request itself (INVALID_INPUT). Each entry names its field and its reason - correct the input and call again.401No credential was presented, or it was not recognised (UNAUTHENTICATED).403The credential is valid, but may not do this (PERMISSION_DENIED). The reason says why - another credential is the way, not a repeat.429Too many calls. The Retry-After header says when to try again.500The server failed. Nothing about the request was wrong. Whether a change took effect is not known - check before trying it again.503The channel this operation forwards through is unavailable.