Reserve items
POST
/library/reserveitems
When taking items - must be phyiscal items - use this to Allocate it to the specified user
Body Required
-
reserve_to integer
The user ID of the person who the item is being reserved for
-
notify_owner integer
Whether to notify the owner of the library collection that this item has been reserved
Values are
1
or0
. -
message string
A message to notify the owner with
-
items array[object]
A list of physical items that this person is reserving
POST /library/reserveitems
curl \
-X POST https://YOURSITE.infoodle.com/apiv2/library/reserveitems \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: text/plain" \
-d '[{"reserve_to":12345,"notify_owner":1,"message":"Please leave at reception for me to collect","items":[{"itemid":5643}]}]'
Request example
[
{
"reserve_to": 12345,
"notify_owner": 1,
"message": "Please leave at reception for me to collect",
"items": [
{
"itemid": 5643
}
]
}
]
Response examples (200)
{
"error": 0,
"items": [
{
"reserved_ok": 1,
"reserved_ok_msg": "There are no items available to allocate",
"number_available": 12,
"number_not_available": 2,
"return_by_date_dmy": "2022-10-12",
"return_by_date_show": "12th Dec 2022"
}
]
}
Response examples (400)
{
"error": 1,
"errors": [
{
"error": 1,
"message": "The error description"
}
]
}