AbodeONE

<back to all web services

CreateGuestRoomSlotFromHostResponse

Requires Authentication
Requires the role:Admin
The following routes are available for this service:
POST/guest_room_slot/create_from_host
CreateGuestRoomSlotFromHostResponse Parameters:
NameParameterData TypeRequiredDescription
GuestEventIdbodyintNo
OverrideWarningsbodybool?No
GuestRoomSlotsResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformList<GuestRoomSlotDTO>No
ResponseStatusformResponseStatusNo
GuestRoomSlotDTO Parameters:
NameParameterData TypeRequiredDescription
GuestRoomSlotIdformintNo
GuestHostResponseIdformint?No
GuestEventIdformint?No
RoomIdformint?No
HostIdformint?No
HostPaymentformdecimal?No
IsActiveformshortNo
CurrentGuestIDformintNo
CurrentGuestFullnameformstringNo
CurrentGuestStatusformstringNo
HostNameformstringNo
RoomNameformstringNo
WingIdformint?No
WingNameformstringNo
BuildingIdformint?No
BuildingNameformstringNo
RequestedGuestformstringNo
CommentsformstringNo
GuestRequest1formstringNo
RequestCommentsformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST //guest_room_slot/create_from_host HTTP/1.1 
Host: api.lsu-staging.abodehms.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"guestEventId":0,"overrideWarnings":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"result":[{"guestRoomSlotId":0,"guestHostResponseId":0,"guestEventId":0,"roomId":0,"hostId":0,"hostPayment":0,"isActive":0,"currentGuestID":0,"currentGuestFullname":"String","currentGuestStatus":"String","hostName":"String","roomName":"String","wingId":0,"wingName":"String","buildingId":0,"buildingName":"String","requestedGuest":"String","comments":"String","guestRequest1":"String","requestComments":"String"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}