Two-Factor Authentication
Create or update user 2FA binding
Changed onCreate or update a two-factor authentication method binding for a specific user. Users can manage their own bindings; managing other users' bindings requires MANAGE_USERS access right.
put/v1/users/{user-id}/2fa-bindings/{method-name}
Request
- Base URLhttp://127.0.0.1:8000
- URLhttp://127.0.0.1:8000/v1/users/{user-id}/2fa-bindings/{method-name}
- AuthHTTP bearer
Path parameters
user-idinteger required
User ID
method-namestring required
2FA method name
Request body
object required
Method-specific configuration as key-value pairs
Response
2FA binding updated successfully
Changes
- info
api operation id
setUser2faBindingwas added
- info
- info
endpoint added
- info