POST api/Device/UpdateDeviceState
修改设备的状态
Request Information
URI Parameters
None.
Body Parameters
DeviceDto| Name | Description | Type | Additional information |
|---|---|---|---|
| ParkId | globally unique identifier |
Required |
|
| ParkName | string |
None. |
|
| Lamppost | string |
None. |
|
| Remark | string |
None. |
|
| CarPointId | string |
None. |
|
| CarPointCode | string |
None. |
|
| Code | string |
Required String length: inclusive between 0 and 50 |
|
| Factory | string |
Required String length: inclusive between 0 and 50 |
|
| FactoryName | string |
None. |
|
| Mac | string |
String length: inclusive between 0 and 17 |
|
| Ip | string |
String length: inclusive between 0 and 36 |
|
| Port | integer |
None. |
|
| State | ParkDeviceType |
Required |
|
| TimeState | ParkDeviceTimeState |
None. |
|
| LastOrderTime | date |
None. |
|
| LastConnectionTime | date |
None. |
|
| TimeStateName | string |
None. |
|
| StateDescription | string |
None. |
|
| Enabled | boolean |
None. |
|
| Phone | string |
String length: inclusive between 0 and 36 |
|
| LastSendTime | date |
None. |
|
| UserName | string |
None. |
|
| Password | string |
String length: inclusive between 0 and 32 |
|
| CreationTime | date |
None. |
|
| CreatorId | globally unique identifier |
None. |
|
| LastModificationTime | date |
None. |
|
| LastModifierId | globally unique identifier |
None. |
|
| IsDeleted | boolean |
Required |
|
| Version | Collection of byte |
None. |
|
| DeviceCarPointDtoList | Collection of DeviceCarPointDto |
None. |
|
| ParkDtos | Collection of ParkDto |
None. |
|
| Id | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ParkId": "5f1d4dfc-aac2-4621-966c-165b161c3286",
"ParkName": "sample string 2",
"Lamppost": "sample string 3",
"Remark": "sample string 4",
"CarPointId": "sample string 5",
"CarPointCode": "sample string 6",
"Code": "sample string 7",
"Factory": "sample string 8",
"FactoryName": null,
"Mac": "sample string 10",
"Ip": "sample string 11",
"Port": 12,
"State": 0,
"TimeState": 0,
"LastOrderTime": "2026-01-29 15:01:52",
"LastConnectionTime": "2026-01-29 15:01:52",
"TimeStateName": "时间正常",
"StateDescription": "sample string 13",
"Enabled": true,
"Phone": "sample string 14",
"LastSendTime": "2026-01-29 15:01:52",
"UserName": "sample string 15",
"Password": "sample string 16",
"CreationTime": "2026-01-29 15:01:52",
"CreatorId": "ae6f04ea-be4c-4e2b-a218-482716669d36",
"LastModificationTime": "2026-01-29 15:01:52",
"LastModifierId": "2d57c70d-729e-4e74-8f33-3177a6e14d6f",
"IsDeleted": true,
"Version": "QEA=",
"DeviceCarPointDtoList": [
{
"DeviceId": "c8830bce-3cd0-48c7-aa8a-e76a1d8b5d97",
"CarPointId": "79438d14-873e-4b3a-9b9f-070975cff2c4",
"DeviceCode": "sample string 3",
"CarPointCode": "sample string 4",
"CurrentCar": 5,
"CreationTime": "2026-01-29 15:01:52",
"CreatorId": "360b2483-dc94-4ab8-9f52-925a11db1045",
"LastModificationTime": "2026-01-29 15:01:52",
"LastModifierId": "26655af5-accc-4f0d-bf49-d40573ed6f9d",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 7"
},
{
"DeviceId": "c8830bce-3cd0-48c7-aa8a-e76a1d8b5d97",
"CarPointId": "79438d14-873e-4b3a-9b9f-070975cff2c4",
"DeviceCode": "sample string 3",
"CarPointCode": "sample string 4",
"CurrentCar": 5,
"CreationTime": "2026-01-29 15:01:52",
"CreatorId": "360b2483-dc94-4ab8-9f52-925a11db1045",
"LastModificationTime": "2026-01-29 15:01:52",
"LastModifierId": "26655af5-accc-4f0d-bf49-d40573ed6f9d",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 7"
}
],
"ParkDtos": [
{
"AreaId": "f5cfb117-7425-4b7b-b07a-3d1b0c984d0b",
"StreetId": "69c6135e-c5ad-4856-a38a-8078d89d5af4",
"StreetName": "sample string 3",
"FeeStrategyId": "3e46065b-410a-4f4d-9fee-cae5dbc3a6c8",
"IsIntelligentTollCollection": true,
"IsBarrierGate": true,
"IsBarrierGateSinglePay": true,
"FeeStrategyName": "sample string 10",
"IsSupportMonth": true,
"IsSupportMonthName": "是",
"MonthFeeUseDefault": true,
"MonthFee": 13.0,
"MonthFee3": 14.0,
"MonthFee6": 15.0,
"MonthFee12": 16.0,
"EmployeeId": "941a4149-b6e4-4e06-96ae-77b6ee609247",
"EmployeeName": "sample string 18",
"Name": "sample string 19",
"CreationTime": "2026-01-29 15:01:52",
"CreatorId": "684de321-f4fd-4491-a910-0b3134364eaa",
"LastModificationTime": "2026-01-29 15:01:52",
"LastModifierId": "731e38d9-2e6d-4f2a-a9cc-10a1a1868c4c",
"IsDeleted": true,
"Version": "QEA=",
"StreetDtos": [
{
"AreaId": "ce5ba514-bad2-488d-a0f3-fd20b69f0dcf",
"AreaDtos": [
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
},
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
}
],
"AreaName": "sample string 2",
"Name": "sample string 3",
"CreationTime": "2026-01-29 15:01:52",
"CreatorId": "aca95cef-3f4c-429a-b36b-db79fcf90b32",
"LastModificationTime": "2026-01-29 15:01:52",
"LastModifierId": "968e042b-8a0d-4c84-a548-0026c8c09606",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
},
{
"AreaId": "ce5ba514-bad2-488d-a0f3-fd20b69f0dcf",
"AreaDtos": [
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
},
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
}
],
"AreaName": "sample string 2",
"Name": "sample string 3",
"CreationTime": "2026-01-29 15:01:52",
"CreatorId": "aca95cef-3f4c-429a-b36b-db79fcf90b32",
"LastModificationTime": "2026-01-29 15:01:52",
"LastModifierId": "968e042b-8a0d-4c84-a548-0026c8c09606",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
}
],
"Id": "sample string 21"
},
{
"AreaId": "f5cfb117-7425-4b7b-b07a-3d1b0c984d0b",
"StreetId": "69c6135e-c5ad-4856-a38a-8078d89d5af4",
"StreetName": "sample string 3",
"FeeStrategyId": "3e46065b-410a-4f4d-9fee-cae5dbc3a6c8",
"IsIntelligentTollCollection": true,
"IsBarrierGate": true,
"IsBarrierGateSinglePay": true,
"FeeStrategyName": "sample string 10",
"IsSupportMonth": true,
"IsSupportMonthName": "是",
"MonthFeeUseDefault": true,
"MonthFee": 13.0,
"MonthFee3": 14.0,
"MonthFee6": 15.0,
"MonthFee12": 16.0,
"EmployeeId": "941a4149-b6e4-4e06-96ae-77b6ee609247",
"EmployeeName": "sample string 18",
"Name": "sample string 19",
"CreationTime": "2026-01-29 15:01:52",
"CreatorId": "684de321-f4fd-4491-a910-0b3134364eaa",
"LastModificationTime": "2026-01-29 15:01:52",
"LastModifierId": "731e38d9-2e6d-4f2a-a9cc-10a1a1868c4c",
"IsDeleted": true,
"Version": "QEA=",
"StreetDtos": [
{
"AreaId": "ce5ba514-bad2-488d-a0f3-fd20b69f0dcf",
"AreaDtos": [
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
},
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
}
],
"AreaName": "sample string 2",
"Name": "sample string 3",
"CreationTime": "2026-01-29 15:01:52",
"CreatorId": "aca95cef-3f4c-429a-b36b-db79fcf90b32",
"LastModificationTime": "2026-01-29 15:01:52",
"LastModifierId": "968e042b-8a0d-4c84-a548-0026c8c09606",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
},
{
"AreaId": "ce5ba514-bad2-488d-a0f3-fd20b69f0dcf",
"AreaDtos": [
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
},
{
"Code": "sample string 1",
"Text": "sample string 2",
"PinYin": "sample string 3",
"FullPinYin": "sample string 4",
"Version": "QEA=",
"IsSelect": true,
"ParentId": "sample string 6",
"Path": "sample string 7",
"Level": 1,
"Enabled": true,
"SortId": 1,
"State": "sample string 9",
"Children": null,
"Id": "sample string 10"
}
],
"AreaName": "sample string 2",
"Name": "sample string 3",
"CreationTime": "2026-01-29 15:01:52",
"CreatorId": "aca95cef-3f4c-429a-b36b-db79fcf90b32",
"LastModificationTime": "2026-01-29 15:01:52",
"LastModifierId": "968e042b-8a0d-4c84-a548-0026c8c09606",
"IsDeleted": true,
"Version": "QEA=",
"Id": "sample string 5"
}
],
"Id": "sample string 21"
}
],
"Id": "sample string 18"
}
application/xml
Sample:
text/xml
Sample:
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ResultMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| status |
操作结果状态 |
MStatusCode |
None. |
| message |
操作结果消息 |
string |
None. |
| errors |
请求对象未通过验证的错误消息列表 |
Collection of ValidErrors |
None. |
| url |
操作成功后的跳转页面 |
string |
None. |
Response Formats
application/json, text/json
Sample:
{
"status": 0,
"message": "sample string 1",
"errors": [
{
"field": "sample string 1",
"errorMessages": [
"sample string 1",
"sample string 2"
]
},
{
"field": "sample string 1",
"errorMessages": [
"sample string 1",
"sample string 2"
]
}
],
"url": "sample string 2"
}
application/xml, text/xml
Sample:
<Result xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Applications.WebApi.Common">
<Status>Fail</Status>
<Message>sample string 1</Message>
<Url>sample string 2</Url>
<Errors>
<ValidErrors>
<_x003C_ErrorMessages_x003E_k__BackingField xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</_x003C_ErrorMessages_x003E_k__BackingField>
<_x003C_Field_x003E_k__BackingField>sample string 1</_x003C_Field_x003E_k__BackingField>
</ValidErrors>
<ValidErrors>
<_x003C_ErrorMessages_x003E_k__BackingField xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>sample string 1</d4p1:string>
<d4p1:string>sample string 2</d4p1:string>
</_x003C_ErrorMessages_x003E_k__BackingField>
<_x003C_Field_x003E_k__BackingField>sample string 1</_x003C_Field_x003E_k__BackingField>
</ValidErrors>
</Errors>
</Result>