POST api/v1/Occupancies/{id}/Floors
Adds a single Floor to the Occupancy. Returns Success/Error code plus primary key of Occupancy Floor added.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id |
Id pf the occupancy to add floor to |
globally unique identifier |
Required |
Body Parameters
AddUpdateOccupancyFloorViewModelName | Description | Type | Additional information |
---|---|---|---|
OccupancyFloorId |
Represents the PK of the Occupancy Floor combination. Should be Null when passed to an Add action. |
globally unique identifier |
None. |
OccupancyId |
Required: Represents the PK of the Occupancy |
globally unique identifier |
None. |
FloorId |
Required: Represents the PK of the Floor |
globally unique identifier |
None. |
Deleted |
Required: Represents whether the Occupancy / Floor combination is deleted or not. Should be false for an Add action. |
boolean |
None. |
FloorUseFlagsMask |
Required: Represents a bitmask of how the floor is used by the Occupancy. 1 = Reception, 2 = Mail/Deliver, 4 = Office Space, 8 = Retail, 16 = Residential, 32 = Commercial/Industrial |
integer |
None. |
IsDefaultMailFloor |
Required: Represents whether the Occupancy / Floor combination is used as the default Mail Floor (assuming FloorUseFlagsMask contains bitmask value of 2). Only one floor can be the "default", so setting this to true will "steal" the attribute if it was previously assigned to another Occupancy Floor combination for the same Occupancy. |
boolean |
None. |
IsDefaultReceptionFloor |
Required: Represents whether the Occupancy / Floor combination is used as the default Reception Floor (assuming FloorUseFlagsMask contains bitmask value of 1). Only one floor can be the "default", so setting this to true will "steal" the attribute if it was previously assigned to another Occupancy Floor combination for the same Occupancy. |
boolean |
None. |
IsDefaultOccupantFloor |
Required: Represents whether the Occupancy / Floor combination is used as the default Occupancy Floor (assuming FloorUseFlagsMask contains bitmask value of 4). This is used to determine default floors of new employees amongst other things. Only one floor can be the "default", so setting this to true will "steal" the attribute if it was previously assigned to another Occupancy Floor combination for the same Occupancy. |
boolean |
None. |
Request Formats
application/json, text/json
{ "OccupancyFloorId": "08b7fc34-1169-49f2-b499-59e786674432", "OccupancyId": "6ba5e12a-4152-43fd-aa2e-5d3ce2293f21", "FloorId": "091ec0cf-5c5c-4263-b54d-9d0773bc22ea", "Deleted": true, "FloorUseFlagsMask": 4, "IsDefaultMailFloor": true, "IsDefaultReceptionFloor": true, "IsDefaultOccupantFloor": true }
application/xml, text/xml
<AddUpdateOccupancyFloorViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <Deleted>true</Deleted> <FloorId>091ec0cf-5c5c-4263-b54d-9d0773bc22ea</FloorId> <FloorUseFlagsMask>4</FloorUseFlagsMask> <IsDefaultMailFloor>true</IsDefaultMailFloor> <IsDefaultOccupantFloor>true</IsDefaultOccupantFloor> <IsDefaultReceptionFloor>true</IsDefaultReceptionFloor> <OccupancyFloorId>08b7fc34-1169-49f2-b499-59e786674432</OccupancyFloorId> <OccupancyId>6ba5e12a-4152-43fd-aa2e-5d3ce2293f21</OccupancyId> </AddUpdateOccupancyFloorViewModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
ResultWithGuidName | Description | Type | Additional information |
---|---|---|---|
Value |
Represents the PK value that was created as a result of an add |
globally unique identifier |
None. |
ResultCode |
Represents the result code |
integer |
None. |
Description |
Represents a description of the result code |
string |
None. |
Response Formats
application/json, text/json
{ "Value": "e4a6d26b-e1f5-4392-b5d7-98827e1a80d7", "ResultCode": 2, "Description": "sample string 3" }
application/xml, text/xml
<ResultWithGuid xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <Description>sample string 3</Description> <HttpStatusCode>Continue</HttpStatusCode> <ResultCode>2</ResultCode> <Value>e4a6d26b-e1f5-4392-b5d7-98827e1a80d7</Value> </ResultWithGuid>