POST api/AppHomeWork/UpdateHomework
Request Information
URI Parameters
None.
Body Parameters
updateHomeworkData| Name | Description | Type | Additional information |
|---|---|---|---|
| id | integer |
None. |
|
| classid | integer |
None. |
|
| sectionid | integer |
None. |
|
| teacherid | integer |
None. |
|
| date | date |
None. |
|
| work | string |
None. |
|
| msgtype | string |
None. |
|
| content | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"id": 1,
"classid": 2,
"sectionid": 3,
"teacherid": 4,
"date": "2026-05-22T12:17:37.4174603+00:00",
"work": "sample string 6",
"msgtype": "sample string 7",
"content": "sample string 8"
}
text/html
Sample:
{"id":1,"classid":2,"sectionid":3,"teacherid":4,"date":"2026-05-22T12:17:37.4174603+00:00","work":"sample string 6","msgtype":"sample string 7","content":"sample string 8"}
application/xml, text/xml
Sample:
<updateHomeworkData xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smsapi.Models"> <classid>2</classid> <content>sample string 8</content> <date>2026-05-22T12:17:37.4174603+00:00</date> <id>1</id> <msgtype>sample string 7</msgtype> <sectionid>3</sectionid> <teacherid>4</teacherid> <work>sample string 6</work> </updateHomeworkData>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| resultcode | integer |
None. |
|
| resultstring | string |
None. |
|
| token | string |
None. |
|
| schoolid | integer |
None. |
|
| sessionid | integer |
None. |
|
| userid | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"resultcode": 1,
"resultstring": "sample string 2",
"token": "sample string 3",
"schoolid": 4,
"sessionid": 5,
"userid": 6
}
text/html
Sample:
{"resultcode":1,"resultstring":"sample string 2","token":"sample string 3","schoolid":4,"sessionid":5,"userid":6}
application/xml, text/xml
Sample:
<ResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/smsapi.Models"> <resultcode>1</resultcode> <resultstring>sample string 2</resultstring> <schoolid>4</schoolid> <sessionid>5</sessionid> <token>sample string 3</token> <userid>6</userid> </ResultModel>