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 structure and basic metadata of a Gaia map, given a map GID. Metadata includes the map's title and layer labels.
The response contains a mapping of all layers contained in the map. The map's layer hierarchy can be recreated
by using the rootLayerIds in the response along with the subLayerIds field in the layer's metadata.
Third-party applications using this endpoint via OAuth2 must request the following operation scope: api:map-read.
objectContains information related to a Gaia map's structure and basic metadata.
stringThe title of the loaded Gaia map.
list<GaiaLayerId>The root layers of the loaded Gaia map. This does not include sub-layers, i.e. layers nested within a parent layer in a Gaia map.
map<GaiaLayerId, GaiaLayerMetadata>A mapping of all the layers contained in the Gaia map. Includes layers nested under the root layers.
1
2
3
curl \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/v2/gaia/maps/ri.gotham-artifact.0-1.gaia-map.a1A2bcD3e45fg6h7ij/load?preview=true"| Error Name | ||
|---|---|---|
Map | Error Code | NOT_FOUND |
| Status Code | 404 | |
| Description | Map not found | |
| Parameters | mapId | |
Load | Error Code | PERMISSION_DENIED |
| Status Code | 403 | |
| Description | Could not load the Map. | |
| Parameters | mapRid | |
See Errors for a general overview of errors in the platform.