POST api/Account/addUserToRole/{roleName}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| roleName | string |
Required |
Body Parameters
AppUser| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| UserName | string |
None. |
|
| UserPassword | string |
None. |
|
| IsAdmin | boolean |
None. |
|
| IsLoggedIn | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"UserName": "sample string 2",
"UserPassword": "sample string 3",
"IsAdmin": true,
"IsLoggedIn": true
}
application/xml, text/xml
Sample:
<AppUser xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DriverTracker.WebApi.Models"> <IsAdmin>true</IsAdmin> <IsLoggedIn>true</IsLoggedIn> <UserId>1</UserId> <UserName>sample string 2</UserName> <UserPassword>sample string 3</UserPassword> </AppUser>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.