Unicat API Reference

Up - API Reference - Home


/api/account/delete

Requires JWT.

Delete the current account.

Note: Accounts cannot be deleted if they own any projects

This deletes the account and removes the user as a member from all projects.

THIS ACTION IS NOT RECOVERABLE!

Note: if the account used to own projects, some information is kept for administrative purposes.

Request

POST /api/account/delete
Authorization: Bearer <JWT>

{
    "confirm": true,
}

confirm You must confirm the delete action - it is not recoverable.

Success response

Authorization: <JWT>

{
    "success": true,
    "result": {},
    "data": {}
}

There is no result info or data in the response because the account no longer exists.

Note: you'll get an updated JWT to reflect the deleted account.

result

user is the user gid for the deleted account.

Error response

400 Bad request - missing argument
401 Unauthorized - missing or expired JWT
422 Unprocessable Entity - deletion failed