POST api/UserRole/PageRoleRights

Request Information

URI Parameters

None.

Body Parameters

RoleRights
NamedescriptionTypeAdditional information
Role

mlUserRole

None.

MenuMap

Collection of mlMenuMap

None.

Request Formats

application/json, text/json

Sample:
{
  "MenuMap": [
    {
      "IsAllowAdd": true,
      "IsAllowDelete": true,
      "IsAllowEdit": true,
      "IsAllowView": true,
      "MenuMapSysId": 1,
      "MenuSysId": 2,
      "ParentMenuSysId": 4,
      "RoleSysId": 3
    },
    {
      "IsAllowAdd": true,
      "IsAllowDelete": true,
      "IsAllowEdit": true,
      "IsAllowView": true,
      "MenuMapSysId": 1,
      "MenuSysId": 2,
      "ParentMenuSysId": 4,
      "RoleSysId": 3
    }
  ],
  "Role": {
    "CreatedBy": "sample string 4",
    "CreatedDate": "sample string 5",
    "IsDeleted": true,
    "UpdatedBy": "sample string 6",
    "UpdatedDate": "sample string 7",
    "Locked": {
      "IsLocked": true,
      "LockedBy": "sample string 1",
      "LockedDate": "sample string 2",
      "LockedReason": "sample string 3"
    },
    "RoleID": "sample string 2",
    "RoleName": "sample string 3",
    "RoleSysId": 1
  }
}

application/xml, text/xml

Sample:
<RoleRights xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Admin">
  <MenuMap>
    <mlMenuMap>
      <IsAllowAdd>true</IsAllowAdd>
      <IsAllowDelete>true</IsAllowDelete>
      <IsAllowEdit>true</IsAllowEdit>
      <IsAllowView>true</IsAllowView>
      <MenuMapSysId>1</MenuMapSysId>
      <MenuSysId>2</MenuSysId>
      <ParentMenuSysId>4</ParentMenuSysId>
      <RoleSysId>3</RoleSysId>
    </mlMenuMap>
    <mlMenuMap>
      <IsAllowAdd>true</IsAllowAdd>
      <IsAllowDelete>true</IsAllowDelete>
      <IsAllowEdit>true</IsAllowEdit>
      <IsAllowView>true</IsAllowView>
      <MenuMapSysId>1</MenuMapSysId>
      <MenuSysId>2</MenuSysId>
      <ParentMenuSysId>4</ParentMenuSysId>
      <RoleSysId>3</RoleSysId>
    </mlMenuMap>
  </MenuMap>
  <Role>
    <CreatedBy xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">sample string 4</CreatedBy>
    <CreatedDate xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">sample string 5</CreatedDate>
    <IsDeleted xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">true</IsDeleted>
    <UpdatedBy xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">sample string 6</UpdatedBy>
    <UpdatedDate xmlns="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">sample string 7</UpdatedDate>
    <Locked xmlns:d3p1="http://schemas.datacontract.org/2004/07/Systemic.MLM.Model.Common">
      <d3p1:IsLocked>true</d3p1:IsLocked>
      <d3p1:LockedBy>sample string 1</d3p1:LockedBy>
      <d3p1:LockedDate>sample string 2</d3p1:LockedDate>
      <d3p1:LockedReason>sample string 3</d3p1:LockedReason>
    </Locked>
    <RoleID>sample string 2</RoleID>
    <RoleName>sample string 3</RoleName>
    <RoleSysId>1</RoleSysId>
  </Role>
</RoleRights>

response Information

Resource description

ApiResponse
NamedescriptionTypeAdditional information
response

string

Required

failure

MlError

None.

success

MlSuccess

None.