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
Name | Value Type | Validation | Details |
---|---|---|---|
_method | string | Optional | Value[DELETE]; Override the method. |
uaID | int | Required | User ID. |
tfaOptID | int | Required | tfa option ID; Can be taken from GET ./auth/tfa_options |
uaPassword | int | Required | User password. |
Validation
Error Field | Error Code | Error Message |
---|---|---|
tfaOptID | 101 | Invalid tfaOptID. |
tfaOptID | 102 | The last tfa option can not be deactivate. |
uaPassword | 103 | Invalid password. |
Output example
{"result": true}