POST api/ITILServiceRequest/AddITILServiceRequestSubmit

Request Information

URI Parameters

None.

Body Parameters

ITILServiceRequestDTO
NameDescriptionTypeAdditional information
ID

integer

None.

ServiceLev

string

String length: inclusive between 0 and 50

ServiceCategory

string

String length: inclusive between 0 and 100

ServiceDetailItem

string

String length: inclusive between 0 and 100

ServiceAccepter

string

String length: inclusive between 0 and 2000

ServiceAccepterHasName

string

String length: inclusive between 0 and 2000

ServiceOrgs

string

String length: inclusive between 0 and 2000

IsNeedApproval

boolean

None.

ContentTemplate

string

String length: inclusive between 0 and 4000

IsObsoleted

boolean

None.

CreateOn

date

None.

OrderBy

integer

None.

ServiceDesc

string

String length: inclusive between 0 and 500

AttURL

string

String length: inclusive between 0 and 500

IsReqBranDeptApproval

boolean

None.

IsReqDeptApproval

boolean

None.

IsAcceptBranDeptApproval

boolean

None.

IsReqRoomApproval

boolean

None.

IsAcceptDeptApproval

boolean

None.

IsAcceptRoomApproval

boolean

None.

IsBranBankReqDeptApproval

boolean

None.

IsBranBankAcceptDeptApproval

boolean

None.

AttName

string

String length: inclusive between 0 and 500

Request Formats

application/json, text/json

Sample:
{
  "ID": 1,
  "ServiceLev": "sample string 2",
  "ServiceCategory": "sample string 3",
  "ServiceDetailItem": "sample string 4",
  "ServiceAccepter": "sample string 5",
  "ServiceAccepterHasName": "sample string 6",
  "ServiceOrgs": "sample string 7",
  "IsNeedApproval": true,
  "ContentTemplate": "sample string 9",
  "IsObsoleted": true,
  "CreateOn": "2018-12-15T10:56:05.4970825+08:00",
  "OrderBy": 1,
  "ServiceDesc": "sample string 12",
  "AttURL": "sample string 13",
  "IsReqBranDeptApproval": true,
  "IsReqDeptApproval": true,
  "IsAcceptBranDeptApproval": true,
  "IsReqRoomApproval": true,
  "IsAcceptDeptApproval": true,
  "IsAcceptRoomApproval": true,
  "IsBranBankReqDeptApproval": true,
  "IsBranBankAcceptDeptApproval": true,
  "AttName": "sample string 22"
}

application/xml, text/xml

Sample:
<ITILServiceRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <AttName>sample string 22</AttName>
  <AttURL>sample string 13</AttURL>
  <ContentTemplate>sample string 9</ContentTemplate>
  <CreateOn>2018-12-15T10:56:05.4970825+08:00</CreateOn>
  <ID>1</ID>
  <IsAcceptBranDeptApproval>true</IsAcceptBranDeptApproval>
  <IsAcceptDeptApproval>true</IsAcceptDeptApproval>
  <IsAcceptRoomApproval>true</IsAcceptRoomApproval>
  <IsBranBankAcceptDeptApproval>true</IsBranBankAcceptDeptApproval>
  <IsBranBankReqDeptApproval>true</IsBranBankReqDeptApproval>
  <IsNeedApproval>true</IsNeedApproval>
  <IsObsoleted>true</IsObsoleted>
  <IsReqBranDeptApproval>true</IsReqBranDeptApproval>
  <IsReqDeptApproval>true</IsReqDeptApproval>
  <IsReqRoomApproval>true</IsReqRoomApproval>
  <OrderBy>1</OrderBy>
  <ServiceAccepter>sample string 5</ServiceAccepter>
  <ServiceAccepterHasName>sample string 6</ServiceAccepterHasName>
  <ServiceCategory>sample string 3</ServiceCategory>
  <ServiceDesc>sample string 12</ServiceDesc>
  <ServiceDetailItem>sample string 4</ServiceDetailItem>
  <ServiceLev>sample string 2</ServiceLev>
  <ServiceOrgs>sample string 7</ServiceOrgs>
</ITILServiceRequestDTO>

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

Response Information

Resource Description

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>