###Example Json

{
  "secret": "x123sf567sdfscvgh",
  "application": {
    "id": 12345,
    "status": 0
  }
}

###Example Curl

curl -X POST -H "Content-Type: application/json" -d '{
  "secret": "x123sf567sdfscvgh",
  "application": {
    "id": 12345,
    "status": 0
  }
}' "http://app.tenantoptions.com.au/api/v1/inspect_real_estate/property_applications"

###Example Javascript AJAX

const settings = {
  "async": true,
  "crossDomain": true,
  "url": "http://app.tenantoptions.com.au/api/v1/inspect_real_estate/property_applications",
  "method": "POST",
  "headers": {
    "content-type": "application/json"
  },
  "processData": false,
  "data": {
    "secret": "x123sf567sdfscvgh",
    "application": {
      "id": 12345,
      "status": 0
    }
  }
}

$.ajax(settings).done(function (response) {
  console.log(response);
});

Supported Formats

json, jsonp

Errors

Code Description
503 Unable to save changes to the database
501 Invalid secret
502 Invalid application status. See application[status] requirements

Params

Param name Description
secret
required

Secret token provided by the Tenant Options IT team

Validations:

  • Must be a String

application
required

Validations:

  • Must be a Hash

application[id]
required

The Inspect Real Estate property application id number

Validations:

  • Must be a number.

application[status]
required

A status code for the application

Validations:

  • Must be a number.


Metadata:
--- 0 = applied, 1 = successful, 2 = unsuccessful and 3 = withdrawn