POST api/UserRole/AddOrUpdate

Request Information

URI Parameters

None.

Body Parameters

AuthLinkUserRoleModel
NameDescriptionTypeAdditional information
Id

integer

None.

UserId

string

None.

RoleId

integer

None.

IsActive

boolean

None.

CreatedDate

date

None.

CreatedBy

integer

None.

ModifiedDate

date

None.

ModifiedBy

integer

None.

IsDeleted

boolean

None.

RoleName

string

None.

UserName

string

None.

UserEmail

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "UserId": "sample string 2",
  "RoleId": 3,
  "IsActive": true,
  "CreatedDate": "2019-10-16T23:08:23.4489025+05:00",
  "CreatedBy": 1,
  "ModifiedDate": "2019-10-16T23:08:23.4489025+05:00",
  "ModifiedBy": 1,
  "IsDeleted": true,
  "RoleName": "sample string 7",
  "UserName": "sample string 8",
  "UserEmail": "sample string 9"
}

application/xml, text/xml

Sample:
<AuthLinkUserRoleModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/GreenTech.Models.UserRoles">
  <CreatedBy>1</CreatedBy>
  <CreatedDate>2019-10-16T23:08:23.4489025+05:00</CreatedDate>
  <Id>1</Id>
  <IsActive>true</IsActive>
  <IsDeleted>true</IsDeleted>
  <ModifiedBy>1</ModifiedBy>
  <ModifiedDate>2019-10-16T23:08:23.4489025+05:00</ModifiedDate>
  <RoleId>3</RoleId>
  <RoleName>sample string 7</RoleName>
  <UserEmail>sample string 9</UserEmail>
  <UserId>sample string 2</UserId>
  <UserName>sample string 8</UserName>
</AuthLinkUserRoleModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.