Set an instance Plugin
const url = 'https://example.com/api/v1/admin/plugins/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"cascade":true,"enabled":true}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://example.com/api/v1/admin/plugins/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "cascade": true, "enabled": true }'Sets an instance Plugin. It requires a signed-in User with the admin scope and the admin or owner Role. It can return 401 if the session is missing or expired, 403 if access is denied, 404 if the requested item does not exist and 409 if the request conflicts with the current state. Route: /api/v1/admin/plugins/{id}. Inputs: id. A recent account assertion is required. Do not automatically replay this operation after an uncertain result.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Stable plugin ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Disable enabled dependents in the same operation.
Whether to enable this plugin for the Instance.
Examplegenerated
{ "cascade": true, "enabled": true}Responses
Section titled “Responses”Plugin state changed
Admin role or recent passkey assertion required
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Plugin does not exist
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Core plugin or enabled dependents prevent the change
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}