Skip to content

Enable or disable 2FA.

PATCH
/api/user/{userId}/2fa

Authorizations

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Parameters

Path Parameters

userId*
Typestring
Required
Pattern"[1-9][0-9]*"

Request Body

application/json
JSON
{
"code": "string",
"password": "string",
"enable": true
}

Responses

Success

Playground

Authorization
Variables
Key
Value
Body

Samples

cURL
JavaScript
PHP
Python