POST api/usruser2role/insert

Request Information

URI Parameters

None.

Body Parameters

UsrUser2Role
NameDescriptionTypeAdditional 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": "16fde07b-f091-4317-ada6-7724159dfb04",
  "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>16fde07b-f091-4317-ada6-7724159dfb04</RowGuid>
  <UserId>3</UserId>
</UsrUser2Role>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UsrUser2Role'.

Response Information

Resource Description

UsrUser2RoleDisplay
NameDescriptionTypeAdditional 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": "171d2cd3-10f2-4bab-915e-9b88a9472a71",
  "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>171d2cd3-10f2-4bab-915e-9b88a9472a71</RowGuid>
  <UserId>5</UserId>
  <RoleIdDisplay>sample string 1</RoleIdDisplay>
  <UserIdDisplay>sample string 2</UserIdDisplay>
</UsrUser2RoleDisplay>