Teams > Membership > Moves
Subscription_type: teams/membership/move. Triggered when a membership is moved to another team, whether the move is made through the API or from Factorial. The payload is the membership row created in the destination team, so team_id is that team and id is a new one — the row in the source team is removed without an event of its own, so reconcile by employee_id rather than by id, or the employee ends up in both teams. A move emits no create or delete event for the two teams involved, so this is the event that reports a change of team made through this verb — and only through it. Most ways an employee changes team in Factorial do not use it: some are carried out as a separate addition and removal, which arrive as their own events and not as this one, and some emit nothing at all. Treat this as one signal among several rather than a complete feed, and reconcile against the memberships endpoint.
Payload
Example payload
{
"id": "1",
"company_id": "1",
"employee_id": "12",
"team_id": "3",
"lead": true,
"source_team_ids": [
"3"
],
"parent_team_ids": [
"2"
]
}Response
Return a 200 status to indicate that the data was received successfully
Changes
Webhooks have no change history: a webhook is keyed by its event name rather than a path and method, so no recorded change can name it.