Link Search Menu Expand Document

3. Get Property

Op name:

scgrids.readProperty

This gets a Property by ID

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.readProperty (Required) Operation Name
org   (Required) Organisation ID
pid scnoop (Required) Project ID is scnoop when it’s not known
propid   (Optional) Property ID

More example Requests/Responses:

I. Example Response: Get Property
{
    "status": 200,
    "message": "Success",
    "data": {
        "OrgId": "SMARTCLEAN",
        "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": "Active"
    }
}

Status Code: 200

Error codes:

400
Possible reasons:
1. Missing op/org/pid
3. If the given Property ID is not found



Table of contents