# module\_toggle

Source: https://zotonic.com/docs/1475/module_toggle

URI: https://zotonic.com/id/1475

Language: en



Activate/deactivate a module in the module manager in the admin interface.

Arguments:

- `module` is the Erlang module atom to change.
- `is_activate` forces activation.
- `is_deactivate` forces deactivation and takes precedence over `is_activate`.
- With neither flag, the current active state is toggled.
- `status_id` is retained in the signed postback for the admin status control.

Activation and deactivation run dependency prechecks. Missing or cyclic dependencies are shown in a confirmation dialog; successful changes reload the page. The site must be writable and the current user must be allowed to use the module manager.

License: 

Attribution: 

Related resources: https://zotonic.com/api/agent/related/1475?language=en


## API access

- [API help](<https://zotonic.com/api-help>)
- [OpenAPI specification](<https://zotonic.com/openapi.json>)
- [This resource as JSON](<https://zotonic.com/api/agent/resource/1475?language=en>)
