Skip to content

Edit 2FA settings.​

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

Authorizations​

api_key

Requests manipulating data need to supply a CSRF token

Type
API Key (header: X-CSRF-Token)

Parameters​

Path Parameters

userId*
Type
string
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​