What this call does
Creates or changes many people in one call, with a mode that decides whether rows may create, may only update, or may do both.
Last updated: 15.05.2026
What you need first
A valid API key in the API-Key header, your companyAccountId, and an email address on every row, there is no id field here, rows are matched by email address. If you send tenants, send the complete list per person. The address is PUT /members/bulk; the body is a list with one entry per person.
The whole call is all-or-nothing. One bad row undoes everything: nothing is written and you get one error naming the first row that failed. A 200 is the only proof every row worked.
The three modes (mode)
ADD_OR_UPDATEnonethe default. Matches the row byemailAddressin your account: found → updates, not found → creates. For day-to-day syncing from your own staff system.ADD, always creates. The address must be free everywhere in CATHAGO, so a row for somebody who already exists fails with406. For a first import into an empty account.PATCH, only updates. A row matching nobody fails with406.
What each mode actually applies differs, and this is the part that surprises people:
|
|
|
| |
|---|---|---|---|---|
Creates the person | Yes | Yes | No | No |
| Applied | Applied | Applied, blanks skipped | Applied, blanks skipped |
|
|
| Both | Both |
| Honoured | Honoured | Ignored | Ignored |
| Ignored | Ignored | Honoured | Honoured |
| Added | Added | Replaces everything | Not touched at all |
Parameters
companyAccountId, required, in the address line; rows are matched by email address within it. mode, optional, default ADD_OR_UPDATE, one of ADD, ADD_OR_UPDATE or PATCH. In capitalsnonepatch in lower case is not accepted.
The fields
Each entry is one person, with the same fields as Add one person plus disable. emailAddress is the only required one: a normal work email address, no spaces, no umlauts, at most 64 characters before the @.
Field | Type | Required | Default | Meaning |
|---|---|---|---|---|
| text | Yes | none | The key rows are matched by. On |
| true/false | No |
| Sends the activation email. |
| text | No | (none) | One of your own roles; wins over |
| object | No | (none) | Name and telephone numbers, all optional: |
| choice | No |
|
|
| list | No | empty list | The tenants this person may work in. |
| text | Yes, in an entry | none | Id of the tenant. Missing or unknown fails the whole call with |
| true/false | No |
|
|
| true/false | No |
|
|
Two rows with the same address will fail. De-duplicate on your side first.
What you get back
200 OK and a list with one entry per person the call touched, in the order you sent them. An empty body of [] answers 200 OK with [].
Field | Meaning |
|---|---|
| The person's id, the |
| Their email address. |
| An object: |
| Last invitation, e.g. |
|
|
|
|
| Their login name, once they have created their account. |
| One per assignment: |
Common mistakes
What you see | Why | What to do |
|---|---|---|
|
| Use |
|
| Use |
People lost their tenants |
| Send each person's complete |
Nobody got an invitation, or | Those rows updated (or created) people, and the matrix above shows the field is ignored there. | Invite with Send the invitation email; disable with a second call in |
The |
| Send |
Adresse
PUT https://api.cathago.de/api/gateways/integration/members/bulk?companyAccountId=<companyAccountId>&mode=ADD_OR_UPDATEBeispielaufruf
curl -X PUT 'https://api.cathago.de/api/gateways/integration/members/bulk?companyAccountId=<companyAccountId>&mode=ADD_OR_UPDATE' \
-H 'API-Key: <Ihr API-Schlüssel>' \
-H 'Content-Type: application/json' \
-d '[
{
"emailAddress": "sharif.malik@cathago.de",
"sendInvite": true,
"customCompanyAccountRoleId": "R-BAULEITUNG-PLUS",
"contactPerson": {
"fullName": "Sharif Malik",
"contactNumber": "+49 341 5551020",
"alternateContactNumber": "+49 170 8340155"
},
"role": "CONSTRUCTION_MANAGER",
"tenants": [
{
"allProjects": true,
"tenantId": "C3125110678675695"
},
{
"allProjects": false,
"tenantId": "C3125110678675702"
}
],
"disable": false
},
{
"emailAddress": "anja.krause@cathago.de",
"sendInvite": false,
"contactPerson": {
"fullName": "Anja Krause",
"contactNumber": "+49 341 5551034",
"alternateContactNumber": "+49 151 2277431"
},
"role": "FOREMEN",
"tenants": [
{
"allProjects": false,
"tenantId": "C3125110678675695"
}
],
"disable": true
}
]'Beispiel für den Body
[
{
"emailAddress": "sharif.malik@cathago.de", // Required on every row. Also the key rows are matched by
"sendInvite": true, // Optional, default false. Honoured only on rows that create
"customCompanyAccountRoleId": "R-BAULEITUNG-PLUS", // Optional. Your own role id. Wins over role on update rows
"contactPerson": { // Optional. Name and telephone numbers
"fullName": "Sharif Malik", // Optional. First and last name
"contactNumber": "+49 341 5551020", // Optional. Main telephone number
"alternateContactNumber": "+49 170 8340155" // Optional. Second number, usually a mobile
},
"role": "CONSTRUCTION_MANAGER", // Optional, default CONSTRUCTION_MANAGER. Underscores, never spaces
"tenants": [ // In ADD_OR_UPDATE this REPLACES the person's tenants. PATCH ignores it
{
"allProjects": true, // Optional, default true. Grants every project of that tenant
"tenantId": "C3125110678675695" // Required in an entry. An unknown id fails the whole call with 406
},
{ // Second entry - same fields as above
"allProjects": false,
"tenantId": "C3125110678675702"
}
],
"disable": false // Optional, default false. true disables a person the row UPDATES
},
{ // Second entry - same fields as above
"emailAddress": "anja.krause@cathago.de",
"sendInvite": false,
"contactPerson": {
"fullName": "Anja Krause",
"contactNumber": "+49 341 5551034",
"alternateContactNumber": "+49 151 2277431"
},
"role": "FOREMEN",
"tenants": [
{
"allProjects": false,
"tenantId": "C3125110678675695"
}
],
"disable": true
}
]Beispielantworten
OK
Status: 200 OK
[
{
"id": "", // Unique Identifier for the member
"emailAddress": "", // email address
"role": {
"roleName": "", // Technical role name (e.g., PROCUREMENT MANAGER ||ADMIN ||CONSTRUCTION MANAGER ||FOREMEN ||GUEST)
"roleType": "" // Role category: SYSTEM_DEFINED || CUSTOM
},
"invitationSentDate": "", // Timestamp of the sent invitation (YYYY-MM-DD HH:mm:ss)
"contactPerson": {
"id": "", // Unique Identifier for the contact
"fullName": "", // Full name of the invited user
"emailAddress": "", // Primary contact email
"contactNumber": "", // Primary phone number
"alternateContactNumber": "" // Secondary phone number
},
"memberStatus": "", // Current status: PENDING || ACTIVE || DISABLED
"username": "", // username
"tenants": [
{
"id": "", // Mapping ID between Member and Tenant
"memberId": "", // Member ID
"allProjects": false, // Boolean: If true, user has access to every project in the tenant
"tenant": {
"id": "", // Unique Tenant Identifier
"taxId": "", // Tenant tax registration number
"companyId": "", // Reference companyAccount Id
"companyName": "", // Display name of the organization
"mandant": "", // Client/Mandant code for ERP identification
"description": "", // Brief tenant profile description
"logoUrl": "", // URL string for the company logo asset
"addressOutDto": {
"id": "", // Unique Address record identifier
"addressLineOne": "", // Primary street address
"addressLineTwo": "", // Building/Floor details
"city": "", // City name
"country": "", // Country name
"zipcode": "", // Postal/Zip code
"comments": "", // location notes
"mapLink": "", // External link to geographic map (e.g., Google Maps)
"region": "" // State, Province, or District
}
}
}
]
},
{
"id": "", // Unique Identifier for the member
"emailAddress": "", // email address
"role": {
"roleName": "", // Technical role name (e.g., PROCUREMENT MANAGER ||ADMIN ||CONSTRUCTION MANAGER ||FOREMEN ||GUEST)
"roleType": "" // Role category: SYSTEM_DEFINED || CUSTOM
},
"invitationSentDate": "", // Timestamp of the sent invitation (YYYY-MM-DD HH:mm:ss)
"contactPerson": {
"id": "", // Unique Identifier for the contact
"fullName": "", // Full name of the invited user
"emailAddress": "", // Primary contact email
"contactNumber": "", // Primary phone number
"alternateContactNumber": "" // Secondary phone number
},
"memberStatus": "", // Current status: PENDING || ACTIVE || DISABLED
"username": "", // username
"tenants": [
{
"id": "", // Mapping ID between Member and Tenant
"memberId": "", // Member ID
"allProjects": false, // Boolean: If true, user has access to every project in the tenant
"tenant": {
"id": "", // Unique Tenant Identifier
"taxId": "", // Tenant tax registration number
"companyId": "", // Reference companyAccount Id
"companyName": "", // Display name of the organization
"mandant": "", // Client/Mandant code for ERP identification
"description": "", // Brief tenant profile description
"logoUrl": "", // URL string for the company logo asset
"addressOutDto": {
"id": "", // Unique Address record identifier
"addressLineOne": "", // Primary street address
"addressLineTwo": "", // Building/Floor details
"city": "", // City name
"country": "", // Country name
"zipcode": "", // Postal/Zip code
"comments": "", // location notes
"mapLink": "", // External link to geographic map (e.g., Google Maps)
"region": "" // State, Province, or District
}
}
}
]
}
]