POST api/customers/{customerId}/contracts/{contractNo}/gateways/{gatewayAssetId}/evchargingdevices/{deviceAssetId}

Create a device charging information entity.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerId

integer

Required

contractNo

integer

Required

gatewayAssetId

integer

Required

deviceAssetId

integer

Required

Body Parameters

EvChargingInformationReq
NameDescriptionTypeAdditional 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-05-19T22:44:01.1571182+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-05-19T22:44:01.1571182+00:00","CustomerId":"sample string 5","ContractId":6,"GatewayAssetId":7,"DeviceAssetId":8}

Response Information

Resource Description

On success, returns the new entity object

IHttpActionResult

None.

Response Formats

application/json, text/json, text/html

Sample:

Sample not available.