POST api/UserRoleMappings

Request Information

URI Parameters

None.

Body Parameters

UserRoleMapping
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

RollId

integer

None.

FarmId

integer

None.

ActiveStatus

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": 2,
  "RollId": 3,
  "FarmId": 4,
  "ActiveStatus": true
}

application/xml, text/xml

Sample:
<UserRoleMapping xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.Models">
  <ActiveStatus>true</ActiveStatus>
  <FarmId>4</FarmId>
  <Id>1</Id>
  <RollId>3</RollId>
  <UserId>2</UserId>
</UserRoleMapping>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

UserRoleMapping
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

integer

None.

RollId

integer

None.

FarmId

integer

None.

ActiveStatus

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": 2,
  "RollId": 3,
  "FarmId": 4,
  "ActiveStatus": true
}

application/xml, text/xml

Sample:
<UserRoleMapping xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryManagementAPI.Models">
  <ActiveStatus>true</ActiveStatus>
  <FarmId>4</FarmId>
  <Id>1</Id>
  <RollId>3</RollId>
  <UserId>2</UserId>
</UserRoleMapping>