What this call does

Replaces one construction site with the body you send. This is a full overwrite, not a partial change.

Last updated: 15.05.2026

What you need first

  • A valid API key in the API-Key header.
  • Your companyAccountId as a query parameter. There is no default for it.
  • The site's id in the address line. Short CATHAGO id or internal uuid, both work.
  • The complete record. Anything you leave out is written away.
Read the site first. Fetch it with Look up one site, change the fields you care about and send the whole thing back. Sending only the two fields you want to change empties the rest. To change single fields instead, use the bulk call with mode=PATCH.

Parameters

Parameter

Required

Default

Meaning

companyAccountId

Yes

none

Your company account. A site belonging to anyone else is reported as not found.

projectId (in the path)

Yes

none

The site to replace. Short id or internal uuid.

The fields

The body has no id field, the site is named in the address line. The fields are those of Create or update sites (bulk), default mode: 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 happens to a field you leave out

Field

Left out of the body

externalProjectId, costCentre, startDate, endDate, budget, description

Cleared.

projectStatus

Written as ACTIVE.

address, billingAddress

Left alone. Sent, they are replaced whole, so a field you leave out inside them is cleared too.

members

Left alone. Sent, only people not yet on the site are added. Nobody is removed and nobody is edited.

locations

Left alone. Sent, an entry with an id updates that location; an entry without one updates the site's current default location.

customFieldValues

Left alone. Sent, the named additional fields are written.

tenantId

Accepted and then ignored by this call, sent or not. It cannot move a site to another tenant; use the bulk call for that.

Two silent behaviours. A misspelled field name is dropped, not refused, so the value is lost without a word. And an unrecognised value for a fixed-choice field does not fail either: projectStatus falls back to ACTIVE, role and valueType end up empty. Names and values are case-insensitive; only the spelling has to be right.

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.

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?

additionalFields

Yes. The current shape.

customFieldValues

The older shape. Still read and still written, to exactly the same values.

additionalFields entries take:

Field

Required

Default

Meaning

technicalName

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.

displayName

No

(none)

The label a person sees

value

No

(none)

The value, always text

valueType

No

TEXT

TEXT, NUMBER, FLOAT, DATE, SELECT, MULTI_SELECT, PASSWORD

valueOptions

No

empty

The choices, for SELECT and MULTI_SELECT

fieldId

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

additionalFields with entries

Those fields are added or updated. Every field you did not name is left alone.

Neither field at all

Nothing changes.

"customFieldValues": []

Nothing changes.

"additionalFields": []

Nothing changes, an empty list is not a clear.

"additionalFields": [{}]

Every additional field on the site is deleted.

The last two lines are the trap. An empty list leaves everything alone; a list holding one blank entry wipes the lot. Exactly one entry, and that entry either 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.
Why an empty list does nothing: 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

Fields you did not send are now empty

This call replaces the record, it does not merge

Read the site first, change what you need and send it all back. Or use the bulk call with mode=PATCH.

The status jumped to ACTIVE

projectStatus was left out, so ACTIVE was written

Always send projectStatus.

The tenant did not change

This call ignores tenantId

Use the bulk call with mode=PATCH.

Half the address disappeared

Sending address replaces the whole address record

Send every address field you want to keep.

The default delivery point is gone, or the wrong location changed

A location entry left out defaultLocation, or had no id

Send both on every location entry.

400 INVALID_INPUTS, title : must not be blank

No title in the body

Send a title.

406 PROJECT_NOT_FOUND

The projectId is unknown, or the site belongs to another company account

Check the id and the companyAccountId.

406 RESOURCE_IN_USE, Something went wrong!

A value is longer than the field allows

Shorten it.

400, message ends yyyy-mm-dd

A date was written the German way, "01.06.2026"

Send "2026-06-01".

403 FORBIDDEN, Invalid ApiKey

Key missing, unknown, switched off or expired

