PATCH api/customers/{customerId}/contracts/{contractNo}/gateways/{gatewayAssetId}/smartcharge/{deviceAssetId}
Update one device's charging information. Creates new charging information if it does not exist.
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
customerId |
The customer identifier. |
integer |
Required |
contractNo |
The contract no. |
integer |
Required |
gatewayAssetId |
The gateway asset identifier. |
integer |
Required |
deviceAssetId |
The device asset identifier. |
integer |
Required |
Body Parameters
The charge information.
EvChargingInfoName | Description | Type | Additional information |
---|---|---|---|
RowKey | string |
None. |
|
BatteryLevel | decimal number |
None. |
|
FullyChargedBy | date |
None. |
|
Credentials | Object |
None. |
Request Formats
application/json, text/json
Sample:
{ "RowKey": "sample string 1", "BatteryLevel": 1.1, "FullyChargedBy": "2025-05-19T19:35:58.0153903+00:00", "Credentials": {} }
text/html
Sample:
{"RowKey":"sample string 1","BatteryLevel":1.1,"FullyChargedBy":"2025-05-19T19:35:58.0153903+00:00","Credentials":{}}
Response Information
Resource Description
On success, returns the updated entity object
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.