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 by emailAddress in 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 with 406. For a first import into an empty account.
  • PATCH, only updates. A row matching nobody fails with 406.

What each mode actually applies differs, and this is the part that surprises people:


ADD

ADD_OR_UPDATE, not found

ADD_OR_UPDATE, found

PATCH

Creates the person

Yes

Yes

No

No

contactPerson

Applied

Applied

Applied, blanks skipped

Applied, blanks skipped

role / customCompanyAccountRoleId

role only

role only

Both

Both

sendInvite

Honoured

Honoured

Ignored

Ignored

disable

Ignored

Ignored

Honoured

Honoured

tenants

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

emailAddress

text

Yes

none

The key rows are matched by. On ADD it must be free across all of CATHAGO.

sendInvite

true/false

No

false

Sends the activation email.

customCompanyAccountRoleId

text

No

(none)

One of your own roles; wins over role. An id CATHAGO cannot find is skipped silently.

contactPerson

object

No

(none)

Name and telephone numbers, all optional: fullName, contactNumber, alternateContactNumber.

role

choice

No

CONSTRUCTION_MANAGER

PROCUREMENT_MANAGER, ADMIN, CONSTRUCTION_MANAGER, FOREMEN or GUEST. Underscores, not spaces.

tenants

list

No

empty list

The tenants this person may work in.

tenants[].tenantId

text

Yes, in an entry

none

Id of the tenant. Missing or unknown fails the whole call with 406.

tenants[].allProjects

true/false

No

true

true gives every project of that tenant.

disable

true/false

No

false

true sets memberStatus to DISABLED.

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

id

The person's id, the memberId for the other calls.

emailAddress

Their email address.

role

An object: roleName (spaced display name, e.g. CONSTRUCTION MANAGER) and roleType (SYSTEM_DEFINED or USER_DEFINED).

invitationSentDate

Last invitation, e.g. 2026-05-15T09:14:32.000Z. Empty if never.

contactPerson

id, fullName, emailAddress, contactNumber, alternateContactNumber.

memberStatus

PENDING, ACTIVE or DISABLED.

username

Their login name, once they have created their account.

tenants

One per assignment: id, memberId, allProjects, tenant.

Common mistakes

What you see

Why

What to do

406 and Member not found! with an email address

PATCH mode, and that row names somebody who does not exist in your account.

Use ADD_OR_UPDATE, or take the row out.

406 and ...already exists!

ADD mode, and the address is taken, possibly in another company account.

Use ADD_OR_UPDATE instead.

People lost their tenants

ADD_OR_UPDATE replaces the tenant list of a person who already exists, and an absent tenants counts as empty.

Send each person's complete tenants list, or use PATCH mode.

Nobody got an invitation, or "disable": true had no effect

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 PATCH mode.

The mode you asked for was not used

mode was misspelled or in lower case.

Send ADD, ADD_OR_UPDATE or PATCH exactly.

Adresse

HTTP
PUT https://api.cathago.de/api/gateways/integration/members/bulk?companyAccountId=<companyAccountId>&mode=ADD_OR_UPDATE

Beispielaufruf

Terminal
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

JSON
[
    {
        "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

JSON
[
 {
  "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
        }
      }
    }
  ]
}
]