POST api/roleAndPrivilege/assignrole

No documentation available.

Request Information

Parameters

NameDescriptionAdditional information
entity
No documentation available.

Define this parameter in the request body.

Request body formats

application/json, text/json

Sample:
{
  "sysUsrRoleId": "651270e8-c3cb-4976-a8d5-8bbe5b06e535",
  "delFlg": true,
  "createdOn": "2020-09-29T07:34:23.1788854+00:00",
  "createdBy": "86dc0a8f-8e52-46ad-8227-1c9be670175e",
  "updatedOn": "2020-09-29T07:34:23.1788854+00:00",
  "updatedBy": "129f478c-429c-40b7-bbff-4b7f8675d879",
  "userId": "230f0944-dae0-48c5-bfe4-de5429c071b6",
  "companyId": 7,
  "roleCode": "sample string 8",
  "staffId": "da6e8b67-aab2-42fc-b28e-d5aef731de75",
  "status": "sample string 10",
  "message": "sample string 11"
}

application/xml, text/xml

Sample:
<SystemUserRolesModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IncodeCompanyService.Utility.PresenterModel">
  <companyId>7</companyId>
  <createdBy>86dc0a8f-8e52-46ad-8227-1c9be670175e</createdBy>
  <createdOn>2020-09-29T07:34:23.1788854+00:00</createdOn>
  <delFlg>true</delFlg>
  <message>sample string 11</message>
  <roleCode>sample string 8</roleCode>
  <staffId>da6e8b67-aab2-42fc-b28e-d5aef731de75</staffId>
  <status>sample string 10</status>
  <sysUsrRoleId>651270e8-c3cb-4976-a8d5-8bbe5b06e535</sysUsrRoleId>
  <updatedBy>129f478c-429c-40b7-bbff-4b7f8675d879</updatedBy>
  <updatedOn>2020-09-29T07:34:23.1788854+00:00</updatedOn>
  <userId>230f0944-dae0-48c5-bfe4-de5429c071b6</userId>
</SystemUserRolesModel>

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 'SystemUserRolesModel'.