POST API/Roles/RolesRight

Request Information

URI Parameters

None.

Body Parameters

RolesandRight
NameDescriptionTypeAdditional information
RolesRig

Collection of RoleRight

None.

Request Formats

application/json, text/json

Sample:
{
  "RolesRig": [
    {
      "Select": true,
      "ModuleName": "sample string 2",
      "SubModuleName": "sample string 3",
      "ChildSubModuleName": "sample string 4",
      "ModuleId": 5,
      "SubModuleId": 6,
      "ChildSubModuleId": 7,
      "View": true,
      "Edit": true,
      "Delete": true,
      "RRId": 11,
      "RoleId": 12,
      "UserId": 13
    },
    {
      "Select": true,
      "ModuleName": "sample string 2",
      "SubModuleName": "sample string 3",
      "ChildSubModuleName": "sample string 4",
      "ModuleId": 5,
      "SubModuleId": 6,
      "ChildSubModuleId": 7,
      "View": true,
      "Edit": true,
      "Delete": true,
      "RRId": 11,
      "RoleId": 12,
      "UserId": 13
    }
  ]
}

application/xml, text/xml

Sample:
<RolesandRight xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MobidentAPI.Models">
  <RolesRig>
    <RoleRight>
      <ChildSubModuleId>7</ChildSubModuleId>
      <ChildSubModuleName>sample string 4</ChildSubModuleName>
      <Delete>true</Delete>
      <Edit>true</Edit>
      <ModuleId>5</ModuleId>
      <ModuleName>sample string 2</ModuleName>
      <RRId>11</RRId>
      <RoleId>12</RoleId>
      <Select>true</Select>
      <SubModuleId>6</SubModuleId>
      <SubModuleName>sample string 3</SubModuleName>
      <UserId>13</UserId>
      <View>true</View>
    </RoleRight>
    <RoleRight>
      <ChildSubModuleId>7</ChildSubModuleId>
      <ChildSubModuleName>sample string 4</ChildSubModuleName>
      <Delete>true</Delete>
      <Edit>true</Edit>
      <ModuleId>5</ModuleId>
      <ModuleName>sample string 2</ModuleName>
      <RRId>11</RRId>
      <RoleId>12</RoleId>
      <Select>true</Select>
      <SubModuleId>6</SubModuleId>
      <SubModuleName>sample string 3</SubModuleName>
      <UserId>13</UserId>
      <View>true</View>
    </RoleRight>
  </RolesRig>
</RolesandRight>

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.