Organizations (Organisationen)
Endpunkte
| Methode | Endpunkt | Auth | Beschreibung |
|---|---|---|---|
GET | /organizations/{id}/ | Ja | Organisation per ID abrufen |
POST | /organizations/ | Ja | Organisation erstellen ✅ |
PUT | /organizations/{id}/ | Ja | Organisation aktualisieren |
GET | /organizations/admin/ | Admin | Admin-Organisationsliste |
GET | /organizations/labels/ | Admin | Organisations-Labels |
GET | /organizations/modules/ | Admin | Organisations-Module-Konfiguration |
GET | /organizations/types/ | Admin | Organisationstypen |
Organisation erstellen (POST /organizations/)
Verifiziert ✅
Dieser Endpunkt wurde erfolgreich getestet. Erstellte Organisation erhielt ID 407360.
http
POST /organizations/
Content-Type: application/json
appid: 412181249
Authorization: Bearer {TOKEN}Request Body (Minimal):
json
{
"name": "Meine neue Organisation",
"typeId": 1,
"appIds": [412181249]
}Optionale Felder:
json
{
"name": "Meine Organisation GmbH",
"typeId": 1,
"appIds": [412181249],
"url": "https://example.com",
"email": "info@example.com",
"phone": "+49 123 456789",
"description": "<p>Beschreibung der Organisation</p>",
"linkedIn": "https://linkedin.com/company/example",
"twitter": "https://twitter.com/example"
}Response 200:
json
{
"id": 407360,
"name": "Meine neue Organisation",
"brandName": null,
"legalForm": null,
"urlName": "MeineNeueOrganisationXYZ",
"logo": null,
"appIds": [412181249],
"isPublic": false,
"description": null,
"categories": []
}typeId-Werte
Abrufbar über GET /organizations/types/. Typischerweise: 1 = Standard-Organisation.
Organisation aktualisieren (PUT /organizations/{id}/)
Verifiziert ✅
Dieser Endpunkt wurde erfolgreich getestet. PATCH wird nicht unterstützt (405).
http
PUT /organizations/{id}/
Content-Type: application/json
appid: 412181249
Authorization: Bearer {TOKEN}Request Body (nur geänderte Felder senden):
json
{
"name": "Aktualisierter Organisationsname"
}Weitere aktualisierbare Felder:
json
{
"name": "Meine Organisation GmbH",
"url": "https://example.com",
"email": "info@example.com",
"phone": "+49 123 456789",
"description": "<p>Neue Beschreibung</p>",
"linkedIn": "https://linkedin.com/company/example",
"twitter": "https://twitter.com/example",
"facebook": "https://facebook.com/example",
"youtube": "https://youtube.com/@example",
"instagram": "https://instagram.com/example"
}Response 200: Vollständiges aktualisiertes Organisations-Objekt.
Beispiel: Organisation abrufen
http
GET /organizations/327804/
appid: 412181249
Authorization: Bearer {TOKEN}