| Required role: | Admin |
| All Verbs | /building |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| BuildingId | query | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Result | form | 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 .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST //building HTTP/1.1
Host: api.lsu.abodehms.com
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
buildingId: 0
}
HTTP/1.1 200 OK
Content-Type: text/jsv
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
}
}
}