| Required role: | Admin |
| All Verbs | /buildings |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| IsActive | query | bool? | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Result | form | List<BuildingDTO> | No | |
| ResponseStatus | form | ResponseStatus | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BuildingId | form | int | No | |
| Name | form | string | No | |
| Address1 | form | string | No | |
| Address2 | form | string | No | |
| City | form | string | No | |
| State | form | string | No | |
| Postal | form | string | No | |
| Floors | form | string | No | |
| Gender | form | string | No | |
| Code | form | string | No | |
| Active | form | bool | No | |
| SiteId | form | int | No | |
| AllowLeaves | form | bool | No | |
| PreapproveLeaves | form | bool | No | |
| EmailFromAddr | form | string | No | |
| EmailReplyAddr | form | string | No | |
| EmailFromName | form | string | No | |
| DefaultRoomCheck | form | TimeSpan? | 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 //buildings HTTP/1.1
Host: api.lsu.abodehms.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"isActive":false}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"result":[{"buildingId":0,"name":"String","address1":"String","address2":"String","city":"String","state":"String","postal":"String","floors":"String","gender":"String","code":"String","active":false,"siteId":0,"allowLeaves":false,"preapproveLeaves":false,"emailFromAddr":"String","emailReplyAddr":"String","emailFromName":"String","defaultRoomCheck":"PT0S"}],"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}