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 objects to a map. Currently only Foundry-managed object types may be added. If unknown objects or objects that don't satisfy the security requirements are provided, the entire request will fail. This creates a new layer that includes all the provided objects per request, thus not idempotent. Returns the ID of the layer created.
booleanRepresents a boolean value that restricts an endpoint to preview mode when set to true.
objectThe request body to add objects to a map.
list<rid>stringThe name of the layer to be created
objectSuccess response.
list<GaiaLayerId>1
2
3
4
5
curl -X POST \
\t-H "Content-type: application/json" \
\t-H "Authorization: Bearer $TOKEN" \
"https://$HOSTNAME/api/gotham/v1/maps/ri.gaia..map.a1A2bcD3e45fg6h7ij/layers/objects?preview=true" \
-d '{"objectRids":["ri.phonograph2-objects.main.object.example1","ri.phonograph2-objects.main.object.example2"],"label":"Example layer name."}'1
2
3
4
5
{
"dataLayerIds": [
"exampleLayerId"
]
}