POST api/OrgPosition/AddOrgPositionSubmit

添加一条XX信息

Request Information

URI Parameters

None.

Body Parameters

OrgPositionDTO
NameDescriptionTypeAdditional information
PositionID

integer

None.

PositionCode

string

String length: inclusive between 0 and 64

PositionName

string

String length: inclusive between 0 and 128

PositionRemark

string

String length: inclusive between 0 and 200

SysCode

string

String length: inclusive between 0 and 100

IsObsoleted

boolean

None.

CreatedBy

integer

None.

CreatedOn

date

None.

PostionType

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "PositionID": 1,
  "PositionCode": "sample string 2",
  "PositionName": "sample string 3",
  "PositionRemark": "sample string 4",
  "SysCode": "sample string 5",
  "IsObsoleted": true,
  "CreatedBy": 7,
  "CreatedOn": "2018-12-12T03:08:20.4501814+08:00",
  "PostionType": 9
}

application/xml, text/xml

Sample:
<OrgPositionDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <CreatedBy>7</CreatedBy>
  <CreatedOn>2018-12-12T03:08:20.4501814+08:00</CreatedOn>
  <IsObsoleted>true</IsObsoleted>
  <PositionCode>sample string 2</PositionCode>
  <PositionID>1</PositionID>
  <PositionName>sample string 3</PositionName>
  <PositionRemark>sample string 4</PositionRemark>
  <PostionType>9</PostionType>
  <SysCode>sample string 5</SysCode>
</OrgPositionDTO>

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

Response Information

Resource Description

添加一条XX信息

StatusDTO
NameDescriptionTypeAdditional information
Status

状态

integer

None.

StatusMessage

消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": 1,
  "StatusMessage": "sample string 1"
}

application/xml, text/xml

Sample:
<StatusDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Status>1</Status>
  <StatusMessage>sample string 1</StatusMessage>
</StatusDTO>