Skip to main content
POST

Overview

This endpoint creates new project regions or updates existing ones. Project regions help organize projects by geographical or organizational boundaries. Existing project regions are matched by number.

Region Description Field

The description field is an optional free-text field that provides additional context about the project region. It’s useful for:
  • Documenting the geographical coverage (e.g., ‘Northern operations covering warehouses A and B’)
  • Adding organizational notes (e.g., ‘Regional office Hamburg, managed by Team North’)
  • Recording special handling instructions for the region
To change the description later, send the same number again with the new description. Omitting description keeps the stored value; null clears it.

Example: Creating a Region with Description

Example: Creating a Region without Description

Example: Clearing a Description

Parent Region and Company Code

Use parent_id to place a project region under an existing parent project region of the tenant and build a hierarchy. Use legal_entity_id to link the project region to a company code of the tenant (see GET /legal-entities).
  • Both fields are optional; null clears the link. For existing project regions a field is only updated when every entry in the request contains it. If at least one entry omits it, the stored values of all entries stay unchanged.
  • The IDs must belong to the tenant. Unknown IDs are rejected with 400 Bad Request.
  • A parent that would create a cycle in the hierarchy is rejected with 400 Bad Request.
legal_entity_id requires the “link company codes to regions” feature. If it is not enabled for your tenant, the request is rejected with 403 Forbidden.

Example: Region with Parent Region and Company Code

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.

Scopes

project_regions:write

Body

application/json
title
string
required

Der Titel der Projektregion. Wird bei bestehenden Projektregionen immer überschrieben.

Example:

"North Region"

number
string
required

Die Nummer/der Code der Projektregion. Eindeutig pro Mandant und Abgleichsschlüssel für Aktualisierungen.

Example:

"REG-NORTH"

description
string | null

Optionale Freitext-Beschreibung. Weglassen behält den gespeicherten Wert, null löscht ihn.

Example:

"Nordregion mit Lagern A und B"

Die ID eines Buchungskreises des Mandanten (siehe GET /legal-entities), der der Projektregion zugeordnet wird. Erfordert die Funktion „Buchungskreise mit Regionen verknüpfen“; andernfalls wird die Anfrage mit 403 Forbidden abgelehnt. null entfernt die Zuordnung. Wird bei bestehenden Projektregionen nur aktualisiert, wenn alle Einträge der Anfrage das Feld enthalten.

Example:

"11111111-1111-4111-8111-111111111111"

parent_id
string<uuid> | null

Die ID einer bestehenden übergeordneten Projektregion des Mandanten. null entfernt die Zuordnung. Wird bei bestehenden Projektregionen nur aktualisiert, wenn alle Einträge der Anfrage das Feld enthalten. Zyklen in der Hierarchie werden mit 400 Bad Request abgelehnt.

Example:

"22222222-2222-4222-8222-222222222222"

Response

Projektregionen erfolgreich erstellt oder aktualisiert

id
string<uuid>

Die eindeutige Kennung der Projektregion

title
string

Der Titel der Projektregion

Example:

"North Region"

number
string

Die Nummer/der Code der Projektregion

Example:

"REG-NORTH"

description
string | null

Freitext-Beschreibung der Projektregion

Example:

"Nordregion mit Lagern A und B"

tenant_id
string<uuid>

Die Mandanten-ID

Die ID des zugeordneten Buchungskreises, falls vorhanden

parent_id
string<uuid> | null

Die ID der übergeordneten Projektregion, falls vorhanden