Upsert organization units
POST/v1/organization
Import or update organization units with identifiers and addresses. Supports both incremental updates and full data replacement.
Upsert Key: code (ON CONFLICT target on the organization_unit table)
full_load Behavior:
- false (default): Incremental upsert — updates existing records (matched by code), inserts new ones
- true: Full replacement — deletes ALL existing organization units for the customer, then inserts new data
Required Fields: code, name, organization_type
Request
Responses
- 200
- 400
- 401
- 403
- 500
Import result
Bad request - validation error
Unauthorized - invalid or missing API key
Forbidden - insufficient permissions
Internal server error