application/json

Body Required

  • username string

    Accepted but ignored by the handler; the authenticated user is used

  • password string(password) Required

Responses

  • 200 application/json

    2FA disabled

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
  • 400 application/json

    Invalid request or failed to revoke 2FA

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
    • error string
  • 401 application/json

    Unauthorized

    Hide response attributes Show response attributes object
    • code integer
    • message string
    • data
    • error string
POST /2fa/disable
curl \
 --request POST 'http://localhost:8080/2fa/disable' \
 --header "Authorization: Bearer $ACCESS_TOKEN" \
 --header "Content-Type: application/json" \
 --data '{"username":"string","password":"string"}'
Request examples
{
  "username": "string",
  "password": "string"
}
Response examples (200)
{
  "code": 42,
  "message": "string"
}
Response examples (400)
{
  "code": 42,
  "message": "string",
  "error": "string"
}
Response examples (401)
{
  "code": 42,
  "message": "string",
  "error": "string"
}