POST api/v1/Users/{id}/AccessLevels?updateAzureSearch={updateAzureSearch}
Adds an existing Access Level to an existing User. Returns Success/Error code plus primary key of UserAccessLevel entry made.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| updateAzureSearch | boolean |
Default value is True |
|
| id | string |
None. |
Body Parameters
AddAccessLevelViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId |
Required: Represents the PK of an existing User |
globally unique identifier |
None. |
| AccessLevelId |
Required: Represents the PK of an existing Access Level you wish to add to this User |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": "5935bd7f-f09e-45f6-a266-4f400cdb6663",
"AccessLevelId": 2
}
application/xml, text/xml
Sample:
<AddAccessLevelViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers"> <AccessLevelId>2</AccessLevelId> <UserId>5935bd7f-f09e-45f6-a266-4f400cdb6663</UserId> </AddAccessLevelViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultWithInt| Name | Description | Type | Additional information |
|---|---|---|---|
| Value |
Represents the PK value that was created as a result of an add |
integer |
None. |
| ResultCode |
Represents the result code |
integer |
None. |
| Description |
Represents a description of the result code |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Value": 1,
"ResultCode": 2,
"Description": "sample string 3"
}
application/xml, text/xml
Sample:
<ResultWithInt 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>1</Value> </ResultWithInt>