Enable or disable a preset or one family, or promote one add-on (AAL3 step-up; 501 without the activation service)
const url = 'https://example.com/v1/console/activation/apply';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"action":"enable","addon":"example","family":"example","preset":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/console/activation/apply \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "action": "enable", "addon": "example", "family": "example", "preset": "example" }'Applies an edition change: enable or disable a preset or one family, or promote one add-on. Step-up required; the answer says restart_required when the engine must restart to follow the change, and false when it already does. 501 without the activation service (a community build).
Authorizations
Section titled “ Authorizations ”Request Body required
Section titled “ Request Body required ”object
Required for promote.
For enable/disable: one family on its own; name this or preset.
For enable/disable: a preset; name this or family.
Responses
Section titled “ Responses ”OK
object
object
The key of the family that sells the add-on.
The edition’s catalog has the add-on. Absent means not known; false is an observed absence.
The verified licence covers it. Absent means not known; false is an observed absence.
The groups the edition sells add-ons in; each is turned on or off as a whole.
object
The add-ons of the family that are on now.
object
A change already applied still needs an engine restart to take effect; false when the running engine follows it.
Example
{ "addons": [ { "state": "active" } ]}Bad request
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Unauthenticated
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Forbidden
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Not found
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Conflict / setup required
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}Rate limited
object
object
With code module_not_enabled: the namespace of the module this node does not run.
Example generated
{ "error": { "code": "example", "message": "example", "module": "example" }}