Skip to main content
POST
Upsert a source membership

Authorizations

Authorization
string
header
required

Project-scoped secret API key (sk_…). Pass in the Authorization: Bearer <key> header. Grants access to the project the key was issued for.

Body

application/json
source
string
required
Required string length: 1 - 64
Pattern: ^[a-z][a-z0-9_]*$
source_membership_id
string
required
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9._:-]+$
source_person_id
string
required
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9._:-]+$
source_company_id
string
required
Required string length: 1 - 128
Pattern: ^[A-Za-z0-9._:-]+$
role_key
string | null
Maximum string length: 128
role_label
string | null
Maximum string length: 255
is_active
boolean
invited_at
string<date-time> · null · null
joined_at
string<date-time> · null · null
expires_at
string<date-time> · null · null
primary
boolean
data
object

Response

The source membership upsert result.

membership
object
required
contact
object
required
company
object
required