Skip to main content
BluINFO

AddReaderAccess

Overview 

Adds Reader Access to an existing User. Returns Success/Error code plus primary key of UserReader entry made.

Request Information


Method

POST - api/Person/AddReaderAccess

URI Parameters

None.

Body Parameters

AddReaderAccessViewModel

Name Description Type Additional information
UserId

Required: Represents the PK of an existing User

globally unique identifier

None.

ReaderId

Required: Represents the PK of an existing Reader

globally unique identifier

None.

ScheduleId

Required: Represents the PK of an existing Schedule that will restrict access to this Reader for this User

integer

None.

AccessRightsGrantedStart

Optional: The DateTime when the User's Access Rights to this Reader will become active. If null, access will be granted immediately.

date

None.

AccessRightsGrantedEnd

Optional: The DateTime when the User's Access Rights to this Reader will become inactive. If null, access will be granted indefinitely.

date

None.

JSON

{
  "UserId": "81e17842-1e68-4028-b9a7-2b94a07e74fb",
  "ReaderId": "100db4b6-0a8f-4f7a-8343-f877c2981a2d",
  "ScheduleId": 3,
  "AccessRightsGrantedStart": "2016-12-13T23:33:38.7003433-05:00",
  "AccessRightsGrantedEnd": "2016-12-13T23:33:38.7003433-05:00"
}

XML

<AddReaderAccessViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
  <AccessRightsGrantedEnd>2016-12-13T23:33:38.7003433-05:00</AccessRightsGrantedEnd>
  <AccessRightsGrantedStart>2016-12-13T23:33:38.7003433-05:00</AccessRightsGrantedStart>
  <ReaderId>100db4b6-0a8f-4f7a-8343-f877c2981a2d</ReaderId>
  <ScheduleId>3</ScheduleId>
  <UserId>81e17842-1e68-4028-b9a7-2b94a07e74fb</UserId>
</AddReaderAccessViewModel>

Response Information 


Resource Description

ResultWithInt

Name Description Type Additional information
ResultCode

Represents the result code

integer

None.

Description

Represents a description of the result code

string

None.

Value

Represents the PK value that was created as a result of an add

integer

None.

Response Formats 

JSON

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

XML

<ResultWithInt 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>
  <Value>3</Value>
</ResultWithInt>
  • Was this article helpful?