5. List Buildings By Property
Op name:
scgrids.listBuildingsByProperty
This lists all the buildings under a given listBuildingsByProperty
Endpoint:
Method: POST
Type: application/json
URL: /v1/actions
Headers:
Key | Value | Description |
---|---|---|
Authorization | (Required) The Acccess Token or HMAC Signature | |
x-sc-identity | external | (Required) |
Query params:
Key | Value | Description |
---|---|---|
op | scgrids.listBuildingsByProperty | (Required) Operation Name |
org | (Required) Organisation ID | |
pid | scnoop | (Required) Project ID is scnoop when it’s not known |
propid | (Required) Property ID |
More example Requests/Responses:
I. Example Response: List Buildings By Property
{
"status": 200,
"message": "Success",
"data": [
{
"PropId": "",
"PID": "",
"Config": {
"Email": {
"Default": ""
}
},
"OperatingHours": {
"0": [
{
"End": "2359",
"Start": "0000"
}
],
"1": [
{
"End": "2359",
"Start": "0000"
}
],
"2": [
{
"End": "2359",
"Start": "0000"
}
],
"3": [
{
"End": "2359",
"Start": "0000"
}
],
"4": [
{
"End": "2359",
"Start": "0000"
}
],
"5": [
{
"End": "2359",
"Start": "0000"
}
],
"6": [
{
"End": "2359",
"Start": "0000"
}
]
},
"Coordinates": {},
"Name": "Demo Project (January)",
"Address": {
"Street": "16th Cross",
"City": "Bangalore",
"State": "Karnataka",
"Country": "India",
"PostalCode": "560078",
"Coordinates": {
"Latitude": 12.44,
"Longitude": 32.44
}
},
"LevelsCount": 2,
"Status": "draft",
"TimeZone": "Asia/Kolkata",
"IsBeaconEnabled": true,
"CreatedBy": "sc_kiran",
"CreatedOn": 1609918117,
"UpdatedBy": "sc_kiran",
"UpdatedOn": 1609918117
}
]
}
Status Code: 200
Error codes: