POST api/SaveDeviceScheduler
Request Information
URI Parameters
None.
Body Parameters
DeviceSchedulerRequest_VM| Name | Description | Type | Additional information |
|---|---|---|---|
| ClientID | integer |
None. |
|
| FarmID | integer |
None. |
|
| DeviceType | string |
None. |
|
| MasterSerialNo | string |
None. |
|
| MotorSerialNo | string |
None. |
|
| Scheduler | Collection of Scheduler_VM |
None. |
Request Formats
application/json, text/json
Sample:
{
"ClientID": 1,
"FarmID": 2,
"DeviceType": "sample string 3",
"MasterSerialNo": "sample string 4",
"MotorSerialNo": "sample string 5",
"Scheduler": [
{
"Time": "sample string 1",
"Duration": "sample string 2",
"Type": "sample string 3",
"IsHold": true
},
{
"Time": "sample string 1",
"Duration": "sample string 2",
"Type": "sample string 3",
"IsHold": true
}
]
}
application/xml, text/xml
Sample:
<DeviceSchedulerRequest_VM xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MyFarm_WebAPI.ViewModel">
<ClientID>1</ClientID>
<DeviceType>sample string 3</DeviceType>
<FarmID>2</FarmID>
<MasterSerialNo>sample string 4</MasterSerialNo>
<MotorSerialNo>sample string 5</MotorSerialNo>
<Scheduler>
<Scheduler_VM>
<Duration>sample string 2</Duration>
<IsHold>true</IsHold>
<Time>sample string 1</Time>
<Type>sample string 3</Type>
</Scheduler_VM>
<Scheduler_VM>
<Duration>sample string 2</Duration>
<IsHold>true</IsHold>
<Time>sample string 1</Time>
<Type>sample string 3</Type>
</Scheduler_VM>
</Scheduler>
</DeviceSchedulerRequest_VM>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.