Gruppe anlegen
POST
/api/v1/component-groups
Gruppen sind verschachtelbar — parent_id angeben, um eine Untergruppe anzulegen.
Erforderliche Berechtigung
components.manage
Komponenten verwalten
Body Parameter (application/json)
| Name | Format | Beschreibung | Optional |
|---|---|---|---|
| name | Mehrsprachiger Text als Objekt je Sprache, z. B. {"de": "…", "en": "…"}. Ein einfacher String wird in der Hauptsprache der Statusseite gespeichert. Bei PATCH partiell: eine weggelassene Sprache bleibt unverändert, ein ausdrückliches null löscht sie. | — | |
| parent_id | Integer | ||
| position | Integer |
Beispiel-Request (application/json)
{
"name": {
"de": "API-Gateway",
"en": "API gateway"
},
"parent_id": 1,
"position": 0
}
Werte sind Beispiele — Pflichtfelder stehen in der Tabelle. Der Body wird als JSON gesendet.
Response (application/json)
{1 Eigenschaft
"data": {8 Eigenschaften
"id": 5,
"name": {2 Eigenschaften
"de": "Rechenzentrum Frankfurt",
"en": "Frankfurt data centre"
},
"slug": "rechenzentrum-frankfurt",
"parent_id": null,
"position": 0,
"depth": 0,
"created_at": "2026-07-27T14:00:00Z",
"updated_at": "2026-07-27T14:00:00Z"
}
}
{2 Eigenschaften
"message": "This API accepts JSON only. Send the request body as application/json (received application/x-www-form-urlencoded).",
"documentation_url": "https://docs.firestatus.de"
}
{3 Eigenschaften
"message": "The name field must be filled in at least one language (de, en).",
"errors": {1 Eigenschaft
"name": [1 Element
"The name field must be filled in at least one language (de, en)."
]
},
"documentation_url": "https://docs.firestatus.de"
}
cURL
curl -X POST 'https://status.example.com/api/v1/component-groups' \
-H 'Authorization: Bearer fs_YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"name":{"de":"API-Gateway","en":"API gateway"},"parent_id":1,"position":0}'