v1

latestOpenAPI 3.0.12026-07-243686491.1 MB
Tariff Recurring Periods

Update existing recurring period.

Required scope: tariffs:write<br/>Note: Once you are done with creating/updating tariffs and its components you have to call the create-prices endpoint to create the prices for the tariff.

patch/api/v1/tariff-recurring-periods/{id}

Path parameters

idinteger required

Request body

dayOfWeek'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'
endDayOfWeek'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'
startHourinteger nullable

hour that the period starts at

endHourinteger nullable

hour that the period ends at

pricenumber nullable

price during the period

Example request

{
  "endHour": 23,
  "price": 2.54
}

Response

Tariff recurring period that was updated

idinteger

id of the period

tariffIdinteger

id of the tariff

dayOfWeek'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY' required
endDayOfWeek'MONDAY' | 'TUESDAY' | 'WEDNESDAY' | 'THURSDAY' | 'FRIDAY' | 'SATURDAY' | 'SUNDAY'
startinteger

starting hour of the period

endinteger

ending hour of the period

pricenumber required

price during the period