Skip to main content

Update Meter Entry

PATCH 

https://secure.fleetio.com/api/v1/meter_entries/:id

Update a Meter Entry

Request

Path Parameters

    id stringrequired

    Possible values: Value must match regular expression ^[0-9]+$

    The id of the relevant record

Body

    vehicle_idId (integer)

    Possible values: >= 1

    valuefloat

    The value of the meter. The unit can be configured at the Account level, or overridden at the Vehicle level.

    datedate-time

    Meter Entries must follow the correct sequence, incrementing in value by date. For each entry, Fleetio validates to ensure that the value falls between any entries logged before and/or after. We recommend using ISO-8601 formatted dates to avoid ambiguity.

    Example: 2023-03-14T13:46:27-06:00
    voidboolean

    Whether to mark this Meter Entry void or not. See Voiding Meter Entries.

    Default value: false
    meter_typestringnullable

    If this is a secondary meter reading, use this field.

    If the vehicle's secondary meter is disabled, secondary meter values will be hidden in the web and mobile views until enabled.

    Possible values: [secondary]

Responses

OK

Authorization: Authorization

name: Authorizationtype: apiKeyin: headerdescription: Prefix the value with "Token", for example: "Token 76cbe06c49a64".
You can generate a new API key [here](https://secure.fleetio.com/api_keys).
name: Account-Tokentype: apiKeyin: headerdescription: You can find your Account-Token [here](https://secure.fleetio.com/api_keys)
curl -L -X PATCH 'https://secure.fleetio.com/api/v1/meter_entries/:id' \
-H 'Content-Type: application/json' \
-H 'Authorization: Token <Authorization>' \
-H 'Account-Token: <Authorization>' \
-d '{
"vehicle_id": 0,
"value": 0,
"date": "2023-03-14T13:46:27-06:00",
"void": false,
"meter_type": "secondary"
}'
Request Collapse all
Base URL
https://secure.fleetio.com/api
Auth
Parameters
— pathrequired
Body
{
  "vehicle_id": 0,
  "value": 0,
  "date": "2023-03-14T13:46:27-06:00",
  "void": false,
  "meter_type": "secondary"
}
ResponseClear

Click the Send API Request button above and see the response here!