Negate erase option and make optional

This makes it more intuitive for an empty request body to be equivalent
to the option being set to false.
This commit is contained in:
Andrew Ferrazzutti
2025-07-14 01:02:51 -04:00
parent a586b8a7b8
commit 23a87a02d2
2 changed files with 18 additions and 56 deletions

View File

@@ -3884,12 +3884,10 @@
"DeactivateUserRequest": {
"title": "JSON payload for the `POST /api/admin/v1/users/:id/deactivate` endpoint",
"type": "object",
"required": [
"erase"
],
"properties": {
"erase": {
"description": "Whether the user should be GDPR-erased from the homeserver.",
"skip_erase": {
"description": "Whether to skip requesting the homeserver to GDPR-erase the user upon deactivation.",
"default": false,
"type": "boolean"
}
}