Teams > Membership
Updates a Membership
Changed onUpdate the membership to either make the employee a lead of the team or remove them as a lead. For companies with nested teams, promoting an inherited membership (lead: true) first converts the employee into a direct member of the team (leads must be direct members), so the row becomes direct as a side effect. Demoting (lead: false) only removes the lead flag and keeps the membership.
put/api/2026-10-01/resources/teams/memberships/{id}
Request
- Base URLhttps://api.factorialhr.com
- URLhttps://api.factorialhr.com/api/2026-10-01/resources/teams/memberships/{id}
- Auth
- OAuth 2Authorization code: https://id.factorialhr.com/oauth/authorizeToken URL: https://id.factorialhr.com/api/oauth/token scopes: employees
- or API key in header x-api-key
Path parameters
idstring required
Membership id.
Request body
Example request
{
"id": "1",
"lead": true
}Response
OK
Example response
{
"id": "1",
"company_id": "1",
"employee_id": "12",
"team_id": "3",
"lead": true,
"source_team_ids": [
"3"
],
"parent_team_ids": [
"2"
]
}Changes
- info
endpoint added
- info