9. Update Property
Op name:
scgrids.updateProperty
This updates a given Property’s Name or Status
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.updateProperty | (Required) Operation Name |
org | (Required) Organisation ID | |
pid | scnoop | (Required) Project ID is scnoop when it’s not known |
propid | (Required) Property ID |
Body:
{
"Status": "Pending"
}
More example Requests/Responses:
I. Example Request: scgrids.updateProperty
Body:
{
"Status": "Pending"
}
I. Example Response: scgrids.updateProperty
{
"status": 200,
"message": "Success",
"data": {
"OrgId": "",
"PropId": "",
"Name": "Test Property",
"Address": {
"Street": "16th Cross, J P Nagar",
"City": "Bangalore",
"State": "Karnataka",
"Country": "India",
"PostalCode": "560078",
"Coordinates": {
"Latitude": 3.165725,
"Longitude": 101.646267
}
},
"TypeID": "SCHOOL",
"Status": "Pending"
}
}
Status Code: 200
Error codes: