Einstellungen & Büros
Bürostandorte deines Tenants verwalten — hilfreich für Multi-Standort-Unternehmen.
Büro-Objekt
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| id | integer | Optional | Eindeutige Büro-ID |
| name | string | Optional | Name des Bürosz.B. Hauptbüro Frankfurt |
| city | string | Optional | Stadt |
| country | string | Optional | Land (ISO 3166-1 alpha-2)z.B. DE |
| address | string|null | Optional | Vollständige Adresse |
| iata_code | string|null | Optional | IATA-Flughafencode (für Aviation-Standorte)z.B. FRA |
| is_default | boolean | Optional | Ist dies das Standard-Büro? |
| created_at | datetime | Optional | Erstellungszeitpunkt |
GET /offices — Alle Büros abrufen
GEThttps://api.aeroselect.io/api/v2/external/offices
cURLBash
curl "https://api.aeroselect.io/api/v2/external/offices" \
-H "X-API-Key: ak_live_YOUR_KEY"Response 200JSON
{
"data": [
{
"id": 1,
"name": "Hauptbüro Frankfurt",
"city": "Frankfurt am Main",
"country": "DE",
"address": "Airport City, Cargo City Süd, 60549 Frankfurt",
"iata_code": "FRA",
"is_default": true,
"created_at": "2026-01-15T10:00:00Z"
},
{
"id": 2,
"name": "München Base",
"city": "München",
"country": "DE",
"address": null,
"iata_code": "MUC",
"is_default": false,
"created_at": "2026-02-10T09:00:00Z"
}
]
}POST /offices — Büro erstellen
Erfordert Scope settings:write.
POSThttps://api.aeroselect.io/api/v2/external/offices
| Feld | Typ | Pflicht | Beschreibung |
|---|---|---|---|
| name | string | Pflicht | Name des Büros (max. 255 Zeichen) |
| city | string | Pflicht | Stadt |
| country | string | Pflicht | Land (ISO 3166-1 alpha-2) |
| address | string | Optional | Vollständige Adresse |
| iata_code | string | Optional | IATA-Flughafencode (3 Buchstaben) |
cURLBash
curl -X POST "https://api.aeroselect.io/api/v2/external/offices" \
-H "X-API-Key: ak_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Wien Base",
"city": "Wien",
"country": "AT",
"iata_code": "VIE"
}'PATCH /offices/{id} — Büro bearbeiten
Erfordert Scope settings:write.
PATCHhttps://api.aeroselect.io/api/v2/external/offices/{id}
cURLBash
curl -X PATCH "https://api.aeroselect.io/api/v2/external/offices/3" \
-H "X-API-Key: ak_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Wien Hub", "address": "Vienna International Airport, 1300 Wien-Flughafen" }'DELETE /offices/{id} — Büro löschen
Erfordert Scope settings:write.
DELETEhttps://api.aeroselect.io/api/v2/external/offices/{id}
Standard-Büro ist geschützt
Das Standard-Büro (
is_default: true) kann nicht gelöscht werden. Weise zuerst einem anderen Büro die Standard-Eigenschaft zu, bevor du das aktuelle Standard-Büro löschst.cURLBash
curl -X DELETE "https://api.aeroselect.io/api/v2/external/offices/3" \
-H "X-API-Key: ak_live_YOUR_KEY"Response 200JSON
{ "message": "Office deleted." }