Enable 2FA
POST
https://api.vpsbg.eu/v1/user/2faEnables 2FA security method for an account. Requires a secret key previously generated and a one time password to validate the process.
Request
Body Params application/json
otp
integerย
required
One time password
secret_key
stringย
required
Example
{
"otp": 1111111,
"secret_key": "secret_key"
}
Request samples
Responses
Successfully. applied 2fa(204)
Validation error. The error is specified in the response.(422)
Successfully. applied 2fa
HTTP Code:ย 204
Content Type :ย JSONapplication/json
Data Schema
objectย {0}
Example
Not configured
Last modified: 3 months ago