{
"name": "John Doe",
"email": "john@example.com",
"memberships": [
{
"company_id": "comp_123456789",
"role": "admin"
}
]
}
Company Memberships
Upsert a membership
Create or update a company membership. Note that memberships are managed through user operations rather than direct API calls.
POST
/
v1
/
company-memberships
{
"name": "John Doe",
"email": "john@example.com",
"memberships": [
{
"company_id": "comp_123456789",
"role": "admin"
}
]
}
Company memberships are managed indirectly through user operations. To create or update a membership:
- Use the create or update a user endpoints
- Include the membership details in the
membershipsfield of the user object - The system will automatically handle the membership creation/update
{
"name": "John Doe",
"email": "john@example.com",
"memberships": [
{
"company_id": "comp_123456789",
"role": "admin"
}
]
}