Contele Fleet
  1. Maintenance
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
        • get all info to dashboard
        • list fuels on period
        • delete fuel by id
        • update fuel by id
  • 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
      • get maintenance
        GET
      • create maintenance
        POST
      • update maintenance
        PUT
      • update maintenance date from calendar
        PUT
      • update maintenance date from calendar
        PUT
      • delete maintenance
        DELETE
    • 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. Maintenance

list maintenances

GET
https://cgv-prd-maintenance-api.contele.io/api/v1/list_maintenance
Maintenance
Última modificação:2024-11-28 19:41:15

Requisição

Parâmetros Query
maintenance_status
string 
opcional
Maintenance status by type
search_term
string 
opcional
maintenance name or vehicle name
per_page
number 
opcional
per_page
Padrão:
15
page
number 
opcional
Pagination
Padrão:
0
vehicle_ids
array[number]
opcional
plan_ids
array[string]
opcional
auto_repair_ids
array[string]
opcional
base_item_ids
array[string]
opcional
incoming_date_range
array[string]
opcional
exit_date_range
array[string]
opcional
maintenance_amount_range
array[number]
opcional
include_archived_maintenances
boolean 
opcional
sort
string 
opcional
sort_by
include_maintenance_with_disabled_vehicle
boolean 
opcional
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}}

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 GET 'https://cgv-prd-maintenance-api.contele.io/api/v1/list_maintenance' \
--header 'x-api-key;'

Respostas

🟢200OK
application/json
success
Body
maintenances
array [object {9}] 
opcional
maintenance_id
string 
opcional
maintenance_name
string 
opcional
auto_repair_name
string 
opcional
incoming_datetime
string 
opcional
exit_datetime
string 
opcional
total_time_in_days
integer 
opcional
total_value
number 
opcional
total_items
integer 
opcional
status_id
integer 
opcional
total_maintenances
integer 
opcional
Exemplo
{
    "maintenances": [
        {
            "maintenance_id": "string",
            "maintenance_name": "string",
            "auto_repair_name": "string",
            "incoming_datetime": "string",
            "exit_datetime": "string",
            "total_time_in_days": 0,
            "total_value": 0,
            "total_items": 0,
            "status_id": 0
        }
    ],
    "total_maintenances": 0
}
Modificado em 2024-11-28 19:41:15
Página anterior
healthcheck
Próxima página
get maintenance
Built with