update maintenance
Amb. de testes
PUT
/update_maintenanceRequisição
Body Params application/json
id
string
optional
vehicle_id
integer
required
details
object
optional
status_id
integer
optional
maintenance_term_type
string
optional
last_point_value
integer
optional
incoming_datetime
string
optional
exit_datetime
string
optional
service
object
optional
os_number
string
required
amount
number
required
auto_repair_id
string
optional
cost_center_id
string
optional
observation
string
required
items
array[object (history_item) {9}]
optional
id
string
optional
name
string
optional
organization_id
integer
optional
plan_id
string
optional
vehicle_id
integer
required
maintenance_item_type
string
optional
category_item
string
optional
item_status_id
integer
optional
base_item_id
string
required
history
array [object {3}]
optional
type
string
optional
datetime
string
optional
created_by
string
optional
status_id
integer
optional
organization_id
integer
required
Example
{
"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": [
{
"id": "string",
"name": "string",
"organization_id": 0,
"plan_id": "string",
"vehicle_id": 0,
"maintenance_item_type": "string",
"category_item": "string",
"item_status_id": 0,
"base_item_id": "string"
}
],
"history": [
{
"type": "string",
"datetime": "string",
"created_by": "string"
}
],
"status_id": 0,
"organization_id": 0
}
Exemplos de Requisição
Responses
OK(200)
Código HTTP: 200
Tipo de Conteúdo: JSONapplication/json
success
Data Schema
maintenance_id
string
optional
vehicle_id
integer
required
details
object
optional
status_id
integer
required
maintenance_term_type
string
required
last_point_value
integer
required
incoming_datetime
string
required
exit_datetime
string
required
service
object
optional
os_number
string
required
amount
number
required
auto_repair_id
string
optional
cost_center_id
string
optional
observation
string
required
items
array[object (history_item_database_return) {10}]
optional
maintenance_item_bond
string
required
vehicle_id
integer
required
item_name
string
optional
organization_id
integer
optional
plan_item_id
string
required
maintenance_id
string
required
created
string
optional
modified
string
optional
maintenance_item_type
string
optional
item_progress
integer
optional
history
array [object {3}]
optional
type
string
optional
datetime
string
optional
created_by
string
optional
status_id
integer
required
organization_id
integer
required
Example
Not configured
Last modified: 24 days ago