Create tariff element
POST
/api/locations/{locationId}/tariff/elements
Post /api/locations/:locationId/tariff/elements
Parameters
Path Parameters
locationId
required
string
Request Body required
object
element
required
object
name
required
string
backgroundColor
required
string
priceComponents
required
object
Flat
string
PerMinute
string
PerKilowattHour
string
restrictions
object
startTime
object
hour
required
integer
minute
required
integer
endTime
object
hour
required
integer
minute
required
integer
daysOfWeek
Array<string>
minEnergy
number
maxEnergy
number
minCurrent
number
maxCurrent
number
minPower
number
maxPower
number
minDuration
integer
maxDuration
integer
vehicleRequestingPower
boolean
minRestrictionsDuration
integer
Responses
200
Response for status ok
object
success
required
boolean
element
required
object
id
required
string
name
required
string
backgroundColor
required
string
priceComponents
required
object
Flat
string
PerMinute
string
PerKilowattHour
string
restrictions
object
startTime
object
hour
required
integer
minute
required
integer
endTime
object
hour
required
integer
minute
required
integer
daysOfWeek
Array<string>
minEnergy
number
maxEnergy
number
minCurrent
number
maxCurrent
number
minPower
number
maxPower
number
minDuration
integer
maxDuration
integer
vehicleRequestingPower
boolean
minRestrictionsDuration
integer
400
Response for status badRequest
object
success
required
boolean
message
required
string
403
Response for status forbidden
object
success
required
boolean
message
required
string
404
Response for status notFound
object
success
required
boolean
message
required
string
500
Response for status internalServerError
object
success
required
boolean
message
required
string