DELETE ./auth/tfa_options

It is used to deactivate an option.

Caution!! Even if the method is DELETE the request can be made also with POST but the field _method will be included and will have the value DELETE. We do this in order not to send the password through DELETE and risking its exposure, for example, in logs.

Caution!! For the administrator not all the tfa options can be deactivated. User will receive error 102.

DELETE parameters

NameValue TypeValidationDetails
_methodstringOptionalValue[DELETE]; Override the method.
uaIDintRequiredUser ID.
tfaOptIDintRequiredtfa option ID; Can be taken from GET ./auth/tfa_options
uaPasswordintRequiredUser password.

Validation

Error FieldError CodeError Message
tfaOptID101Invalid tfaOptID.
tfaOptID102The last tfa option can not be deactivate.
uaPassword103Invalid password.

Output example

{
"result": true
}