- Introdução a API
- Rotas
- Abastecimentos
- Multas
- Manutenção
- others
- Maintenance
- Planning Plan
- Maintenance Dashboard
- Mapa
- Ultimos Pontos (Last Points)
- lastbreakroutepoint
update maintenance
PUT
https://cgv-prd-maintenance-api.contele.io/api/v1/update_maintenance
Maintenance
Last modified:2024-11-28 19:41:15
Requisição
Parâmetros Header
x-api-key
string
requerido
Padrão:
{{api_key}}
Parâmetros Bodyapplication/json
id
string
opcional
vehicle_id
integer
requerido
details
object
opcional
status_id
integer
opcional
maintenance_term_type
string
opcional
last_point_value
integer
opcional
incoming_datetime
string
opcional
exit_datetime
string
opcional
service
object
opcional
os_number
string
requerido
amount
number
requerido
auto_repair_id
string
opcional
cost_center_id
string
opcional
observation
string
requerido
items
array[object (history_item) {9}]
opcional
id
string
opcional
name
string
opcional
organization_id
integer
opcional
plan_id
string
opcional
vehicle_id
integer
requerido
maintenance_item_type
string
opcional
category_item
string
opcional
item_status_id
integer
opcional
base_item_id
string
requerido
history
array [object {3}]
opcional
type
string
opcional
datetime
string
opcional
created_by
string
opcional
status_id
integer
opcional
organization_id
integer
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-maintenance-api.contele.io/api/v1/update_maintenance' \
--header 'x-api-key;' \
--header 'Content-Type: application/json' \
--data-raw ''
Respostas
🟢200OK
application/json
Body
maintenance_id
string
opcional
vehicle_id
integer
requerido
details
object
opcional
status_id
integer
requerido
maintenance_term_type
string
requerido
last_point_value
integer
requerido
incoming_datetime
string
requerido
exit_datetime
string
requerido
service
object
opcional
os_number
string
requerido
amount
number
requerido
auto_repair_id
string
opcional
cost_center_id
string
opcional
observation
string
requerido
items
array[object (history_item_database_return) {10}]
opcional
maintenance_item_bond
string
requerido
vehicle_id
integer
requerido
item_name
string
opcional
organization_id
integer
opcional
plan_item_id
string
requerido
maintenance_id
string
requerido
created
string
opcional
modified
string
opcional
maintenance_item_type
string
opcional
item_progress
integer
opcional
history
array [object {3}]
opcional
type
string
opcional
datetime
string
opcional
created_by
string
opcional
status_id
integer
requerido
organization_id
integer
requerido
Exemplo
{
"maintenance_id": "string",
"vehicle_id": 0,
"details": {
"status_id": 0,
"maintenance_term_type": "string",
"last_point_value": 0,
"incoming_datetime": "string",
"exit_datetime": "string"
},
"service": {
"os_number": "string",
"amount": 0,
"auto_repair_id": "string",
"cost_center_id": "string",
"observation": "string"
},
"items": [
{
"maintenance_item_bond": "string",
"vehicle_id": 0,
"item_name": "string",
"organization_id": 0,
"plan_item_id": "string",
"maintenance_id": "string",
"created": "string",
"modified": "string",
"maintenance_item_type": "string",
"item_progress": 0
}
],
"history": [
{
"type": "string",
"datetime": "string",
"created_by": "string"
}
],
"status_id": 0,
"organization_id": 0
}
Modified at 2024-11-28 19:41:15