Search for locations
Filtered by the posted fields. Returned in ID order
Path parameters
-
The ID that is previous to the one to start from e.g. if IDs are 1,2,3 fromthisid as 1 will return 2,3
POST
/location/search/{fromthisid}
curl \
-X POST https://YOURSITE.infoodle.com/apiv2/location/search/4 \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"search":[{"by":"name","value":"Test Item"}]}'
Request examples
{
"search": [
{
"by": "name",
"value": "Test Item"
}
]
}
Response examples (200)
[
{
"locationId": 1,
"shortCode": "AU3",
"createdBy": {
"userid": 779,
"showname": "John Smith"
},
"manager": {
"userid": 144274,
"showname": "Jane Smith"
},
"notifyUserId1": {
"userid": 210000,
"showname": "Jamine Khan"
},
"notifyUserId2": {
"userid": 874371,
"showname": "George Best"
},
"notifyUserId3": {
"userid": 874344,
"showname": "Arthur Dent"
},
"notifyGroup": 636,
"informManagerEachUse": "Y",
"availableForExternalBookings": "Y",
"externalRate": 3.45,
"internalRate": 1.33,
"rateMultiplier": {
"code": "P",
"decode": "Per Half Day"
},
"publicAddress": "1 High Street, High Wycome, W1A 1AA"
}
]
Response examples (401)
{
"error": "Unauthorised"
}
Response examples (403)
{
"error": "Invalid Permission"
}