| All Verbs | /reserve_bed |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| RoomId | query | int? | No | |
| StudentId | query | int | No | |
| BedId | query | int | No | |
| TermId | query | int | No | |
| ReserveDt | query | DateTime? | No | |
| isSingle | query | bool | No | |
| MealPlanId | query | int? | No | |
| RoomRateId | query | int? | No | |
| IsLocked | query | bool | No | |
| Comments | query | string | No | |
| OverrideWarnings | query | bool? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Result | form | ReservationDTO | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ReservationId | form | int | No | |
| StudentId | form | int | No | |
| BedId | form | int | No | |
| TermId | form | int | No | |
| AppId | form | int? | No | |
| MealPlanId | form | int? | No | |
| RoomRateId | form | int? | No | |
| ReserveStatus | form | string | No | |
| SelfReserved | form | bool | No | |
| ExpectedArrivalDt | form | DateTime? | No | |
| ReserveAsSingle | form | bool | No | |
| Locked | form | bool | No | |
| RequiresApproval | form | bool | No | |
| Approved | form | bool | No | |
| ApprovalReason | form | string | No | |
| ApprovedBy | form | string | No | |
| ApprovedDt | form | DateTime? | No | |
| RequiresConfirm | form | bool | No | |
| Confirmed | form | bool | No | |
| ConfirmedBy | form | string | No | |
| ConfirmedDt | form | DateTime? | No | |
| Comments | form | string | No | |
| CreatedDt | form | DateTime? | No | |
| CreatedBy | form | string | No | |
| LastModifiedDt | form | DateTime? | No | |
| LastModifiedBy | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST //reserve_bed HTTP/1.1
Host: api.lsu-staging.abodehms.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
roomId: 0,
studentId: 0,
bedId: 0,
termId: 0,
reserveDt: 0001-01-01,
isSingle: False,
mealPlanId: 0,
roomRateId: 0,
isLocked: False,
comments: String,
overrideWarnings: False
}
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
result:
{
reservationId: 0,
studentId: 0,
bedId: 0,
termId: 0,
appId: 0,
mealPlanId: 0,
roomRateId: 0,
reserveStatus: String,
selfReserved: False,
expectedArrivalDt: 0001-01-01,
reserveAsSingle: False,
locked: False,
requiresApproval: False,
approved: False,
approvalReason: String,
approvedBy: String,
approvedDt: 0001-01-01,
requiresConfirm: False,
confirmed: False,
confirmedBy: String,
confirmedDt: 0001-01-01,
comments: String,
createdDt: 0001-01-01,
createdBy: String,
lastModifiedDt: 0001-01-01,
lastModifiedBy: String
},
responseStatus:
{
errorCode: String,
message: String,
stackTrace: String,
errors:
[
{
errorCode: String,
fieldName: String,
message: String,
meta:
{
String: String
}
}
],
meta:
{
String: String
}
}
}