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