POST api/Notification/Add

Request Information

URI Parameters

None.

Body Parameters

NotificationDto
NameDescriptionTypeAdditional information
Title

string

None.

Content

string

None.

CreateTime

date

None.

NotificationType

NotificationType

None.

BeginTime

date

None.

EndTime

date

None.

Request Formats

application/json, text/json

Sample:
{
  "Title": "sample string 1",
  "Content": "sample string 2",
  "CreateTime": "2026-08-11 21:22:29",
  "NotificationType": "maintenance",
  "BeginTime": "2026-08-11 21:22:29",
  "EndTime": "2026-08-11 21:22:29"
}

application/xml, text/xml

Sample:
<NotificationDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MS.Document.Dto.Notification">
  <BeginTime>2026-08-11T21:22:29.9183501+08:00</BeginTime>
  <Content>sample string 2</Content>
  <CreateTime>2026-08-11T21:22:29.9183501+08:00</CreateTime>
  <EndTime>2026-08-11T21:22:29.9183501+08:00</EndTime>
  <NotificationType>maintenance</NotificationType>
  <Title>sample string 1</Title>
</NotificationDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseResultOfBoolean
NameDescriptionTypeAdditional information
Status

boolean

None.

ErrorCode

string

None.

ErrorMessage

string

None.

Data

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": true,
  "ErrorCode": "sample string 2",
  "ErrorMessage": "sample string 3",
  "Data": true
}

application/xml, text/xml

Sample:
<ResponseResultOfboolean xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Willv.Common">
  <Data>true</Data>
  <ErrorCode>sample string 2</ErrorCode>
  <ErrorMessage>sample string 3</ErrorMessage>
  <Status>true</Status>
</ResponseResultOfboolean>