Skip to navigation

Update Site Add-ons

Attach add-ons to a site on an Enterprise plan, or change their quantity. Add-ons not listed in the request stay unchanged. To decrease an add-on, send the new quantity. To remove an add-on, send a quantity of 0.

A decrease fails with a 400 error if the site’s secondary locales, CMS items, or AEO prompts exceed the new limit. Removing ANALYZE or OPTIMIZE fails with a 400 error while data tracking is on. You can’t remove or decrease an add-on that the site’s plan includes.

Enterprise Only
This endpoint requires an Enterprise workspace with Enterprise self-provisioning enabled.

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 change. 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
503
Service Unavailable Error