This endpoint is in preview and may be modified or removed at any time.
To use this endpoint, add preview=true to the request query parameters.
Loads the elements contained in the requested layers of a Gaia map. The response includes the geometries associated with the elements.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:map-read.
objectlist<GaiaLayerId>The set of layer IDs to load from a Gaia map.
objectmap<GaiaLayerId, GaiaLayer>A mapping of the requested layer IDs to a Gaia layer. Any invalid layer IDs will be omitted from this field.
1
2
3
4
5
curl -X PUT \
\t-H "Content-type: application/json" \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/gaia/maps/ri.gotham-artifact.0-1.gaia-map.a1A2bcD3e45fg6h7ij/loadLayers?preview=true" \
-d '{"layerIds":[1,2,3]}'| Error Name | ||
|---|---|---|
Load | Error Code | PERMISSION_DENIED |
| Status Code | 403 | |
| Description | Could not loadLayers the Map. | |
| Parameters | mapRid | |
See Errors for a general overview of errors in the platform.