This is a translation of the original English documentation page. Help us make it better.



object mfa.update(object/array MFA methods)

This method allows to update existing MFA methods.

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) MFA method properties to be updated.

The mfaid property must be defined for each item, all other properties are optional. Only the passed properties will be updated, all others will remain unchanged.

The method accepts MFA methods with the standard MFA method properties.

Return values

(object) Returns an object containing the IDs of the updated MFA methods under the mfaids property.


Updating method properties

Update the hash function for generating TOTP codes and the verification code length for the "Zabbix TOTP" MFA method utilizing time-based one-time passwords (TOTP).


           "jsonrpc": "2.0",
           "method": "mfa.update",
           "params": {
               "mfaid": "1",
               "hash_function": 3,
               "code_length": 8
           "id": 1


           "jsonrpc": "2.0",
           "result": {
               "mfaids": [
           "id": 1


CMfa::update() in ui/include/classes/api/services/CMfa.php.