Deactivate two-factor authentication

POST/users/{userId}/deactivate2FA

Base URL: https://api.tinkermode.com

Deactivate Two-Factor Authentication. The user must provide a correct password to carry out this action.

Authentication

Send an Authorization header of the form ModeCloud <AUTH_CODE>.

Must contain API key of the matching user.

Path parameters

NameTypeRequiredConstraintsDescription
userIdintegerYesThe unique ID for the specified user.

Request body

Content type: application/json

PropertyTypeRequiredConstraintsDescription
passwordstringYesUser's password.

Request example

{
  "password": "userpassword"
}

Responses

204 User has successfully deactivated 2FA.