POST api/v3/Roles/users/assignment
Request Information
URI Parameters
None.
Body Parameters
UserRoleMappingName | Description | Type | Additional information |
---|---|---|---|
lstRole | Collection of Role |
None. |
|
UserID | integer |
None. |
|
Roles | string |
None. |
|
RoleID | integer |
None. |
|
UserIdentifier | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "lstRole": [ { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 }, { "RoleName": "sample string 1", "RoleID": 2, "IsUserInRole": true, "IsSelected": true, "IsMenuselected": 5, "IsDefault": 6 } ], "UserID": 1, "Roles": "sample string 2", "RoleID": 3, "UserIdentifier": "sample string 4" }
text/html
Sample:
{"lstRole":[{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6},{"RoleName":"sample string 1","RoleID":2,"IsUserInRole":true,"IsSelected":true,"IsMenuselected":5,"IsDefault":6}],"UserID":1,"Roles":"sample string 2","RoleID":3,"UserIdentifier":"sample string 4"}
text/xml
Sample:
<UserRoleMapping xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ShotClassCore.Models"> <RoleID>3</RoleID> <Roles>sample string 2</Roles> <UserID>1</UserID> <UserIdentifier>sample string 4</UserIdentifier> <lstRole> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> <Role> <IsDefault>6</IsDefault> <IsMenuselected>5</IsMenuselected> <IsSelected>true</IsSelected> <IsUserInRole>true</IsUserInRole> <RoleID>2</RoleID> <RoleName>sample string 1</RoleName> </Role> </lstRole> </UserRoleMapping>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
booleanResponse Formats
application/json, text/json, text/html
Sample:
true
text/xml
Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>