POST api/customers/{customerId}/contracts/{contractNo}/gateways/{gatewayAssetId}/evchargingdevices/{deviceAssetId}
Create a device charging information entity.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerId | integer |
Required |
|
| contractNo | integer |
Required |
|
| gatewayAssetId | integer |
Required |
|
| deviceAssetId | integer |
Required |
Body Parameters
EvChargingInformationReq| Name | Description | Type | Additional information |
|---|---|---|---|
| ChargingMode | EvChargingModeEnumReq |
None. |
|
| SmartModeIsActive | boolean |
None. |
|
| CarInfoId | string |
None. |
|
| CarManufacturer | string |
None. |
|
| CarModel | string |
None. |
|
| CarGeneration | string |
None. |
|
| GrossBatterySize | decimal number |
None. |
|
| NetBatterySize | decimal number |
None. |
|
| BatteryLevel | decimal number |
None. |
|
| FullyChargedBy | date |
None. |
|
| CustomerId | string |
None. |
|
| ContractId | integer |
None. |
|
| GatewayAssetId | integer |
None. |
|
| DeviceAssetId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"ChargingMode": 0,
"SmartModeIsActive": true,
"CarInfoId": "sample string 1",
"CarManufacturer": "sample string 2",
"CarModel": "sample string 3",
"CarGeneration": "sample string 4",
"GrossBatterySize": 1.1,
"NetBatterySize": 1.1,
"BatteryLevel": 1.1,
"FullyChargedBy": "2025-12-26T02:50:53.9427973+00:00",
"CustomerId": "sample string 5",
"ContractId": 6,
"GatewayAssetId": 7,
"DeviceAssetId": 8
}
text/html
Sample:
{"ChargingMode":0,"SmartModeIsActive":true,"CarInfoId":"sample string 1","CarManufacturer":"sample string 2","CarModel":"sample string 3","CarGeneration":"sample string 4","GrossBatterySize":1.1,"NetBatterySize":1.1,"BatteryLevel":1.1,"FullyChargedBy":"2025-12-26T02:50:53.9427973+00:00","CustomerId":"sample string 5","ContractId":6,"GatewayAssetId":7,"DeviceAssetId":8}
Response Information
Resource Description
On success, returns the new entity object
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html
Sample:
Sample not available.