Files
superset2/docs/developer_docs_versioned_docs/version-6.1.0/api/get-the-user-object.StatusCodes.json

55 lines
1.5 KiB
JSON

{
"responses": {
"200": {
"content": {
"application/json": {
"schema": {
"properties": {
"result": {
"properties": {
"email": { "type": "string" },
"first_name": { "type": "string" },
"id": { "type": "integer" },
"is_active": { "type": "boolean" },
"is_anonymous": { "type": "boolean" },
"last_name": { "type": "string" },
"login_count": { "type": "integer" },
"username": { "type": "string" }
},
"type": "object",
"title": "UserResponseSchema"
}
},
"type": "object"
},
"example": {
"result": {
"email": "string",
"first_name": "string",
"id": 1,
"is_active": true,
"is_anonymous": true,
"last_name": "string",
"login_count": 1,
"username": "string"
}
}
}
},
"description": "The current user"
},
"401": {
"content": {
"application/json": {
"schema": {
"properties": { "message": { "type": "string" } },
"type": "object"
},
"example": { "message": "Unauthorized: Authentication required" }
}
},
"description": "Unauthorized"
}
}
}