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.

RReadIdempotentNeeds service_webhosting
Tool
manitu_webhosting_web_structure_geton https://mcp.manitu.de/mcp
POST
/v1/webhosting/web/structure/geton https://api.manitu.de
Try it
readOnlyHint truedestructiveHint falseidempotentHint trueopenWorldHint false

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.

site_id (required)integer | string

The site_id of the package. Never guess one.

pattern ^[1-9][0-9]*$min 1
The tool list tells the model a little more about some of these fields, at the end of their description. Programs over REST do not get these hints.
site_idinteger
layoutstring

Which 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.

One of legacy current
accountobject

The package's Unix account - both named site<id> today, but two roles.

account.web_userstring

The user the web server and PHP run as - not an FTP or SSH user.

account.groupstring

The 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 object
folder_list[].namestring
folder_list[].purposestring | null
folder_list[].pathobject
folder_list[].path.absolutestring

Absolute, 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 | null

Relative 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_userstring
folder_list[].owner_groupstring
folder_list[].modestring

Octal, as the folder is set up.

website_folder_templateobject

Where a website's folder belongs - {fqdn} is its full name, e.g. www.example.com.

website_folder_template.absolutestring
website_folder_template.apistring

One of X-API-Key, Authorization: Bearer … - never more than one in a request. More

site_id (required)integer | string

The site_id of the package.

pattern ^[1-9][0-9]*$min 1
site_idinteger
layoutstring

Which 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.

One of legacy current
accountobject

The package's Unix account - both named site<id> today, but two roles.

account.web_userstring

The user the web server and PHP run as - not an FTP or SSH user.

account.groupstring

The 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 object
folder_list[].namestring
folder_list[].purposestring | null
folder_list[].pathobject
folder_list[].path.absolutestring

Absolute, 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 | null

Relative 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_userstring
folder_list[].owner_groupstring
folder_list[].modestring

Octal, as the folder is set up.

website_folder_templateobject

Where a website's folder belongs - {fqdn} is its full name, e.g. www.example.com.

website_folder_template.absolutestring
website_folder_template.apistring
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.
Example