POST api/InsertStateTime
Request Information
URI Parameters
None.
Body Parameters
StateTimeModelReq| Name | Description | Type | Additional information |
|---|---|---|---|
| appId | string |
None. |
|
| appName | string |
None. |
|
| deviceId | string |
None. |
|
| mobile | string |
None. |
|
| lst | Collection of StateModel |
None. |
Request Formats
application/json, text/json
Sample:
{
"appId": "sample string 1",
"appName": "sample string 2",
"deviceId": "sample string 3",
"mobile": "sample string 4",
"lst": [
{
"state": "sample string 1",
"time": "sample string 2",
"name": "sample string 3"
},
{
"state": "sample string 1",
"time": "sample string 2",
"name": "sample string 3"
}
]
}
application/xml, text/xml
Sample:
<StateTimeModelReq xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryExpAPI.Models">
<appId>sample string 1</appId>
<appName>sample string 2</appName>
<deviceId>sample string 3</deviceId>
<lst>
<StateModel>
<name>sample string 3</name>
<state>sample string 1</state>
<time>sample string 2</time>
</StateModel>
<StateModel>
<name>sample string 3</name>
<state>sample string 1</state>
<time>sample string 2</time>
</StateModel>
</lst>
<mobile>sample string 4</mobile>
</StateTimeModelReq>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ErrorRes| Name | Description | Type | Additional information |
|---|---|---|---|
| errCode | string |
None. |
|
| errDesc | string |
None. |
|
| errFlag | string |
None. |
|
| token | string |
None. |
|
| recordId | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"errCode": "sample string 1",
"errDesc": "sample string 2",
"errFlag": "sample string 3",
"token": "sample string 4",
"recordId": "sample string 5"
}
application/xml, text/xml
Sample:
<ErrorRes xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PoultryExpAPI.Models"> <errCode>sample string 1</errCode> <errDesc>sample string 2</errDesc> <errFlag>sample string 3</errFlag> <recordId>sample string 5</recordId> <token>sample string 4</token> </ErrorRes>