Enable or disable a plugin
PATCH/plugins/:id/state
Persists the new state and starts or stops the plugin immediately. Disabling releases everything the plugin owns, including any port it was listening on. Enabling also starts any installed hard dependency that is off, and disabling also stops the running plugins that depend on it. With dryRun nothing changes and the response lists what would. On a linked desktop, locally managed plugins require version and capabilities matching the reviewed manifest when enabling.
Request
Responses
- 200
- 400
- 403
- 404
- 409
The plugin's new state.
Invalid request body.
The caller lacks admin.plugins.manage.
No such plugin.
This desktop is linked to a server, which decides whether the plugin runs, or safe mode is on and the plugin is not a layout or theme.