Skip to content

Edit 2FA settings.​

PATCH
/api/users/{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]\\d*|current"

Request Body​

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

Responses​

Success

Playground​

Authorization
Variables
Key
Value
Body

Samples​

cURL
JavaScript
PHP
Python