POST api/v1/Users/{id}/FloorAccesses
Adds all Floor Stops pertaining to a given floor to an existing User. Returns Success/Error code.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
None. |
Body Parameters
AddFloorAccessViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
Required: Represents the PK of an existing User |
globally unique identifier |
None. |
| FloorId |
Required: Represents the PK of an existing Floor, all of whose Floor Stops across all elevators you wish to assign to the User |
globally unique identifier |
None. |
| ScheduleId |
Required: Represents the PK of an existing Schedule that will restrict access to this Floor's Floor Stops for this User |
integer |
None. |
| AccessRightsGrantedStart |
Optional: The DateTime when the User's Access Rights to these Floor Stops will become active. If null, access will be granted immediately. |
date |
None. |
| AccessRightsGrantedEnd |
Optional: The DateTime when the User's Access Rights to these Floor Stops will become inactive. If null, access will be granted indefinitely. |
date |
None. |
Request Formats
application/json, text/json
{
"UserId": "1e87c562-dde1-4049-ae7b-e0ffa5b7efc4",
"FloorId": "c267b988-22e8-4a6c-b3d3-905b044739bf",
"ScheduleId": 3,
"AccessRightsGrantedStart": "2025-10-25T21:35:29.2213216+00:00",
"AccessRightsGrantedEnd": "2025-10-25T21:35:29.2213216+00:00"
}
application/xml, text/xml
<AddFloorAccessViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <AccessRightsGrantedEnd>2025-10-25T21:35:29.2213216+00:00</AccessRightsGrantedEnd> <AccessRightsGrantedStart>2025-10-25T21:35:29.2213216+00:00</AccessRightsGrantedStart> <FloorId>c267b988-22e8-4a6c-b3d3-905b044739bf</FloorId> <ScheduleId>3</ScheduleId> <UserId>1e87c562-dde1-4049-ae7b-e0ffa5b7efc4</UserId> </AddFloorAccessViewModel>
application/x-www-form-urlencoded
Sample not available.
Response Information
Resource Description
Result| Name | Description | Type | Additional information |
|---|---|---|---|
| ResultCode |
Represents the result code |
integer |
None. |
| Description |
Represents a description of the result code |
string |
None. |
Response Formats
application/json, text/json
{
"ResultCode": 1,
"Description": "sample string 2"
}
application/xml, text/xml
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <Description>sample string 2</Description> <HttpStatusCode>Continue</HttpStatusCode> <ResultCode>1</ResultCode> </Result>