POST /wpcom/v2/sites/$wpcom_site/staging-site
Creates a staging site for an existing site. You can create one staging site per main site. After creating, you can monitor its provision status in the Transfer Status endpoint.
Resource Information
| Method | POST |
|---|---|
| URL | https://public-api.wordpress.com/wpcom/v2/sites/$wpcom_site/staging-site |
| Requires authentication? | Yes |
Method Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| wpcom_site | string | integer | Yes | A domain or blog ID. |
Response Example
{
"id": 123456,
"name": "Site Title",
"url": "http:\/\/staging-123456-sitename.wordpress.com",
"user_has_permission": true
}
Resource Errors
This endpoint does not return any errors.