Create site
Create a site in your server
POST api/servers/{server}/sites
Parameters
Parameter | Type | Status | Description |
---|---|---|---|
root_domain | string | required | Maximum: 100 |
web_directory | string | required | Maximum: 50 Must match this regular expression: /[a-zA-Z0-9\/]/ |
project_root | string | optional | Maximum: 50 Must match this regular expression: /[a-zA-Z0-9\/]/ |
project_type | string | optional | Set's the site's project type, available options: laravel , nodejs , statamic , craft-cms , symfony , wordpress , octobercms , cakephp |
system_user | string | optional | Must be a string matching the name of a system user in your server |
webserver_template | integer | optional | The ID of your webserver template saved in your account to create site with this template |
webhook_url | url | optional | A URL to your system to get notified on when the site has been installed (contents of this URL down in this document) |
Example request:
Example response:
Contents of webhook URL data (optional webhook_url field)
Example response: