Allow skipping GDPR-erasure when deactivating a user through the admin API (#4744)
This commit is contained in:
@@ -1359,6 +1359,15 @@
|
||||
"style": "simple"
|
||||
}
|
||||
],
|
||||
"requestBody": {
|
||||
"content": {
|
||||
"application/json": {
|
||||
"schema": {
|
||||
"$ref": "#/components/schemas/DeactivateUserRequest"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "User was deactivated",
|
||||
@@ -3943,6 +3952,17 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"DeactivateUserRequest": {
|
||||
"title": "JSON payload for the `POST /api/admin/v1/users/:id/deactivate` endpoint",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"skip_erase": {
|
||||
"description": "Whether to skip requesting the homeserver to GDPR-erase the user upon deactivation.",
|
||||
"default": false,
|
||||
"type": "boolean"
|
||||
}
|
||||
}
|
||||
},
|
||||
"UserEmailFilter": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
|
||||
Reference in New Issue
Block a user