Skip to content

Enable or disable 2FA.

PATCH
/api/user/2fa

Authorizations

api_key

Requests manipulating data need to supply a CSRF token

TypeAPI Key (header: X-CSRF-Token)

Request Body

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

Responses

Success

Playground

Authorization
Body

Samples

cURL
JavaScript
PHP
Python