mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-01-21 19:25:43 +00:00
60 lines
964 B
JSON
60 lines
964 B
JSON
{
|
|
"operationId": "disableUser2fa",
|
|
"summary": "Disable 2fa for user",
|
|
"tags": ["users"],
|
|
"parameters": [
|
|
{
|
|
"in": "path",
|
|
"name": "userID",
|
|
"schema": {
|
|
"type": "integer",
|
|
"minimum": 1
|
|
},
|
|
"required": true,
|
|
"description": "User ID",
|
|
"example": 2
|
|
}
|
|
],
|
|
"requestBody": {
|
|
"description": "2fa Code Payload",
|
|
"required": true,
|
|
"content": {
|
|
"application/json": {
|
|
"schema": {
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"code": {
|
|
"minLength": 6,
|
|
"maxLength": 6,
|
|
"type": "string",
|
|
"example": "012345"
|
|
}
|
|
},
|
|
"required": ["code"],
|
|
"type": "object"
|
|
},
|
|
"example": {
|
|
"code": "012345"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"responses": {
|
|
"200": {
|
|
"content": {
|
|
"application/json": {
|
|
"examples": {
|
|
"default": {
|
|
"value": true
|
|
}
|
|
},
|
|
"schema": {
|
|
"type": "boolean"
|
|
}
|
|
}
|
|
},
|
|
"description": "200 response"
|
|
}
|
|
}
|
|
}
|