Disable 2FA
POST/api
Disable 2fa for current user or for another user by passing user_id. A current 2fa code is required to run the action on current user. For another user the MANAGE_USER permission is required.
Request
- application/json
Body
array
required
Array [
- MOD2
- MOD3
- MOD2
]
action Actionrequired
Possible values: [disable_2fa
]
code
object
nullable
anyOf
string
integer
user_id
object
nullable
anyOf
string
metadata
object
property name* any
Responses
- 200
- 422
Successful Response
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
- MOD1
- MOD2
]
]
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Messagerequired
type Error Typerequired
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
Loading...