PATCH
/users/{id}/settings/2fa
curl \
-X PATCH https://api.wan-host.com/users/920e4e75-3995-4056-a48d-a1c83ea9ea66/settings/2fa \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"code":"684254"}'
Request example
{
"code": "684254"
}
Response examples (400)
TOTP Already configured
{
"message": "TOTP is already configured"
}
{
"message": "Wrong code"
}
Response examples (200)
{
"backup": [
"mv4u3mi6o463uhunlp4g96jx"
]
}