- Introdução a API
- Rotas
- Introdução a API Trackings
- Endpoints
- others
- reports
- bounds
- driver
- migration
- last-tracking
- planned-route
- new-planned-route
- vehicles
- trackings
- tracker
- Abastecimentos
- Multas
- Manutenção
- others
- Maintenance
- Planning Plan
- Maintenance Dashboard
- Mapa
- Ultimos Pontos (Last Points)
- lastbreakroutepoint
update planned route
PUT
https://cgv-prd-trackings-api.contele.io/api/v1/update-planned-route
new-planned-route
Last modified:2024-11-19 20:38:26
Requisição
Parâmetros Header
x-api-key
string
requerido
Padrão:
{{api_key}}
Parâmetros Bodyapplication/json
planned_route_id
string
requerido
route_name
string
requerido
calculated_header
object
requerido
dead_distance_route_in_meters
number
requerido
dead_time_route_in_seconds
number
requerido
total_distance_route_in_meters
number
requerido
total_time_route_in_seconds
number
requerido
dead_start_distance_route_in_meters
number
requerido
dead_start_time_route_in_seconds
number
requerido
dead_end_time_route_in_seconds
number
requerido
dead_end_distance_route_in_meters
number
requerido
bound_configurations
object
requerido
selected_vehicle
number
requerido
selected_driver
number
requerido
route_configurations
object
requerido
includes_initial_and_final_stop
boolean
requerido
stop_points
array [object {8}]
requerido
dead_start_route_linestring
array [object {2}]
requerido
dead_end_route_linestring
array [object {2}]
requerido
productive_route_linestring
array [object {2}]
requerido
Exemplo
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-trackings-api.contele.io/api/v1/update-planned-route' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw ''
Respostas
🟢200OK
application/json
Body
object {0}
Exemplo
{}
🟠400Pedido inválido
🟠401Não autorizado
🟠403Proibido
🟠404Registro não encontrado
🔴500Erro do servidor
Modified at 2024-11-19 20:38:26