Skip to content

POST /wpcom/v2/agency/$agency_id/sites/$site_id/provision

Provision a new site for the agency. Site are purchased from https://agencies.automattic.com and its IDs obtained from /sites/pending endpoint.

Resource Information

   
Method POST
URL https://public-api.wordpress.com/wpcom/v2/agency/$agency_id/sites/$site_id/provision
Requires authentication? Yes

Method Parameters

Parameter Type Required Description
agency_id integer Yes The agency ID.
site_id integer Yes The Agency site ID.
site_name string No The site name.
php_version string No The PHP version.
primary_data_center string No The primary data center.
is_fully_managed_agency_site boolean No Whether the site is fully managed by the agency.

Response Example

					
						{
    "sucess": true,
    "job_id": 123
}					
				

Resource Errors

This endpoint does not return any errors.