Reinvite an excluded user whose Cognito login was purged
Re-onboards an excluded (ativo=0) user whose Cognito account was hard-deleted by the dormant-cleanup cron. Creates a fresh Cognito user (sending the setup email), rewrites the Z_Users + Utilizadores cognito_sub, and reactivates the existing row — optionally at a new point of sale / role (a rehire may land at a different loja).
The existing row is REUSED (never re-inserted) because cognito_sub / Z_Users.email / Z_Users.cognitosub are all UNIQUE. Reactivating + relinking BEFORE first login means auth joins cleanly on the new sub and the fragile auto-create/claim path is never taken.
Restricted to the company's OWN admin (not system_admin) — same gate as reactivation.
Request
- Base URLhttps://api.multigest.pt (the document declares no server; this is the origin it was published from)
- URLhttps://api.multigest.pt/api/invitations/reinvite/{utilizador_id}
- AuthAPI key in header x-api-token and API key in header x-origin-verify
Path parameters
Headers
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 21 revisions of this API.