POST jxc_api/RolePermission/SaveRole/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

Body Parameters

Collection of PermissionModuleSetJson
NameDescriptionTypeAdditional information
Module

integer

None.

CtrlAll

boolean

None.

PageSets

Collection of PermissionPageSetJson

None.

ShowMoney

boolean

None.

OwnShowMoneyProperty

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "Module": 1,
    "CtrlAll": true,
    "PageSets": [
      {
        "PageText": "sample string 1",
        "IsReport": true,
        "PermissionSet": "sample string 3"
      },
      {
        "PageText": "sample string 1",
        "IsReport": true,
        "PermissionSet": "sample string 3"
      }
    ],
    "ShowMoney": true,
    "OwnShowMoneyProperty": true
  },
  {
    "Module": 1,
    "CtrlAll": true,
    "PageSets": [
      {
        "PageText": "sample string 1",
        "IsReport": true,
        "PermissionSet": "sample string 3"
      },
      {
        "PageText": "sample string 1",
        "IsReport": true,
        "PermissionSet": "sample string 3"
      }
    ],
    "ShowMoney": true,
    "OwnShowMoneyProperty": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfPermissionModuleSetJson xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.WebApi">
  <PermissionModuleSetJson>
    <_x003C_CtrlAll_x003E_k__BackingField>true</_x003C_CtrlAll_x003E_k__BackingField>
    <_x003C_Module_x003E_k__BackingField>1</_x003C_Module_x003E_k__BackingField>
    <_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
    <_x003C_PageSets_x003E_k__BackingField>
      <PermissionPageSetJson>
        <_x003C_IsReport_x003E_k__BackingField>true</_x003C_IsReport_x003E_k__BackingField>
        <_x003C_PageText_x003E_k__BackingField>sample string 1</_x003C_PageText_x003E_k__BackingField>
        <_x003C_PermissionSet_x003E_k__BackingField>sample string 3</_x003C_PermissionSet_x003E_k__BackingField>
      </PermissionPageSetJson>
      <PermissionPageSetJson>
        <_x003C_IsReport_x003E_k__BackingField>true</_x003C_IsReport_x003E_k__BackingField>
        <_x003C_PageText_x003E_k__BackingField>sample string 1</_x003C_PageText_x003E_k__BackingField>
        <_x003C_PermissionSet_x003E_k__BackingField>sample string 3</_x003C_PermissionSet_x003E_k__BackingField>
      </PermissionPageSetJson>
    </_x003C_PageSets_x003E_k__BackingField>
    <_x003C_ShowMoney_x003E_k__BackingField>true</_x003C_ShowMoney_x003E_k__BackingField>
  </PermissionModuleSetJson>
  <PermissionModuleSetJson>
    <_x003C_CtrlAll_x003E_k__BackingField>true</_x003C_CtrlAll_x003E_k__BackingField>
    <_x003C_Module_x003E_k__BackingField>1</_x003C_Module_x003E_k__BackingField>
    <_x003C_OwnShowMoneyProperty_x003E_k__BackingField>true</_x003C_OwnShowMoneyProperty_x003E_k__BackingField>
    <_x003C_PageSets_x003E_k__BackingField>
      <PermissionPageSetJson>
        <_x003C_IsReport_x003E_k__BackingField>true</_x003C_IsReport_x003E_k__BackingField>
        <_x003C_PageText_x003E_k__BackingField>sample string 1</_x003C_PageText_x003E_k__BackingField>
        <_x003C_PermissionSet_x003E_k__BackingField>sample string 3</_x003C_PermissionSet_x003E_k__BackingField>
      </PermissionPageSetJson>
      <PermissionPageSetJson>
        <_x003C_IsReport_x003E_k__BackingField>true</_x003C_IsReport_x003E_k__BackingField>
        <_x003C_PageText_x003E_k__BackingField>sample string 1</_x003C_PageText_x003E_k__BackingField>
        <_x003C_PermissionSet_x003E_k__BackingField>sample string 3</_x003C_PermissionSet_x003E_k__BackingField>
      </PermissionPageSetJson>
    </_x003C_PageSets_x003E_k__BackingField>
    <_x003C_ShowMoney_x003E_k__BackingField>true</_x003C_ShowMoney_x003E_k__BackingField>
  </PermissionModuleSetJson>
</ArrayOfPermissionModuleSetJson>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

MessageModel
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Data

Object

None.

StatusCode

StatusCode

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Data": {},
  "StatusCode": 100
}

application/xml, text/xml

Sample:
<MessageModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LemonScm.Model">
  <_x003C_Data_x003E_k__BackingField />
  <_x003C_Message_x003E_k__BackingField>sample string 2</_x003C_Message_x003E_k__BackingField>
  <_x003C_StatusCode_x003E_k__BackingField>CONTINUE</_x003C_StatusCode_x003E_k__BackingField>
  <_x003C_Success_x003E_k__BackingField>true</_x003C_Success_x003E_k__BackingField>
</MessageModel>