POST api/BuildingSiteListingData
Request Information
URI Parameters
None.
Body Parameters
BuildingSiteRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| ID | integer |
None. |
|
| Name | string |
None. |
|
| BuildingID | integer |
None. |
|
| TrafficSensorID | integer |
None. |
|
| RtuControllerID | integer |
None. |
|
| SiteTypeID | integer |
None. |
|
| LevelID | integer |
None. |
|
| TrafficAlert | boolean |
None. |
|
| RtuAlert | boolean |
None. |
|
| UnrestrictNotification | boolean |
None. |
|
| OperationTimeStart | string |
None. |
|
| OperationTimeEnd | string |
None. |
|
| SubmitBy | integer |
None. |
|
| Token | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ID": 1,
"Name": "sample string 2",
"BuildingID": 3,
"TrafficSensorID": 4,
"RtuControllerID": 5,
"SiteTypeID": 6,
"LevelID": 7,
"TrafficAlert": true,
"RtuAlert": true,
"UnrestrictNotification": true,
"OperationTimeStart": "sample string 11",
"OperationTimeEnd": "sample string 12",
"SubmitBy": 13,
"Token": "sample string 14"
}
application/xml, text/xml
Sample:
<BuildingSiteRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/M2senseWebApiProject.Models"> <BuildingID>3</BuildingID> <ID>1</ID> <LevelID>7</LevelID> <Name>sample string 2</Name> <OperationTimeEnd>sample string 12</OperationTimeEnd> <OperationTimeStart>sample string 11</OperationTimeStart> <RtuAlert>true</RtuAlert> <RtuControllerID>5</RtuControllerID> <SiteTypeID>6</SiteTypeID> <SubmitBy>13</SubmitBy> <Token>sample string 14</Token> <TrafficAlert>true</TrafficAlert> <TrafficSensorID>4</TrafficSensorID> <UnrestrictNotification>true</UnrestrictNotification> </BuildingSiteRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |