Skip to main content

AddAccessLevel

Overview

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

Request Information


Method

POST - api/Person/AddAccessLevel

URI Parameters

None.

Body Parameters

AddAccessLevelViewModel

NameDescriptionTypeAdditional information
UserIdRequired: Represents the PK of an existing Userglobally unique identifierNone.
AccessLevelIdRequired: Represents the PK of an existing Access Level you wish to add to this UserintegerNone.

JSON

{
"UserId": "5c3c25a8-c642-493b-b0d2-78e5dc1ac465",
"AccessLevelId": 2
}

XML

<AddAccessLevelViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BluSKYWebAPI.Controllers">
<AccessLevelId>2</AccessLevelId>
<UserId>5c3c25a8-c642-493b-b0d2-78e5dc1ac465</UserId>
</AddAccessLevelViewModel>

Response Information


Resource Description

ResultWithInt

NameDescriptionTypeAdditional information
ResultCodeRepresents the result codeintegerNone.
DescriptionRepresents a description of the result codestringNone.
ValueRepresents the PK value that was created as a result of an addintegerNone.

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>