Invitations - Admin

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.

post/api/invitations/reinvite/{utilizador_id}

Request

  • Base URL
    https://api.multigest.pt (the document declares no server; this is the origin it was published from)
  • URL
    https://api.multigest.pt/api/invitations/reinvite/{utilizador_id}
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Path parameters

utilizador_idinteger required

Headers

x-api-tokenstring nullable

Request body

object required

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 21 revisions of this API.