POST api/ITILPushNotifications/EditITILPushNotificationsSubmit

Request Information

URI Parameters

None.

Body Parameters

ITILPushNotificationsDTO
NameDescriptionTypeAdditional information
Id

integer

None.

Title

string

None.

Context

string

None.

StaffID

integer

None.

Type

integer

None.

IsRead

boolean

None.

IsPush

boolean

None.

ReadTime

date

None.

PushTime

date

None.

CreateTime

date

None.

ModifyTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "Title": "sample string 2",
  "Context": "sample string 3",
  "StaffID": 4,
  "Type": 1,
  "IsRead": true,
  "IsPush": true,
  "ReadTime": "2019-03-24T19:23:09.9806334+08:00",
  "PushTime": "2019-03-24T19:23:09.9806334+08:00",
  "CreateTime": "2019-03-24T19:23:09.9806334+08:00",
  "ModifyTime": "2019-03-24T19:23:09.9806334+08:00"
}

application/xml, text/xml

Sample:
<ITILPushNotificationsDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DTO">
  <Context>sample string 3</Context>
  <CreateTime>2019-03-24T19:23:09.9806334+08:00</CreateTime>
  <Id>1</Id>
  <IsPush>true</IsPush>
  <IsRead>true</IsRead>
  <ModifyTime>2019-03-24T19:23:09.9806334+08:00</ModifyTime>
  <PushTime>2019-03-24T19:23:09.9806334+08:00</PushTime>
  <ReadTime>2019-03-24T19:23:09.9806334+08:00</ReadTime>
  <StaffID>4</StaffID>
  <Title>sample string 2</Title>
  <Type>1</Type>
</ITILPushNotificationsDTO>

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

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>