Update Site Add-ons

Attach add-ons to a site on an Enterprise plan, or increase their quantity. Add-ons not listed in the request stay unchanged. Decreasing or removing an add-on isn't supported. <Warning title="Enterprise Only">This endpoint requires an Enterprise workspace with Enterprise self-provisioning enabled.</Warning> Required scope | `site_plans:write`

Authentication

AuthorizationBearer

Bearer authentication of the form Bearer <token>, where token is your auth token.

Path parameters

site_idstringRequiredformat: "objectid"
Unique identifier for a Site

Request

This endpoint expects an object.
addonslist of objectsRequired

Add-ons to attach or increase. Add-ons not listed stay unchanged. 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.

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error
500
Internal Server Error
502
Bad Gateway Error