Two-Factor Authentication

Create or update user 2FA binding

Changed on

Create 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 URL
    http://127.0.0.1:8000
  • URL
    http://127.0.0.1:8000/v1/users/{user-id}/2fa-bindings/{method-name}
  • Auth
    HTTP 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