Keys are per environment; a staging key fails in production.

400 REQUEST_PARAMETER_IS_MISSING

No companyAccountId in the address line

Add ?companyAccountId=....

400 REQUIRED_REQUEST_BODY_IS_MISSING

The // comments are still in the body, or the JSON is broken

Strip the comments.

Adresse

HTTP
PUT https://api.cathago.de/api/gateways/integration/projects/:projectId?companyAccountId=<companyAccountId>

Beispielaufruf

Terminal
curl -X PUT 'https://api.cathago.de/api/gateways/integration/projects/:projectId?companyAccountId=<companyAccountId>' \
  -H 'API-Key: <Ihr API-Schlüssel>' \
  -H 'Content-Type: application/json' \
  -d '{
  "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 um zwei Monate 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": true,
      "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": "Privat"
    }
  ]
}'

Beispiel für den Body

JSON
{
    "tenantId": "C3125110678675695",            // Ignored by this call. It cannot move the site to another tenant
    "externalProjectId": "BV-2026-0417",        // Send it. Left out, the stored value is cleared
    "title": "Neubau Wohnpark Süd-West, Bauabschnitt 2", // Required. The only required field. Up to 1024 characters
    "costCentre": "KST-4711",                   // Send it. Left out, the stored cost centre is cleared
    "startDate": "2026-06-01",                  // Send it. Left out, the stored start date is cleared
    "endDate": "2027-11-30",                    // Send it. Left out, the stored end date is cleared
    "budget": 2680000.00,                       // Send it. Left out, the stored budget is cleared
    "description": "38 Wohneinheiten in vier Gebäuden, Tiefgarage mit 42 Stellplätzen. Bauzeit um zwei Monate verlängert.", // Send it. Left out, the description is cleared
    "projectStatus": "ACTIVE",                  // Always send it. Left out, this call writes ACTIVE instead of keeping the old status
    "address": {                                // Optional. Sent, the whole address is replaced, so name every field you want to keep
        "addressLineOne": "Ottostraße 14",      // Street and number
        "addressLineTwo": "Bauleitercontainer Tor 5", // Building, floor, site office
        "city": "Leipzig",                      // Town
        "country": "Deutschland",               // Free text
        "zipcode": "04103",                     // Text, so a leading zero survives
        "comments": "Zufahrt jetzt über Baustellentor 5.", // Notes about access
        "mapLink": "51.3315,12.3610",           // Map link or coordinate pair
        "region": "Sachsen"                     // Federal state or region
    },
    "billingAddress": {                         // Optional. Sent, the whole billing address is replaced
        "addressLineOne": "Hauptstraße 88",     // Street and number of the invoice recipient
        "addressLineTwo": "Verwaltung, 3. Obergeschoss", // Building or floor
        "city": "Dresden",                      // Town
        "country": "Deutschland",               // Country
        "zipcode": "01067",                     // Postal code as text
        "comments": "Rechnungen bitte nur per E-Mail.", // Note on the billing address
        "mapLink": "https://maps.app.goo.gl/4kTn7xR1", // Map link
        "region": "Sachsen",                    // Federal state
        "companyName": "Bauunternehmung Weber & Sohn GmbH", // Invoice recipient
        "vatId": "DE812345678",                 // VAT number
        "emailAddress": "rechnung@weber-bau.de", // Where invoices are sent
        "contactPersonName": "Ingrid Weber"     // Name of the accounts contact
    },
    "members": [                                // Optional. Only people not on the site yet are added. Nobody is removed or changed
        {
            "emailAddress": "sharif.malik@cathago.de", // Required for a member
            "role": "CONSTRUCTION_MANAGER",     // Optional, default CONSTRUCTION_MANAGER. Underscore, never a space
            "sendInvite": true,                 // Optional, default false. true sends the invitation 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",          // Id of the location you mean
            "title": "Hauptlager Tor 5",        // Optional. 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", // Street and number
                "addressLineTwo": "Tor 5",      // Gate, building or floor
                "city": "Leipzig",              // Town
                "country": "Deutschland",       // Country
                "zipcode": "04103",             // Postal code as text
                "comments": "Zufahrt über die Nordseite.", // Note about the location
                "mapLink": "51.3315,12.3610",   // Map link or coordinate pair
                "region": "Sachsen"             // 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
            "valueOptions": ["Privat", "Öffentlich"], // Optional. Ignored while customFieldId is set
            "value": "Privat"                   // Optional. The new value, always sent as text
        }
    ]
}

