Skip to content
Search
K
Main Navigation
Guide
Rest API
Wiki
Appearance
Menu
Return to top
Enable or disable 2FA.
PATCH
/api/user/2fa
Authorizations
api_key
Requests manipulating data need to supply a CSRF token
Type
API Key (header: X-CSRF-Token)
Request Body
application/json
Schema
JSON
JSON
{
"code"
:
"string"
,
"password"
:
"string"
,
"enable"
:
true
}
Responses
200
400
401
500
Success
PATCH
/api/user/2fa
Playground
Authorization
api_key
Body
Try it out
Samples
cURL
JavaScript
PHP
Python
cURL
JavaScript
PHP
Python