| POST | /api/contexts |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Id | body | Guid | No | |
| ContextName | body | string | No | |
| Areas | body | List<Area> | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /json/reply/PostMapContextRequest HTTP/1.1
Host: elm.alertsense.com
Content-Type: application/json
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: application/json
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}]}