POST Vehicle/UpdateChargerSubCostRate/{id}

Update energy sub cost rate

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

EnergyCostRateID

string

Required

Body Parameters

JSON containing charge sub rate information.

ChargeCostSubRate
NameDescriptionTypeAdditional information
EnergyCostSubRateDay

integer

None.

StartTime

string

None.

EndTime

string

None.

EnergySubRate

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "EnergyCostSubRateDay": 1,
  "StartTime": "sample string 2",
  "EndTime": "sample string 3",
  "EnergySubRate": 4.1
}

application/xml, text/xml

Sample:
<ChargeCostSubRate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CreatorsAPI.Models">
  <EndTime>sample string 3</EndTime>
  <EnergyCostSubRateDay>1</EnergyCostSubRateDay>
  <EnergySubRate>4.1</EnergySubRate>
  <StartTime>sample string 2</StartTime>
</ChargeCostSubRate>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ChargeCostSubRate'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.