POST api/AppMsg/NotificationSync

Request Information

URI Parameters

None.

Body Parameters

NotificationSyncRequest
NameDescriptionTypeAdditional information
schoolid

integer

None.

stuid

Collection of integer

None.

lastMid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "schoolid": 1,
  "stuid": [
    1,
    2
  ],
  "lastMid": 2
}

text/html

Sample:
{"schoolid":1,"stuid":[1,2],"lastMid":2}

application/xml, text/xml

Sample:
<NotificationSyncRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/">
  <lastMid>2</lastMid>
  <schoolid>1</schoolid>
  <stuid xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:long>1</d2p1:long>
    <d2p1:long>2</d2p1:long>
  </stuid>
</NotificationSyncRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ApiResponseListOfNotificationSyncModel
NameDescriptionTypeAdditional information
resultcode

integer

None.

resultstring

string

None.

Data

Collection of NotificationSyncModel

None.

Response Formats

application/json, text/json

Sample:
{
  "resultcode": 1,
  "resultstring": "sample string 2",
  "Data": [
    {
      "mid": 1,
      "stuid": 2,
      "studentName": "sample string 3",
      "mdate": "2026-07-17T13:40:34.2608451+00:00",
      "msgtype": "sample string 4",
      "content": "sample string 5",
      "isviewed": true,
      "isdownloaded": true
    },
    {
      "mid": 1,
      "stuid": 2,
      "studentName": "sample string 3",
      "mdate": "2026-07-17T13:40:34.2608451+00:00",
      "msgtype": "sample string 4",
      "content": "sample string 5",
      "isviewed": true,
      "isdownloaded": true
    }
  ]
}

text/html

Sample:
{"resultcode":1,"resultstring":"sample string 2","Data":[{"mid":1,"stuid":2,"studentName":"sample string 3","mdate":"2026-07-17T13:40:34.2608451+00:00","msgtype":"sample string 4","content":"sample string 5","isviewed":true,"isdownloaded":true},{"mid":1,"stuid":2,"studentName":"sample string 3","mdate":"2026-07-17T13:40:34.2608451+00:00","msgtype":"sample string 4","content":"sample string 5","isviewed":true,"isdownloaded":true}]}

application/xml, text/xml

Sample:
<ApiResponseListOfNotificationSyncModelMTRdQN6P xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smsapi.Models">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/">
    <d2p1:NotificationSyncModel>
      <d2p1:content>sample string 5</d2p1:content>
      <d2p1:isdownloaded>true</d2p1:isdownloaded>
      <d2p1:isviewed>true</d2p1:isviewed>
      <d2p1:mdate>2026-07-17T13:40:34.2608451+00:00</d2p1:mdate>
      <d2p1:mid>1</d2p1:mid>
      <d2p1:msgtype>sample string 4</d2p1:msgtype>
      <d2p1:studentName>sample string 3</d2p1:studentName>
      <d2p1:stuid>2</d2p1:stuid>
    </d2p1:NotificationSyncModel>
    <d2p1:NotificationSyncModel>
      <d2p1:content>sample string 5</d2p1:content>
      <d2p1:isdownloaded>true</d2p1:isdownloaded>
      <d2p1:isviewed>true</d2p1:isviewed>
      <d2p1:mdate>2026-07-17T13:40:34.2608451+00:00</d2p1:mdate>
      <d2p1:mid>1</d2p1:mid>
      <d2p1:msgtype>sample string 4</d2p1:msgtype>
      <d2p1:studentName>sample string 3</d2p1:studentName>
      <d2p1:stuid>2</d2p1:stuid>
    </d2p1:NotificationSyncModel>
  </Data>
  <resultcode>1</resultcode>
  <resultstring>sample string 2</resultstring>
</ApiResponseListOfNotificationSyncModelMTRdQN6P>