v1

latestOpenAPI 3.1.02026-07-17753796.1 KB
Server Configuration

Create the Contao directory structure.

Creates the necessary directory to install Contao. If the current directory is not empty, pass a new directory name to be created. If the current directory is empty but not a web dir, pass an empty directory to create the web directory only.

post/api/server/contao

Request body

directorystring nullable

The directory name or null if only the web/public directory must be created.

usePublicDirboolean

To use public instead of web directory

Response

Operation successful

versionstring nullable

The Contao version number.

configobject

Bundle configuration of Contao. Only available for Symfony 6.3.1+ (Contao 5.1+) and if the application is working correctly.

supportedboolean
project_dirstring

Full path to the project directory.

public_dirstring

Name of the public directory ("public" or "web").

directory_separator'/' | '\'