Skip to main content

AddFloorAccess

Overview

Adds all Floor Stops pertaining to a given floor to an existing User. Returns Success/Error code.

Request Information


Method

POST api/Person/AddFloorAccess

URI Parameters

None.

Body Parameters

AddFloorAccessViewModel

NameDescriptionTypeAdditional information
UserIdRequired: Represents the PK of an existing Userglobally unique identifierNone.
FloorIdRequired: Represents the PK of an existing Floor, all of whose Floor Stops across all elevators you wish to assign to the UserintegerNone.
ScheduleIdRequired: Represents the PK of an existing Schedule that will restrict access to this Floor's Floor Stops for this UserintegerNone.
AccessRightsGrantedStartOptional: The DateTime when the User's Access Rights to these Floor Stops will become active. If null, access will be granted immediately.dateNone.
AccessRightsGrantedEndOptional: The DateTime when the User's Access Rights to these Floor Stops will become inactive. If null, access will be granted indefinitely.dateNone.

JSON

{
"UserId": "e8e4b2de-c030-4314-b254-f999eca61ae4",
"FloorId": 2,
"ScheduleId": 3,
"AccessRightsGrantedStart": "2016-12-14T00:08:46.434951-05:00",
"AccessRightsGrantedEnd": "2016-12-14T00:08:46.434951-05:00"
}

XML

<AddFloorAccessViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
<AccessRightsGrantedEnd>2016-12-14T00:08:46.434951-05:00</AccessRightsGrantedEnd>
<AccessRightsGrantedStart>2016-12-14T00:08:46.434951-05:00</AccessRightsGrantedStart>
<FloorId>2</FloorId>
<ScheduleId>3</ScheduleId>
<UserId>e8e4b2de-c030-4314-b254-f999eca61ae4</UserId>
</AddFloorAccessViewModel>

Response Information


Resource Description

Result

NameDescriptionTypeAdditional information
ResultCodeRepresents the result codeintegerNone.
DescriptionRepresents a description of the result codestringNone.

Response Formats

JSON

{
"ResultCode": 1,
"Description": "sample string 2"
}

XML

<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
`````<Description>``````sample string 2</Description>
`<ResultCode>`1</ResultCode>
</Result>