Container ID
If you are unsure where to find the Container ID we've got you covered. A container is essentially what we refer to as an area in the web application.
You can utilize our APIs to retrieve Container Ids. Fetch all available containers by using the following API and passing your API key and your map ID. Once obtained, you can retrieve the specific container ID you need.
Try fetch the container ids related to your Atlas map(s) in the "Sandbox":
Here is the request Curl.
curl --request POST \
--url 'https://app-api.geposit.se/v2.0/container/all?api_key=<your_api_key>' \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"map_id": "map1"
}
'
And, this is how the response looks like!
{
"containers": [
{
"id": "contId",
"map_id": "map1",
"layer_id": "layer1",
"name": "Name1",
"color": "#8ED1FC",
"description": "",
"visible": true,
"created_at": "2024-02-02T09:54:32.797814Z",
"updated_at": "2024-02-02T09:54:32.797794Z",
"user_id": "user1",
"updated_by": "",
"geo_ids_ref_groups": [
{
"ref_id": "ref1",
"geo_ids": [
{
"polygon_id": "poly1",
"feature_id": "fea1"
},
{
"polygon_id": "poly2",
"feature_id": "fea2"
},
{
"polygon_id": "poly3",
"feature_id": "fea3"
},
{
"polygon_id": "poly4",
"feature_id": "fea4"
}...
],
"custom_ids": null
}
],
"custom_polygons": []
},
{
"id": "cont2",
"map_id": "map2",
"layer_id": "layer2",
"name": "Name2",
"color": "",
"description": "",
"visible": true,
"created_at": "2022-12-13T13:56:38.133762Z",
"updated_at": "2022-12-13T13:56:38.133743Z",
"user_id": "user2",
"updated_by": "",
"geo_ids_ref_groups": [],
"custom_polygons": []
},
...
]
}
]
}
If you are unaware how to get the Map Id, check How to get Map IDs
Also, you can switch on the Show Object Idsand retrieve the Container Id from the web application itself. Once you click the area, you will obtain the relevant container ID as follows.
Updated 8 months ago