AlertSense Map Service

<back to all web services

GetMapContextRequest

The following routes are available for this service:
GET/api/contexts/{Id}
GetMapContextRequest Parameters:
NameParameterData TypeRequiredDescription
IdpathGuidNo
MapContext Parameters:
NameParameterData TypeRequiredDescription
IdbodyGuidNo
ContextNamebodystringNo
AreasbodyList<Area>No

To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /csv/reply/GetMapContextRequest HTTP/1.1 
Host: elm.alertsense.com 
Content-Type: text/csv
Content-Length: length

{"Id":"00000000000000000000000000000000"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"Id":"00000000000000000000000000000000","ContextName":"String","Areas":[{"Id":"String","Name":"String","Geometry":{"type":"String","rings":[[[0]]],"spatialReference":{"wkid":0,"latestWkid":0}},"DomId":"String","ShapeType":"String","IsVisible":false,"IsSelected":false,"IsActive":false,"IsUpdatingContactList":false,"Contacts":[{"Label":"String","Count":0}],"ContactTotalCount":0,"HasContactCountError":false,"HasInvalidShapeError":false}]}