Get project details
Decommission notice
Purpose
This endpoint gets all the fences and other details for a project. This can include objects for which the project is a default.
Request data
HTTPS method: GET
- Constants and parameters enclosed in curly brackets { } must be replaced with their values.
- Please see the following Request parameters section with the required and optional parameters tables for their values. The generic request format is as follows.
URL request format
https://{baseURL}/geofencing/{versionNumber}/projects/{projectId}?&key={Your_API_Key}&defaultObjects={true/false}curl command request format
curl 'https://{baseURL}/geofencing/{versionNumber}/projects/{projectId}?&key={Your_API_Key}&defaultObjects={true/false}'Request parameters
The following table describes the parameters that can be used in a request.
- Required parameters must be used or the call will fail.
- Optional parameters may be used.
- The order of request parameters is not important.
Required parameters | Description |
|---|---|
| The base URL for calling the API. |
| Service version number. |
| An API Key valid for the requested service. |
| The project unique id to gather details for. |
Optional parameters | Description |
|---|---|
| If set to |
Response data
Response body
The following JSON code block demonstrates a successful response from the API server.
{ "name": "project_name", "id": "project_id", "fences": [ { "id": "fence_id", "name": "fence_name", ... } ], "defaultObjects": [ { "id": "object_id", "name": "object_name", ... } ]}Response fields
The following data tables describe all of the fields that can appear in a response.
Primary fields | |
|---|---|
Field | Description |
| The name of the project. |
| The UUID of the project. |
| A list of UUIDs and names of fences linked to the project. |
| (Optional) A list of object UUIDs and names of objects that have the project linked as default project. |
fences array | |
| Field | Description |
| The UUID of a fence linked to the project. |
| The name of a fence linked to the project. |
defaultObjects array | |
Field | Description |
| The UUID of an object that has the project linked as a default project. |
| The name of an object that has the project linked as a default project. |
Response codes
Code | Meaning & possible causes |
|---|---|
| OK |
| Not found: Project with the specified ID does not exist. |
Example
Get project details
Get details of the “Cities in the Netherlands” (id: 44de824d-c368-46cf-a234-a6792682dfd6) project, including a list of objects that have this project set as their default project.
URL request example
https://api.tomtom.com/geofencing/1/projects/44de824d-c368-46cf-a234-a6792682dfd6?key={Your_API_Key}&defaultObjects=trueResponse body example
{ "name": "project_name", "id": "project_id", "fences": [ { "id": "fence_id", "name": "fence_name", ... } ], "defaultObjects": [ { "id": "object_id", "name": "object_name", ... } ]}