Delete user
/api/users/{id}Deletes an account while keeping everything it did. The account's username, email, password, Discord id, VRChat link and roles are replaced or cleared, and it is left under a deleted_user_ name. Facts, case files, notes and moderation actions keep pointing at it. The request must carry the account's username, typed out. Refused for your own account, for the last enabled administrator, and for an account whose highest role is not below yours.
Needs the ManageUsers permission.
An API key, made on Settings, API keys. Every key starts with mbk_.
In: header
Path Parameters
uuidRequest Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X DELETE "https://example.com/api/users/497f6eca-6276-4993-bfeb-53cbbbba6f08" \ -H "Content-Type: application/json" \ -d '{ "username": "string" }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "username": "string", "roles": [ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string" } ], "permissionNames": [ "string" ], "isDisabled": true, "isDeleted": true, "vrChatLinked": true, "vrChatUserId": null, "vrChatDisplayName": null, "email": null, "discordUserId": null, "discordUsername": null, "discordProven": true, "discordWorksUntil": null, "createdAt": "2019-08-24T14:15:22Z", "lastLoginAt": null, "rank": null, "rolesFromDiscord": null}Disable user POST
Disable an account and end its sessions. Never delete: facts reference the account. Refused for your own account and for the last enabled administrator, and for an account whose highest role is not below yours. Needs the `ManageUsers` permission.
Delete user POST
Deletes an account while keeping everything it did. The account's username, email, password, Discord id, VRChat link and roles are replaced or cleared, and it is left under a deleted_user_ name. Facts, case files, notes and moderation actions keep pointing at it. The request must carry the account's username, typed out. Refused for your own account, for the last enabled administrator, and for an account whose highest role is not below yours. Needs the `ManageUsers` permission. Kept for older clients: use `DELETE /api/users/{id}`.