POST api/usruser2role/insert
Request Information
URI Parameters
None.
Body Parameters
UsrUser2Role| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
Required |
|
| RowGuid | globally unique identifier |
Required |
|
| UserId | integer |
Required |
|
| RoleId | integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"RowGuid": "f574b859-378d-402b-abfe-5cdd5bffd745",
"UserId": 3,
"RoleId": 4
}
application/xml, text/xml
Sample:
<UsrUser2Role xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.Tools.Usr.Models"> <Id>1</Id> <RoleId>4</RoleId> <RowGuid>f574b859-378d-402b-abfe-5cdd5bffd745</RowGuid> <UserId>3</UserId> </UsrUser2Role>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UsrUser2RoleDisplay| Name | Description | Type | Additional information |
|---|---|---|---|
| RoleIdDisplay | string |
None. |
|
| UserIdDisplay | string |
None. |
|
| Id | integer |
Required |
|
| RowGuid | globally unique identifier |
Required |
|
| UserId | integer |
Required |
|
| RoleId | integer |
Required |
Response Formats
application/json, text/json
Sample:
{
"RoleIdDisplay": "sample string 1",
"UserIdDisplay": "sample string 2",
"Id": 3,
"RowGuid": "5adeff12-3278-4a66-bb4e-1f50a213ccef",
"UserId": 5,
"RoleId": 6
}
application/xml, text/xml
Sample:
<UsrUser2RoleDisplay xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IWeb.Tools.Usr.Models"> <Id>3</Id> <RoleId>6</RoleId> <RowGuid>5adeff12-3278-4a66-bb4e-1f50a213ccef</RowGuid> <UserId>5</UserId> <RoleIdDisplay>sample string 1</RoleIdDisplay> <UserIdDisplay>sample string 2</UserIdDisplay> </UsrUser2RoleDisplay>