Delete account (unified) - V2
Handler: DeleteAccount. Deactivates the account (active=false). Deactivating an account that is already inactive requires the caller to hold the Internal role; otherwise the row is treated as not found and returns 404 Not Found. This check is enforced atomically inside the transaction via a row lock (SELECT ... FOR UPDATE). NOTE: handler responds 200 (apireply.Ok200), not 204. See task item about aligning status code.
curl -X DELETE "https://example.com/v2/accounts/497f6eca-6276-4993-bfeb-53cbbbba6f08"Handler: UpdateAccountRestrictedV2. Body AccountUpdateRestricted (description required). Returns UnifiedAccountResponse. If the account is currently inactive (active=false), the caller must hold the Internal role to update it; otherwise the row is treated as not found and the request returns 404 Not Found. This check is enforced atomically inside the update transaction via a row lock (SELECT ... FOR UPDATE).
Handler: CreateAccountV2. Body CreateAccountInput. Returns UnifiedAccountResponse.