###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);
});
| Code | Description |
|---|---|
| 503 | Unable to save changes to the database |
| 501 | Invalid secret |
| 502 | Invalid application status. See application[status] requirements |
| Param name | Description |
|---|---|
|
secret
required |
Secret token provided by the Tenant Options IT team Validations:
|
|
application
required |
Validations:
|
|
application[id]
required |
The Inspect Real Estate property application id number Validations:
|
|
application[status]
required |
A status code for the application Validations:
Metadata: --- 0 = applied, 1 = successful, 2 = unsuccessful and 3 = withdrawn |