| PUT | /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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /jsv/reply/PutMapContextRequest 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
}
]
}