Skip to main content

Delete 2FA

DELETE 

/v1/settings/:twoFaId

Delete 2FA

This endpoint allows users to remove their Two-Factor Authentication (2FA) settings. It requires the user's ID and the specific 2FA ID they wish to delete. This operation ensures that the 2FA being deleted belongs to the requesting user. Upon successful deletion, it logs the activity and returns a 200 status code. If the 2FA does not exist or is not owned by the user, appropriate error codes (404 or 403) are returned. Internal server errors result in a 500 status code.

Request

Path Parameters

    twoFaId uuidrequired

    Path parameter for 2FA id

Responses

2FA deleted

Loading...