Neue API-Version v7.7.0 wurde veröffentlicht! 🎉
REST Dokumentation
GET Projekt-Standorte

Projekt-Standorte abrufen

Mit diesem Endpunkt können Sie alle einem Projekt zugeordneten Standorte abrufen.

Request

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

Response

{
	"data": [
		{
			"name": "Hauptstandort Berlin",
			"description": "Büro in Berlin Mitte",
			"project_id": 123
		},
		{
			"name": "Niederlassung München",
			"description": "Regionalbüro München",
			"project_id": 123
		},
		{
			"name": "Homeoffice",
			"description": null,
			"project_id": 123
		}
	],
	"links": {
		"first": "https://www.zep-online.de/zepinstanz/next/api/v1/projects/123/locations?page=1",
		"last": "https://www.zep-online.de/zepinstanz/next/api/v1/projects/123/locations?page=1",
		"prev": null,
		"next": null
	},
	"meta": {
		"current_page": 1,
		"from": 1,
		"last_page": 1,
		"path": "https://www.zep-online.de/zepinstanz/next/api/v1/projects/123/locations",
		"per_page": 100,
		"to": 3,
		"total": 3
	}
}

Response-Felder

  • Name
    name
    Type
    string
    Description

    Name des Standorts

  • Name
    description
    Type
    string|null
    Description

    Beschreibung des Standorts

  • Name
    project_id
    Type
    integer
    Description

    ID des Projekts, dem der Standort zugeordnet ist