Contele Fleet
  1. fuels
Contele Fleet
  • Introdução a API
  • Rotas
    • Introdução a API Trackings
    • Endpoints
      • others
        • healthcheck
        • get sheet data
      • reports
        • get routes reports by group
        • get routes reports by Imei
        • get reports km
        • get driver by day
        • get driver routes in a period
        • get driver routes compiled in a period
        • get driver report
        • get trackings in a period
        • get productivity report
      • bounds
        • bound vehicle with imei
        • bound driver with imei
        • list driver bound per period
      • driver
        • get driver by a given date
      • migration
        • create bound vehicle with imei
        • create bound driver default with imei
      • last-tracking
        • get last tracking by plate number
        • get last tracking by imei
        • get tracking by vehicle id
      • planned-route
        • create planned routes by geojson
        • create planned routes by geojson
        • edit routes
        • edit planned routes
        • delete routes
        • get detailed planned route
      • new-planned-route
        • create planned route
        • get planned route to update
        • update planned route
      • vehicles
        • get vehicles list
      • trackings
        • create bound vehicle with imei
      • tracker
        • change tracker of vehicle
  • Abastecimentos
    • Endpoints
      • healthcheck
        • health-check
      • fuels
        • create fuels
          POST
        • get all info to dashboard
          GET
        • list fuels on period
          GET
        • delete fuel by id
          DELETE
        • update fuel by id
          PUT
  • Multas
    • Endpoints
      • others
        • healthcheck
      • fines
        • list fines
        • create fine
        • update fine
        • delete fine
        • get fine
      • infractions
        • list infractions
      • cost
        • cost per month
        • fines per driver
      • dashboard
        • get fines dashboard
  • Manutenção
    • others
      • healthcheck
    • Maintenance
      • list maintenances
      • get maintenance
      • create maintenance
      • update maintenance
      • update maintenance date from calendar
      • update maintenance date from calendar
      • delete maintenance
    • Planning Plan
      • list plans
      • get plan by id
      • list vehicles in plan
      • list items in plan
      • create new plan
      • update plan
      • delete plan
    • Maintenance Dashboard
      • get all info to dashboard
  • Mapa
    • Ultimos Pontos (Last Points)
      • Get last points
      • get specific tracker from cache
      • get specific module info from db
    • lastbreakroutepoint
      • Get last break route points
      • get trackings by period
  • Checklist
    • metrics
      • get dashboard summary from forms
    • attachments
      • insert_form_template_attachment
      • list_form_template_attachment
      • insert_attachment
      • select_attachment
    • custom-filters
      • list_custom_filter
      • create_custom_filter
      • remove_custom_filter
    • form-template
      • create form template
      • create form template
      • copy form templates
      • update form template status
      • update form template status
      • update form template status
      • update form template settings
    • forms
      • create new form
      • update form status
      • update form status
      • list forms
      • list forms without token
    • checklists
      • list checklists
    • answers
      • list answers
      • create new answer
  1. fuels

update fuel by id

PUT
https://cgv-prd-fuels-api.contele.io/api/v1/update_fuel
fuels
Última modificação:2024-12-04 18:45:25

Requisição

Parâmetros Header
x-api-key
string 
requerido
Esta chave é obtida através do sistema por meio do gerenciamento da OpenAPI
Padrão:
{{api_key}}
Parâmetros Bodyapplication/json
id
number 
opcional
vehicle_id
number 
opcional
fuel_date
string 
opcional
odometer
number 
opcional
fuel_type_id
number 
opcional
liters
number 
opcional
lat
number 
opcional
lng
number 
opcional
total_value
number 
opcional
liter_value
number 
opcional
fully_filled
number 
opcional
status
number 
opcional
driver_id
number 
opcional
organization_id
number 
opcional
user_id
number 
opcional
fuel_observation
string 
opcional
Exemplo
{
    "id": 0,
    "vehicle_id": 0,
    "fuel_date": "string",
    "odometer": 0,
    "fuel_type_id": 0,
    "liters": 0,
    "lat": 0,
    "lng": 0,
    "total_value": 0,
    "liter_value": 0,
    "fully_filled": 0,
    "status": 0,
    "driver_id": 0,
    "organization_id": 0,
    "user_id": 0,
    "fuel_observation": "string"
}

Exemplos de Requisição

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request PUT 'https://cgv-prd-fuels-api.contele.io/api/v1/update_fuel' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "id": 0,
    "vehicle_id": 0,
    "fuel_date": "string",
    "odometer": 0,
    "fuel_type_id": 0,
    "liters": 0,
    "lat": 0,
    "lng": 0,
    "total_value": 0,
    "liter_value": 0,
    "fully_filled": 0,
    "status": 0,
    "driver_id": 0,
    "organization_id": 0,
    "user_id": 0,
    "fuel_observation": "string"
}'

Respostas

🟢200OK
application/json
OK
Body
object {0}
Exemplo
{}
Modificado em 2024-12-04 18:45:25
Página anterior
delete fuel by id
Próxima página
healthcheck
Built with