What this call does
Updates construction sites that already exist. Fields you leave out keep their stored value.
Last updated: 15.05.2026
What you need first
- A valid API key in the
API-Keyheader. - Your
companyAccountIdas a query parameter. There is no default for it. &mode=PATCHin the address line. Without it the call runs asADD_OR_UPDATEand creates sites.- The CATHAGO
idof every site you want to change. - A
titleon every entry, even here.
Parameters
Parameter | Required | Default | Meaning |
|---|---|---|---|
| Yes | none | Your company account. |
| No |
| Set it to |
The fields
The same fields as Create or update sites (bulk), default mode: id, tenantId, externalProjectId, title (the only required one), costCentre, startDate, endDate, budget, description, projectStatus (default ACTIVE), address, billingAddress, members, locations and customFieldValues. That page carries the types, the limits, the inner shape of the five objects and lists, and the values of projectStatus and role.
What PATCH does differently
Case | What happens |
|---|---|
Entry has an | The site is looked up by that |
Entry has no | The entry is dropped. Nothing is created, nothing is changed, and nothing says so. |
Field left out | Keeps its stored value. |
Field sent as an empty text | The empty text is written. Only a genuine absence is skipped, and |
A member not yet on the site | Added. |
A member already on the site | Left exactly as they are, never edited. |
A location with an | Updated. |
A location without an | The site's current default location is updated instead; a new one is created only when the site has none. |
PATCH finds a site by id and by nothing else, never by externalProjectId. And title is required here too: there is no way to patch a single field without sending the title as well.projectStatus falls back to ACTIVE, role and valueType end up empty. And a field that has a default (projectStatus, members, locations, customFieldValues, role, sendInvite, defaultLocation, overrideExistingLocation) is written even when you leave it out.What you get back
200 OK and the stored site: id, externalProjectId, title, costCentre, startDate, endDate, budget, description, projectStatus, tenantId, address, billingAddress, members, locations and customFieldValues. Each address has its own id. Each member has id, emailAddress, role, invitationSentDate, contactPerson, memberStatus (PENDING, ACTIVE or DISABLED), username and tenants; each location id, title, comments, defaultLocation, address, members, createdAt and lastModifiedAt. Dates come back as text, never as numbers.
role comes back as an object, {"roleName": "PROCUREMENT MANAGER", "roleType": "SYSTEM_DEFINED"}, with a space, while a request takes the constant PROCUREMENT_MANAGER. Never send the response value back.The list holds only the entries that carried an id. Entries without one are not represented at all, so count the entries before you trust the call.
Additional fields: additionalFields and customFieldValues
A site can carry your own extra fields. There are two shapes, they write to the same place, and both keep working:
Field | Use it? |
|---|---|
| Yes. The current shape. |
| The older shape. Still read and still written, to exactly the same values. |
additionalFields entries take:
Field | Required | Default | Meaning |
|---|---|---|---|
| Yes | none | The key, and what a field is matched on when you save the site again. A field already stored under this name keeps its id and its creation date. |
| No | (none) | The label a person sees |
| No | (none) | The value, always text |
| No |
|
|
| No | empty | The choices, for |
| No | (none) | The field's id in your catalogue. Not needed, the name, label and type are enough. |
A field you name that does not exist yet is created for you, so the value is one a form can show later rather than one stored out of sight.
How a write changes the fields, read this before your first update
What you send | What happens to the stored fields |
|---|---|
| Those fields are added or updated. Every field you did not name is left alone. |
Neither field at all | Nothing changes. |
| Nothing changes. |
| Nothing changes, an empty list is not a clear. |
| Every additional field on the site is deleted. |
null or carrying a blank technicalName and a blank value, is read as "clear them all". Two blank entries is not a clear. A blank entry alongside a real one is not a clear.customFieldValues defaults to an empty list on every payload, so an integration written before additional fields existed sends one on every update. Reading that as "remove them all" would have emptied those customers' sites. Clearing therefore has to be asked for on purpose.customFieldValues writes a value onto the field it names, exactly as it always has. additionalFields writes the field as you describe it. Where both name the same technicalName, additionalFields is applied last and wins.Common mistakes
What you see | Why | What to do |
|---|---|---|
New sites appeared |
| Add it. |
The response is shorter than the list you sent | Some entries had no | Give every entry its |
The site is now |
| Always send |
The default delivery point is gone, or the wrong location changed | A location entry left out | Send both on every location entry. |
A field you wanted to clear stayed as it was | Leaving a field out means "keep it", not "clear it" | Send an empty text |
| An entry has no | Send the title as well, even for a one-field change. |
| An | Correct it. The whole call is rolled back on it. |
| A date was written the German way, | Send |
| Key missing, unknown, switched off or expired | Keys are per environment; a staging key fails in production. |
| No | Add |
| The | Strip the comments. |
Adresse
PUT https://api.cathago.de/api/gateways/integration/projects/bulk?companyAccountId=<companyAccountId>&mode=PATCHBeispielaufruf
curl -X PUT 'https://api.cathago.de/api/gateways/integration/projects/bulk?companyAccountId=<companyAccountId>&mode=PATCH' \
-H 'API-Key: <Ihr API-Schlüssel>' \
-H 'Content-Type: application/json' \
-d '[
{
"id": "C0226021180772794",
"tenantId": "C3125110678675695",
"externalProjectId": "BV-2026-0417",
"title": "Neubau Wohnpark Süd-West, Bauabschnitt 2",
"costCentre": "KST-4711",
"startDate": "2026-06-01",
"endDate": "2027-11-30",
"budget": 2680000,
"description": "38 Wohneinheiten in vier Gebäuden, Tiefgarage mit 42 Stellplätzen. Bauzeit verlängert.",
"projectStatus": "ACTIVE",
"address": {
"addressLineOne": "Ottostraße 14",
"addressLineTwo": "Bauleitercontainer Tor 5",
"city": "Leipzig",
"country": "Deutschland",
"zipcode": "04103",
"comments": "Zufahrt jetzt über Baustellentor 5.",
"mapLink": "51.3315,12.3610",
"region": "Sachsen"
},
"billingAddress": {
"addressLineOne": "Hauptstraße 88",
"addressLineTwo": "Verwaltung, 3. Obergeschoss",
"city": "Dresden",
"country": "Deutschland",
"zipcode": "01067",
"comments": "Rechnungen bitte nur per E-Mail.",
"mapLink": "https://maps.app.goo.gl/4kTn7xR1",
"region": "Sachsen",
"companyName": "Bauunternehmung Weber & Sohn GmbH",
"vatId": "DE812345678",
"emailAddress": "rechnung@weber-bau.de",
"contactPersonName": "Ingrid Weber"
},
"members": [
{
"emailAddress": "sharif.malik@cathago.de",
"role": "CONSTRUCTION_MANAGER",
"sendInvite": false,
"contactPerson": {
"fullName": "Sharif Malik",
"contactNumber": "+49 341 5551020",
"alternateContactNumber": "+49 170 5551020"
}
}
],
"locations": [
{
"id": "CJO26022311668193",
"title": "Hauptlager Tor 5",
"comments": "Anlieferung werktags 06:30-16:00 Uhr.",
"defaultLocation": true,
"overrideExistingLocation": false,
"address": {
"addressLineOne": "Ottostraße 14",
"addressLineTwo": "Tor 5",
"city": "Leipzig",
"country": "Deutschland",
"zipcode": "04103",
"comments": "Zufahrt über die Nordseite.",
"mapLink": "51.3315,12.3610",
"region": "Sachsen"
},
"members": [
{
"emailAddress": "sharif.malik@cathago.de"
},
{
"emailAddress": "anja.krause@cathago.de"
}
]
}
],
"additionalFields": [
{
"technicalName": "bauherr",
"displayName": "Bauherr",
"value": "Öffentlich",
"valueType": "TEXT",
"valueOptions": [
"Privat",
"Öffentlich"
],
"fieldId": null
}
],
"customFieldValues": [
{
"customFieldId": "CFD25110677415203",
"displayName": "Bauherr",
"technicalName": "bauherr",
"valueType": "TEXT",
"valueOptions": [
"Privat",
"Öffentlich"
],
"value": "Öffentlich"
}
]
},
{
"id": "C0226022313402373",
"title": "Erweiterung Logistikzentrum Ost",
"costCentre": "",
"endDate": "2028-03-31",
"projectStatus": "ARCHIVED"
}
]'Beispiel für den Body
[
{
"id": "C0226021180772794", // Required in PATCH mode. An entry without an id is skipped without a word
"tenantId": "C3125110678675695", // Optional. PATCH does apply a tenant change
"externalProjectId": "BV-2026-0417", // Optional. Stored, but PATCH never uses it to find the site
"title": "Neubau Wohnpark Süd-West, Bauabschnitt 2", // Required in every mode, PATCH included
"costCentre": "KST-4711", // Optional. Cost centre, up to 256 characters
"startDate": "2026-06-01", // Optional. Calendar date as YYYY-MM-DD
"endDate": "2027-11-30", // Optional. The changed end date
"budget": 2680000.00, // Optional. Plain number, no quotes and no currency sign
"description": "38 Wohneinheiten in vier Gebäuden, Tiefgarage mit 42 Stellplätzen. Bauzeit verlängert.", // Optional. Up to 1024 characters
"projectStatus": "ACTIVE", // Always send it. Left out, PATCH writes ACTIVE instead of keeping the old status
"address": { // Optional. Only the address fields you send are written
"addressLineOne": "Ottostraße 14", // Optional. Street and number
"addressLineTwo": "Bauleitercontainer Tor 5", // Optional. Building, floor, site office
"city": "Leipzig", // Optional. Town
"country": "Deutschland", // Optional. Free text
"zipcode": "04103", // Optional. Text, so a leading zero survives
"comments": "Zufahrt jetzt über Baustellentor 5.", // Optional. Notes about access
"mapLink": "51.3315,12.3610", // Optional. Map link or coordinate pair
"region": "Sachsen" // Optional. Federal state or region
},
"billingAddress": { // Optional. Same eight fields as address, plus the four below
"addressLineOne": "Hauptstraße 88", // Optional. Street and number of the invoice recipient
"addressLineTwo": "Verwaltung, 3. Obergeschoss", // Optional. Building or floor
"city": "Dresden", // Optional. Town
"country": "Deutschland", // Optional. Country
"zipcode": "01067", // Optional. Postal code as text
"comments": "Rechnungen bitte nur per E-Mail.", // Optional. Note on the billing address
"mapLink": "https://maps.app.goo.gl/4kTn7xR1", // Optional. Map link
"region": "Sachsen", // Optional. Federal state
"companyName": "Bauunternehmung Weber & Sohn GmbH", // Optional. Invoice recipient
"vatId": "DE812345678", // Optional. VAT number
"emailAddress": "rechnung@weber-bau.de", // Optional. Where invoices are sent
"contactPersonName": "Ingrid Weber" // Optional. Name of the accounts contact
},
"members": [ // Optional. PATCH only adds people who are not on the site yet
{
"emailAddress": "sharif.malik@cathago.de", // Required for a member
"role": "CONSTRUCTION_MANAGER", // Optional, default CONSTRUCTION_MANAGER. Underscore, never a space
"sendInvite": false, // Optional, default false. false creates the member without a mail
"contactPerson": { // Optional. Name and phone numbers of the member
"fullName": "Sharif Malik", // Optional. Full name
"contactNumber": "+49 341 5551020", // Optional. Primary phone number
"alternateContactNumber": "+49 170 5551020" // Optional. Second phone number
}
}
],
"locations": [ // Optional. With an id the location is updated; without one the default location is
{
"id": "CJO26022311668193", // Send it in PATCH mode. Id of the location you mean
"title": "Hauptlager Tor 5", // Optional. New name of the location
"comments": "Anlieferung werktags 06:30-16:00 Uhr.", // Optional. Notes, for example delivery hours
"defaultLocation": true, // Always send it. Left out it becomes false and clears the delivery point
"overrideExistingLocation": false, // Optional, default false. false keeps address fields you leave out
"address": { // Optional. Address of the location
"addressLineOne": "Ottostraße 14", // Optional. Street and number
"addressLineTwo": "Tor 5", // Optional. Gate, building or floor
"city": "Leipzig", // Optional. Town
"country": "Deutschland", // Optional. Country
"zipcode": "04103", // Optional. Postal code as text
"comments": "Zufahrt über die Nordseite.", // Optional. Note about the location
"mapLink": "51.3315,12.3610", // Optional. Map link or coordinate pair
"region": "Sachsen" // Optional. Federal state
},
"members": [ // Optional. Only emailAddress, and the person must already be on this site
{ "emailAddress": "sharif.malik@cathago.de" }, // Person assigned to this location
{ "emailAddress": "anja.krause@cathago.de" } // Second person at this location
]
}
],
"additionalFields": [ // Optional. The current shape. Named fields are added or updated, the rest are left alone
{
"technicalName": "bauherr", // Required. The key a field is matched on when you save the site again
"displayName": "Bauherr", // Optional. The label a person sees
"value": "Öffentlich", // Optional. The value, always text
"valueType": "TEXT", // Optional, default TEXT. Also NUMBER, FLOAT, DATE, SELECT, MULTI_SELECT, PASSWORD
"valueOptions": ["Privat", "Öffentlich"], // Optional. The choices, used by SELECT and MULTI_SELECT
"fieldId": null // Optional. Empty on purpose: the names above are enough
}
], // To DELETE every field send exactly [{}] - an empty list [] changes nothing
"customFieldValues": [ // Optional. Values for your own additional fields
{
"customFieldId": "CFD25110677415203", // Optional. Id of an additional field that already exists
"displayName": "Bauherr", // Optional. Ignored while customFieldId is set
"technicalName": "bauherr", // Optional. Ignored while customFieldId is set
"valueType": "TEXT", // Optional, default TEXT. Ignored while customFieldId is set
"valueOptions": ["Privat", "Öffentlich"], // Optional. Ignored while customFieldId is set
"value": "Öffentlich" // Optional. The new value, always sent as text
}
]
},
{ // Second entry - only the fields that change
"id": "C0226022313402373", // Required. Without an id the entry is dropped
"title": "Erweiterung Logistikzentrum Ost", // Required in PATCH mode as well
"costCentre": "", // Left empty on purpose: an empty text is written, so this clears the cost centre
"endDate": "2028-03-31", // The changed end date
"projectStatus": "ARCHIVED" // Note the spelling. ARCHIEVED would store ACTIVE instead
}
]Beispielantworten
Bulk Update - Projects | PATCH mode
Status: 200 OK
[
{
"externalProjectId": "BERP012026",
"title": "TEST PROJECT ONE",
"costCentre": "COSTBER001",
"startDate": "2026-05-01",
"endDate": "2027-12-31",
"budget": 2500000,
"description": "Modern office complex with sustainable energy solutions located near the Spree river.",
"id": "C0226022313402373",
"address": {
"addressLineOne": "Mühlenstraße 78",
"addressLineTwo": "Bauabschnitt A",
"city": "Berlin",
"country": "Germany",
"zipcode": "10243",
"comments": "Entrance via side gate 2.",
"mapLink": "52.5050,13.4390",
"region": null,
"id": "CAE26022389018632"
},
"billingAddress": {
"addressLineOne": "Friedrichstraße 100",
"addressLineTwo": "Etage 4",
"city": "Berlin",
"country": "Germany",
"zipcode": "10117",
"comments": "Send invoices to attention of Accounts Payable.",
"mapLink": "52.5150,13.3880",
"region": null,
"id": "CWZ26022365399387",
"companyName": "Spree Bau Holding GmbH",
"vatId": "DE987654321",
"emailAddress": null,
"contactPersonName": null
},
"members": [
{
"id": "CQJ26022387909222",
"emailAddress": "test-project-one@cathago.de",
"role": {
"roleName": "PROCUREMENT MANAGER",
"roleType": "SYSTEM_DEFINED"
},
"invitationSentDate": "2026-02-23T05:36:55.382Z",
"contactPerson": {
"id": "CVA26022377241060",
"fullName": "Giriraj Sharma",
"emailAddress": "test-project-one@cathago.de",
"contactNumber": "+49 30 11223344",
"alternateContactNumber": "+49 171 1122334"
},
"memberStatus": "PENDING",
"username": null
}
],
"locations": [
{
"title": "Container Village",
"comments": "Site management and break rooms.",
"id": "CJO26022311668193",
"defaultLocation": true,
"address": {
"addressLineOne": "Mühlenstraße 80",
"addressLineTwo": "",
"city": "Berlin",
"country": "Germany",
"zipcode": "10243",
"comments": "Temporary structures.",
"mapLink": "52.5051,13.4391",
"region": "Berlin",
"id": "CKB26022379772797"
},
"members": [
{
"id": "CQJ26022387909222",
"emailAddress": "test-project-one@cathago.de",
"role": {
"roleName": "PROCUREMENT MANAGER",
"roleType": "SYSTEM_DEFINED"
},
"invitationSentDate": "2026-02-23T05:36:55.382Z",
"contactPerson": {
"id": "CVA26022377241060",
"fullName": "Giriraj Sharma",
"emailAddress": "test-project-one@cathago.de",
"contactNumber": "+49 30 11223344",
"alternateContactNumber": "+49 171 1122334"
},
"memberStatus": "PENDING",
"username": null
}
],
"createdAt": "2026-02-23T11:01:19.450Z",
"lastModifiedAt": "2026-02-23T11:01:19.450Z"
}
],
"customFieldValues": [],
"projectStatus": "DEACTIVATED",
"tenantId": "C3125110678675695"
}
]