Upgrade a Starter site to its workspace's Enterprise plan, and optionally attach add-ons. The Enterprise plan is derived from the workspace's contract and uses the workspace's pooled site and add-on quota.
If the site is already on the workspace's Enterprise plan with the same add-ons, the request succeeds without changes. To change the add-ons of a provisioned site, use [Update Site Add-ons](/data/v2.0.0-beta/reference/enterprise/workspace-management/update-site-addons).
<Warning title="Enterprise Only">This endpoint requires an Enterprise workspace with Enterprise self-provisioning enabled.</Warning>
Required scope | `site_plans:write`
Request
This endpoint expects an object.
addonslist of objectsOptional
Add-ons to attach to the site. Each add-on type may appear at most once.
Response
Request was successful
planstring
ID of the site's Enterprise hosting plan.
addonslist of objects
All add-ons attached to the site after the request, not only the ones in the request. On Enterprise Plus, ANALYZE and OPTIMIZE are included with the plan and always returned with a quantity of 1.