Skip to main content

Update 2FA

PUT 

/v1/settings/:twoFaId

Update 2FA

The update 2fa endpoint allows users to modify the name associated with their Two-Factor Authentication (2FA) method. It accepts a PUT request at /v1/settings/{twoFaId}, where {twoFaId} is the unique identifier for the 2FA record. The request body should contain a JSON object with a single field twofa_name, specifying the new name for the 2FA method. Upon successful update, it returns a 200 status code with a message indicating that the 2FA has been updated. If an internal server error occurs, it responds with a 500 status code.

Request

Path Parameters

    twoFaId uuidrequired

    Path parameter for 2FA id

Body

required
    twofa_name stringrequired

Responses

2FA updated

Schema

    string

Loading...