AlertSense Map Service

<back to all web services

PostMapContextRequest

The following routes are available for this service:
POST/api/contexts
MapContext Parameters:
NameParameterData TypeRequiredDescription
IdbodyGuidNo
ContextNamebodystringNo
AreasbodyList<Area>No

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

HTTP + JSV

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

POST /jsv/reply/PostMapContextRequest HTTP/1.1 
Host: elm.alertsense.com 
Content-Type: text/jsv
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
		}
	]
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
		}
	]
}