We need an API wrapper to re-create a deleted account using the same externalKey.
This was achieve manually using the following steps:
- call the Delete Account API
- call the cleanAccount procedure in the db
- call the Create Account API with the same externalKey as the deleted account
To execute this steps from a server, I am looking into a possible way to invoke the stored procedure via some AWS db library for Postgres. However, besides invoking the stored procedure, is there any other way to be able to re-use an account's externalKey?