Neue API-Version v7.4.2 wurde veröffentlicht! 🎉
REST Dokumentation
GET Abteilungen

Alle Abteilungen abrufen

Mit diesem Endpunkt können Sie eine paginierte Liste aller Abteilungen abrufen.

Request

GET /api/v1/departments
curl --request GET \
     --url 'https://www.zep-online.de/zepinstanz/next/api/v1/departments' \
     --header 'Accept: application/json' \
     --header 'Authorization: Bearer {token}'

Response

{
	"data": [
		{
			"id": 1,
			"parent_id": null,
			"name": "Firma GmbH",
			"description": null,
			"comments": null,
			"status": 1,
			"manager_count": 2,
			"children_count": 10,
			"created": null,
			"modified": "2023-12-21T07:52:50.000000Z"
		},
		{
			"id": 2,
			"parent_id": 1,
			"name": "Entwicklung",
			"description": null,
			"comments": null,
			"status": 1,
			"manager_count": 17,
			"children_count": 0,
			"created": null,
			"modified": "2025-04-04T06:40:01.000000Z"
		},
		{
			"id": 3,
			"parent_id": 1,
			"name": "Vertrieb",
			"description": "Vertrieb und Geschäftsentwicklung",
			"comments": null,
			"status": 1,
			"manager_count": 1,
			"children_count": 0,
			"created": null,
			"modified": null
		}
	]
}