Get project locations
Use this endpoint to retrieve all locations assigned to a project.
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": "Main Office Berlin",
"description": "Office in Berlin City Center",
"project_id": 123
},
{
"name": "Branch Munich",
"description": "Regional office Munich",
"project_id": 123
},
{
"name": "Home Office",
"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 Fields
- Name
name
- Type
- string
- Description
Location name
- Name
description
- Type
- string|null
- Description
Location description
- Name
project_id
- Type
- integer
- Description
ID of the project the location is assigned to