Skip to main content
POST

Overview

Imports cost centers / work types (project structure) into a project. Existing rows with the same code are updated (title, parent, description). Resolve the project id first, for example with GET /projects/byProjectNumber/{project_number}.

Permissions

Behavior

  • Matching uses (project_id, code).
  • Duplicate code values in the same request keep the last row.
  • Omitted parent or description fields are stored as an empty string so a re-import overwrites existing values.
  • Blank or whitespace-only code or title values return HTTP 400; the batch is not partially imported.
  • parent is only a number — there is no foreign-key check against the parent cost center.
  • If the project is not visible to the API key’s tenant, the API responds with 403.

Response codes

Authorizations

X-API-Key
string
header
required

API-Schlüssel zur Authentifizierung. Kontaktieren Sie Ihren Customer Success Manager, um einen API-Schlüssel zu erhalten.

Jeder Endpunkt erfordert spezifische Berechtigungen (Scopes); die erforderlichen Scopes werden pro Endpunkt angezeigt.

Path Parameters

id
string<uuid>
required

Projekt-ID (UUID)

Body

application/json
code
string
required

Eindeutige Kostenstellennummer innerhalb des Projekts

Example:

"1000"

title
string
required

Bezeichnung der Kostenstelle

Example:

"Rohbau"

parent
string

Optionale Nummer der übergeordneten Kostenstelle

Example:

"100"

description
string

Optionale Beschreibung der Kostenstelle

Example:

"Rohbauarbeiten Gebäude A"

Response

Kostenstellen erfolgreich erstellt oder aktualisiert

code
string
required

Eindeutige Kostenstellennummer innerhalb des Projekts

Example:

"1000"

project_id
string<uuid>
required

Projekt-ID

title
string | null

Bezeichnung der Kostenstelle

Example:

"Rohbau"

parent
string | null

Nummer der übergeordneten Kostenstelle

Example:

"100"

description
string | null

Optionale Beschreibung der Kostenstelle

Example:

"Rohbauarbeiten Gebäude A"

created_at
string<date-time>

Erstellungszeitpunkt

updated_at
string<date-time>

Zeitpunkt der letzten Aktualisierung