Create website
hosting_createWebsiteV1Create a new website on an existing hosting order by providing the domain and order ID. Specify a datacenter code when setting up the first website on a new hosting plan.
Instructions
Create a new website for the authenticated client.
You must choose which hosting order to create this website on. Pass that
order as order_id together with the domain name. List orders to see
available IDs; the website is provisioned on that order's hosting plan.
The datacenter_code parameter is required when creating the first website on a new hosting plan - this will set up and configure new hosting account in the selected datacenter.
Subsequent websites will be hosted on the same datacenter automatically.
Website creation takes up to a few minutes to complete. Check the websites list endpoint to see when your new website becomes available.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Domain name for the website. Cannot start with "www." | |
| order_id | Yes | Hosting order ID to create this website on. Choose the order whose hosting plan should host the new website. List orders to find available IDs. | |
| datacenter_code | No | Datacenter code. This parameter is required when creating the first website on a new hosting plan. |