POST api/Login/cpisApi_AddRoleSyscode?token={token}&OprID={OprID}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
token

string

Required

OprID

string

Required

Body Parameters

APIRoleCode
NameDescriptionTypeAdditional information
Params

Collection of RoleCode

None.

Request Formats

application/json, text/json

Sample:
{
  "Params": [
    {
      "SJLX": "sample string 1",
      "roleID": "sample string 2",
      "sysCode": "sample string 3"
    },
    {
      "SJLX": "sample string 1",
      "roleID": "sample string 2",
      "sysCode": "sample string 3"
    }
  ]
}

application/xml, text/xml

Sample:
<APIRoleCode xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Model.CpisAPI">
  <Params>
    <RoleCode>
      <SJLX>sample string 1</SJLX>
      <roleID>sample string 2</roleID>
      <sysCode>sample string 3</sysCode>
    </RoleCode>
    <RoleCode>
      <SJLX>sample string 1</SJLX>
      <roleID>sample string 2</roleID>
      <sysCode>sample string 3</sysCode>
    </RoleCode>
  </Params>
</APIRoleCode>

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

Response Information

Resource Description

JsonResult
NameDescriptionTypeAdditional information
code

string

None.

date

string

None.

result

Object

None.

count

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "code": "sample string 1",
  "date": "sample string 2",
  "result": {},
  "count": 4,
  "message": "sample string 5"
}

application/xml, text/xml

Sample:
<JsonResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Common">
  <code>sample string 1</code>
  <count>4</count>
  <date>sample string 2</date>
  <message>sample string 5</message>
  <result />
</JsonResult>