GET api/Bookings/ReserveSpace/{VisitDate}/{Spaces}/{ReservationID}/{ResourceID}
Allows a number of spaces to be reserved for a resource on a particular visit date under a unique reservation ID. This should be used to allow space to be reserved while completing the booking process. With the reservationID being passed to the final booking save.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
VisitDate |
The vist date of the booking to reserve the space for. |
date |
Required |
Spaces |
The number of spaces to be reserved. |
integer |
Required |
ReservationID |
The unique reservation ID to make the reservation under. |
string |
Required |
ResourceID |
The ID of the resource the spaces should be resereved for. |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
An information response to indicate if the space was reserved successfully or not.
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{"Result":"Complete","Message":"1 space(s) reserved for Resource ID 001 on 03/05/2025 03:26 under reservation ID TEST1234"}
application/xml, text/xml
Sample:
<?xml version="1.0" encoding="utf-16"?> <InformationResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Result>Complete</Result> <Message>1 space(s) reserved for Resource ID 001 on 03/05/2025 03:26 under reservation ID TEST1234</Message> </InformationResponse>