Admin Settings: Users
Delete your own admin account (password-confirmed)
Deletes the authenticated admin (the owner of the calling token) after re-confirming their password. Refuses if this is the last remaining admin (400) or the password is wrong (422).
post/settings/users/delete-self
Request
- Base URLhttp://localhost:8000/api/admin
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Request body
Example request
{
"password": "current-password"
}Response
Account deleted.
Changes
No recorded changes to this operation across all 8 revisions of this API.