Search documentation
karat

+

K

User Documentation ↗

Add Artifacts To Map

POST/api/gotham/v1/maps/{mapRid}/layers/artifacts
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 artifacts to a map. Currently only target collection artifacts may be added. If unknown artifacts or artifacts that don't satisfy the security requirements are provided, the entire request will fail. For each request, a new layer is created for each artifact, 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 artifacts to.

Query parameters

preview
boolean
optional

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

Request body

AddArtifactsToMapRequest
object

The request body to add artifacts to a map

Hide children

Hide children

artifactGids
list<ArtifactGid>
optional

The GIDs of the artifacts to be added to the map.

Show children

Show children

ArtifactGid
string

The globally unique identifier of an artifact.

label
string

The name of the layer to be created

Response body

AddArtifactsToMapResponse
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/artifacts?preview=true" \ -d '{"artifactGids":["ri.gotham-artifact.instance.service-type.a1A2bcD3e45fg6h7ij"],"label":"Example layer name."}'

Response

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