Einstellungen & Büros

Bürostandorte deines Tenants verwalten — hilfreich für Multi-Standort-Unternehmen.

Büro-Objekt

FeldTypPflichtBeschreibung
idintegerOptionalEindeutige Büro-ID
namestringOptionalName des Bürosz.B. Hauptbüro Frankfurt
citystringOptionalStadt
countrystringOptionalLand (ISO 3166-1 alpha-2)z.B. DE
addressstring|nullOptionalVollständige Adresse
iata_codestring|nullOptionalIATA-Flughafencode (für Aviation-Standorte)z.B. FRA
is_defaultbooleanOptionalIst dies das Standard-Büro?
created_atdatetimeOptionalErstellungszeitpunkt

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
FeldTypPflichtBeschreibung
namestringPflichtName des Büros (max. 255 Zeichen)
citystringPflichtStadt
countrystringPflichtLand (ISO 3166-1 alpha-2)
addressstringOptionalVollständige Adresse
iata_codestringOptionalIATA-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." }