Beispielantworten

Update Project

Status: 200 OK

JSON
{
    "externalProjectId": null,
    "title": "PROJECT HEM SSS",
    "costCentre": "COSTBER001",
    "startDate": "2023-06-25",
    "endDate": "2028-02-23",
    "budget": 150000,
    "description": "Update anthing upto 4096 characters",
    "id": "C0226022313402373",
    "address": {
        "addressLineOne": "123 Main Street",
        "addressLineTwo": "Suite 5",
        "city": "Berlin",
        "country": "Germany",
        "zipcode": "10115",
        "comments": "Main office address",
        "mapLink": "https://maps.example.com/123",
        "region": null,
        "id": "CAE26022389018632"
    },
    "billingAddress": {
        "addressLineOne": "Billing Street 10",
        "addressLineTwo": "",
        "city": "Berlin",
        "country": "Germany",
        "zipcode": "10117",
        "comments": "Send all invoices to the attention of Accounts Payable.",
        "mapLink": "https://maps.example.com/billing",
        "region": null,
        "id": "CWZ26022365399387",
        "companyName": "ABC Construction GmbH",
        "vatId": "DE1123456789",
        "emailAddress": null,
        "contactPersonName": null
    },
    "members": [
        {
            "id": "CDI26022381391510",
            "emailAddress": "manager@example.com",
            "role": {
                "roleName": "PROCUREMENT MANAGER",
                "roleType": "SYSTEM_DEFINED"
            },
            "invitationSentDate": "2026-02-11T14:23:31.495Z",
            "contactPerson": {
                "id": "CTA26021116273926",
                "fullName": "John Doe",
                "emailAddress": "manager@example.com",
                "contactNumber": "+49 123 4567",
                "alternateContactNumber": "+49 987 6543"
            },
            "memberStatus": "PENDING",
            "username": null
        },
        {
            "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": "Site Location A",
            "comments": "Primary construction site - North Sector",
            "id": "CJO26022311668193",
            "defaultLocation": true,
            "address": {
                "addressLineOne": "Site Road 12",
                "addressLineTwo": "Gate 4",
                "city": "Munich",
                "country": "Germany",
                "zipcode": "80331",
                "comments": "Heavy vehicle access only through Gate 4",
                "mapLink": "https://maps.example.com/siteA",
                "region": "Bavaria",
                "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
                },
                {
                    "id": "CDI26022381391510",
                    "emailAddress": "manager@example.com",
                    "role": {
                        "roleName": "PROCUREMENT MANAGER",
                        "roleType": "SYSTEM_DEFINED"
                    },
                    "invitationSentDate": "2026-02-11T14:23:31.495Z",
                    "contactPerson": {
                        "id": "CTA26021116273926",
                        "fullName": "John Doe",
                        "emailAddress": "manager@example.com",
                        "contactNumber": "+49 123 4567",
                        "alternateContactNumber": "+49 987 6543"
                    },
                    "memberStatus": "PENDING",
                    "username": null
                }
            ],
            "createdAt": "2026-02-23T11:01:19.450Z",
            "lastModifiedAt": "2026-02-23T12:06:59.514Z"
        }
    ],
    "customFieldValues": [],
    "projectStatus": "ACTIVE",
    "tenantId": "C31kYL7E69"
}