| Requires the role: | Admin |
| POST | /guest_host_response |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| StudentId | body | int | No | |
| GuestEventId | body | int | No | |
| NumGuestsDesired | body | int | No | |
| RequestedGuest1 | body | string | No | |
| RequestedGuest2 | body | string | No | |
| Comments | body | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Result | form | GuestHostResponseDTO | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| GuestHostResponseId | form | int | No | |
| RoomId | form | int | No | |
| GuestEventId | form | int | No | |
| StudentId | form | int | No | |
| AskResidentsToHost | form | short | No | |
| NumGuestsDesired | form | int | No | |
| RequestedGuest1 | form | string | No | |
| RequestedGuest2 | form | string | No | |
| Comments | form | string | No |
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST //guest_host_response HTTP/1.1
Host: api.lsu-staging.abodehms.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"studentId":0,"guestEventId":0,"numGuestsDesired":0,"requestedGuest1":"String","requestedGuest2":"String","comments":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"result":{"guestHostResponseId":0,"roomId":0,"guestEventId":0,"studentId":0,"askResidentsToHost":0,"numGuestsDesired":0,"requestedGuest1":"String","requestedGuest2":"String","comments":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}