Search documentation
karat

+

K

User Documentation ↗

Add Enterprise Map Layers To Map

POST/api/gotham/v1/maps/{mapRid}/layers/emls
Warning

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.

Add enterprise map layers to a map. If unknown enterprise map layers or enterprise map layers that don't satisfy the security requirements are provided, the entire request will fail. For each request, a new layer is created for each enterprise map layer provided, thus not idempotent. Returns the IDs of the layers created.

Path parameters

mapRid
string

The RID of the Gaia map that you wish to add objects to.

Query parameters

preview
boolean
optional

Represents a boolean value that restricts an endpoint to preview mode when set to true.

Request body

AddEnterpriseMapLayersToMapRequest
object

The request body to add enterprise map layers to a map

Hide children

Hide children

emlIds
list<EmlId>
optional

The IDs of the enterprise map layers to be added to the map.

Show children

Show children

EmlId
string

The ID of a enterprise map layer

Response body

AddEnterpriseMapLayersToMapResponse
object

Success response.

Hide children

Hide children

dataLayerIds
list<GaiaLayerId>
optional
Show children

Show children

GaiaLayerId
string

The ID of a layer in a Gaia map.

Examples

Request

Copied!
1 2 3 4 5 curl -X POST \ -H "Content-type: application/json" \ -H "Authorization: Bearer $TOKEN" \ "https://$HOSTNAME/api/gotham/v1/maps/ri.gaia..map.a1A2bcD3e45fg6h7ij/layers/emls?preview=true" \ -d '{"emlIds":["0123456789012345678901234567890123456789012345678901234567890123",1234567890123456789012345678901234567890123456789012345678901234]}'

Response

Copied!
1 2 3 4 5 { "dataLayerIds": [ "exampleLayerId" ] }