Skip to main content
PUT
Update 2FA Method

Authorizations

Authorization
string
header
required

API key must be provided in the Authorization header

Body

application/json
tfa_method_id
integer

ID of the 2FA method to update; preferred over tfa_method when multiple methods of the same type exist

Example:

3

tfa_method
enum<string>

Method type to update; used when tfa_method_id is not provided

Available options:
sms,
totp
Example:

"sms"

label
string

User-friendly name for this method (max 30 characters), e.g. 'Work Phone'

Example:

"Work Phone"

is_primary
boolean

Set to true to make this the preferred default method; set to false to unset it

Example:

true

Response

Returns {success: true, msg: "2FA method updated", method: {...}} with updated method info (phone masked, TOTP secret redacted).

success
boolean

Always true on success

msg
string

"2FA method updated"

method
object

Updated 2FA method record with phone number masked and TOTP secret redacted