ProvisionAgencySite
Provisions a new agency site in WordPress.com with specified configuration options.
Stored Procedure-Specific Information
To provision an agency site, you must specify the AgencyId and SiteId parameters.
The following example shows how to provision an agency site.
EXEC ProvisionAgencySite AgencyId = '123', SiteId = '456';
You can also specify optional configuration parameters:
EXEC ProvisionAgencySite AgencyId = '123', SiteId = '456', SiteName = 'My New Site', PhpVersion = '8.1', PrimaryDataCenter = 'us-east-1', IsFullyManagedAgencySite = 'true';
The procedure returns a JobId that can be used to track the provisioning progress.
Input
| Name | Type | Description |
| AgencyId | Integer | The unique identifier of the agency. |
| SiteId | Integer | The unique identifier of the agency site to be provisioned. |
| SiteName | String | The name to assign to the provisioned site. |
| PhpVersion | String | The PHP version to use for the site (for example, '7.4', '8.0', '8.1'). |
| PrimaryDataCenter | String | The primary data center location for hosting the site. |
| IsFullyManagedAgencySite | Boolean | Specifies whether the site should be fully managed by the agency. |
Result Set Columns
| Name | Type | Description |
| Success | Boolean | Indicates whether the site provisioning operation was initiated successfully. |
| JobId | Integer | The unique identifier of the provisioning job for tracking progress. |