Add fuel price to fuel price table

This endpoint records a new fuel price. Call it once the user has confirmed it: from its startDate on, the
calculated modes of the tables that use this fuel price schedule compute their surcharge from these prices.
Find fuelPriceScheduleId with GET api/v1/fuelsurcharges/fuel-prices. Always send startDate, as yyyy-MM-dd;
only the day is kept. A startDate that already has a price is refused, which also confirms a previous call;
so is a startDate before the first price. Adding the first price of an empty fuel price schedule fails.
Leave currencySymbol empty: it is ignored. The fuel prices cannot be read back or deleted through the API.
On success the response has no body; an unknown fuel price schedule returns a 404. Requires an
administrator; other users get a 403.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required

The id of the fuel price schedule, as returned by GET api/v1/fuelsurcharges/fuel-prices.

Body Params
string | null
date-time
double
0 to 2147483647
^[0-9]\d{0,9}(\.\d{1,4})?%?$
double
0 to 2147483647
^[0-9]\d{0,9}(\.\d{1,4})?%?$
Headers
string
enum
Defaults to application/json

Generated from available response content types

Allowed:
string
enum
Defaults to application/json-patch+json

Generated from available request content types

Allowed:
Responses
200

Fuel price added

404

Fuel Price schedule not found.

500

An error occurred when trying to add the fuel price.

Language
Credentials
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
text/plain
application/json
text/json