Path parameters
-
id
integer Required Which item to be processed
Minimum value is
0
.
Body
Required
Specify one or more fields and their new values to change it
-
shortCode
string A short code entered by the user - optional
-
createdBy
object User who created this location
Additional properties are allowed.
-
manager
object User who who manages this location
Additional properties are allowed.
-
notifyUserId1
object User to notify when things change on this location
Additional properties are allowed.
-
notifyUserId2
object User to notify when things change on this location
Additional properties are allowed.
-
notifyUserId3
object User to notify when things change on this location
Additional properties are allowed.
-
notifyGroup
integer Group to notify when things change on this location
-
informManagerEachUse
string Values are
Y
orN
. -
availableForExternalBookings
string Values are
Y
orN
. -
externalRate
number -
internalRate
number -
rateMultiplier
object Additional properties are allowed.
-
publicAddress
string The physical address of this location
PATCH
/location/{id}
curl \
--request PATCH 'https://YOURSITE.infoodle.com/apiv2/location/99' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--data '{"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"}'
Request examples
{
"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 (200)
{
"id": 4325342
}
Response examples (401)
{
"error": "Unauthorised"
}
Response examples (403)
{
"error": "Invalid Permission"
}
Response examples (404)
{
"error": "Not Found"
}