POST api/Notification/Add

Request Information

URI Parameters

None.

Body Parameters

Notification
NameDescriptionTypeAdditional information
ID

integer

None.

Contents

string

None.

Stop

boolean

None.

CreateDate

date

None.

CreateByUser

string

None.

UpdateDate

date

None.

UpdateByUser

string

None.

Menu

string

None.

Users

string

None.

CourseID

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "contents": "sample string 2",
  "stop": true,
  "createDate": "2024-12-04T12:57:57.2015644+07:00",
  "createByUser": "sample string 5",
  "updateDate": "2024-12-04T12:57:57.2015644+07:00",
  "updateByUser": "sample string 6",
  "menu": "sample string 7",
  "users": "sample string 8",
  "courseID": 1
}

text/html

Sample:
{"id":1,"contents":"sample string 2","stop":true,"createDate":"2024-12-04T12:57:57.2015644+07:00","createByUser":"sample string 5","updateDate":"2024-12-04T12:57:57.2015644+07:00","updateByUser":"sample string 6","menu":"sample string 7","users":"sample string 8","courseID":1}

application/xml, text/xml

Sample:
<Notification xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/App.Model.Model">
  <Contents>sample string 2</Contents>
  <CourseID>1</CourseID>
  <CreateByUser>sample string 5</CreateByUser>
  <CreateDate>2024-12-04T12:57:57.2015644+07:00</CreateDate>
  <ID>1</ID>
  <Menu>sample string 7</Menu>
  <Stop>true</Stop>
  <UpdateByUser>sample string 6</UpdateByUser>
  <UpdateDate>2024-12-04T12:57:57.2015644+07:00</UpdateDate>
  <Users>sample string 8</Users>
</Notification>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.