POST api/DeviceV2/SetLocation
设置设备坐标位置
Request Information
URI Parameters
None.
Body Parameters
M_SetLocation| Name | Description | Type | Additional information |
|---|---|---|---|
| Lon |
经度 |
string |
Required |
| Lat |
纬度 |
string |
Required |
| NewDeviceName |
新设备名称 |
string |
None. |
| SN |
序列号 |
integer |
Required |
Request Formats
application/json, text/json
Sample:
{
"Lon": "sample string 1",
"Lat": "sample string 2",
"NewDeviceName": "sample string 3",
"SN": 4
}
application/xml, text/xml
Sample:
<M_SetLocation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.DP.Models"> <SN>4</SN> <Lat>sample string 2</Lat> <Lon>sample string 1</Lon> <NewDeviceName>sample string 3</NewDeviceName> </M_SetLocation>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
M_Response| Name | Description | Type | Additional information |
|---|---|---|---|
| Contant |
内容,包含返回所需要的类 |
Object |
Required |
| Status |
状态 |
integer |
Required |
| Msg |
信息 |
string |
Required |
| Num |
数值,数据变动条数或增加时返回的ID |
integer |
Required |
Response Formats
application/json, text/json
Sample:
{
"Contant": {},
"Status": 2,
"Msg": "sample string 3",
"Num": 4
}
application/xml, text/xml
Sample:
<M_Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.DP.Models"> <Msg>sample string 3</Msg> <Num>4</Num> <Status>2</Status> <Contant /> </M_Response>