Users - Admin

Transfer a user's open leads to a colleague or across their team

Changed on

Move the open leads of user_id without touching their account.

The path for users who were already deactivated before #906 shipped (13 of them in prod, holding ~180 open leads) — reachable from the "Excluídos" tab.

Body: {"to_user_id": 123} or {"mode": "round_robin"}.

The SOURCE user is resolved inside the caller's company and 404s otherwise: a route that validated only the destination would let one tenant name another tenant's user (docs/claude/02-security.md §8 — validate BOTH ids).

post/api/users/{user_id}/transfer-leads

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/users/{user_id}/transfer-leads
  • Auth
    API key in header x-api-token and API key in header x-origin-verify

Path parameters

user_idinteger required

Headers

x-api-tokenstring nullable

Request body

object required

Response

Successful Response

object required

Changes