object module.update(object/array modules)
This method allows to update existing modules.
This method is only available to Super admin user type. Permissions to call the method can be revoked in user role settings. See User roles for more information.
(object/array)
Module properties to be updated.
The moduleid
property must be defined for each module, all other properties are optional. Only the specified properties will be updated.
The method accepts modules with the standard module properties.
"(object)" Restituisce un oggetto contenente gli ID dei moduli aggiornati nella proprietà "moduleids".
Disable module "25".
{
"jsonrpc": "2.0",
"method": "module.update",
"params": {
"moduleid": "25",
"status": 0
},
"id": 1
}
Response:
CModule::update() in ui/include/classes/api/services/CModule.php.