- Introdução a API
- Rotas
- Abastecimentos
- Multas
- Manutenção
- others
- Maintenance
- Planning Plan
- Maintenance Dashboard
- Mapa
- Ultimos Pontos (Last Points)
- lastbreakroutepoint
get plan by id
GET
https://cgv-prd-maintenance-api.contele.io/api/v1/get_detailed_plan
Planning Plan
Last modified:2024-11-28 19:41:15
Requisição
Parâmetros Query
plan_id
string
opcional
Parâmetros Header
x-api-key
string
requerido
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/get_detailed_plan' \
--header 'x-api-key;'
Respostas
🟢200OK
application/json
Body
id
string
opcional
organization_id
integer
opcional
name
string
requerido
description
string
opcional
due_date_config
object
opcional
deadlines_days
integer
requerido
deadlines_km
integer
opcional
deadlines_hourmeter
integer
opcional
items
array[object (plan_item) {10}]
opcional
bond_item_id
string
opcional
name
string
opcional
organization_id
integer
opcional
plan_id
string
opcional
milestone_value
integer
opcional
milestone_type
string
opcional
milestone_day_in_seconds
integer
opcional
item_status_id
integer
opcional
vehicle_id
integer
opcional
base_item_id
string
opcional
vehicles
array[object (vehicle) {25}]
opcional
id
integer
opcional
status
integer
opcional
organization_id
integer
opcional
type_vehicle_id
integer
opcional
type_fuel_id
integer
opcional
vehicle_id
integer
requerido
name
string
opcional
model
string
opcional
plate_number
string
opcional
tank_capacity
integer
opcional
odometer
integer
opcional
liters_value
number
opcional
average_fuel_km
number
opcional
stage_vehicle_id
integer
opcional
year_manufacturer
integer
opcional
manufacturer
string
opcional
serial_number
string
opcional
type_tracker_id
integer
opcional
hourmeter
integer
opcional
type_vehicle_name
string
opcional
type_fuel_name
string
opcional
stage_name
string
opcional
vehicle_driver_id
integer
opcional
email
array[string]
opcional
last_maintenance
object
requerido
Exemplo
{
"id": "string",
"organization_id": 0,
"name": "string",
"description": "string",
"due_date_config": {
"deadlines_days": 0,
"deadlines_km": 0,
"deadlines_hourmeter": 0
},
"items": [
{
"bond_item_id": "string",
"name": "string",
"organization_id": 0,
"plan_id": "string",
"milestone_value": 0,
"milestone_type": "string",
"milestone_day_in_seconds": 0,
"item_status_id": 0,
"vehicle_id": 0,
"base_item_id": "string"
}
],
"vehicles": [
{
"id": 0,
"status": 0,
"organization_id": 0,
"type_vehicle_id": 0,
"type_fuel_id": 0,
"vehicle_id": 0,
"name": "string",
"model": "string",
"plate_number": "string",
"tank_capacity": 0,
"odometer": 0,
"liters_value": 0,
"average_fuel_km": 0,
"stage_vehicle_id": 0,
"year_manufacturer": 0,
"manufacturer": "string",
"serial_number": "string",
"type_tracker_id": 0,
"hourmeter": 0,
"type_vehicle_name": "string",
"type_fuel_name": "string",
"stage_name": "string",
"vehicle_driver_id": 0,
"email": [
"string"
],
"last_maintenance": {
"last_datetime": "string",
"last_odometer": 0
}
}
]
}
Modified at 2024-11-28 19:41:15