create new plan
Amb. de testes
POST
/create_planRequisição
Body Params application/json
id
string
optional
organization_id
integer
optional
name
string
required
description
string
optional
due_date_config
object
optional
deadlines_days
integer
required
deadlines_km
integer
optional
deadlines_hourmeter
integer
optional
items
array[object (plan_item) {10}]
optional
bond_item_id
string
optional
name
string
optional
organization_id
integer
optional
plan_id
string
optional
milestone_value
integer
optional
milestone_type
string
optional
milestone_day_in_seconds
integer
optional
item_status_id
integer
optional
vehicle_id
integer
optional
base_item_id
string
optional
vehicles
array[object (vehicle) {25}]
optional
id
integer
optional
status
integer
optional
organization_id
integer
optional
type_vehicle_id
integer
optional
type_fuel_id
integer
optional
vehicle_id
integer
required
name
string
optional
model
string
optional
plate_number
string
optional
tank_capacity
integer
optional
odometer
integer
optional
liters_value
number
optional
average_fuel_km
number
optional
stage_vehicle_id
integer
optional
year_manufacturer
integer
optional
manufacturer
string
optional
serial_number
string
optional
type_tracker_id
integer
optional
hourmeter
integer
optional
type_vehicle_name
string
optional
type_fuel_name
string
optional
stage_name
string
optional
vehicle_driver_id
integer
optional
email
array[string]
optional
last_maintenance
object
required
Example
{
"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
}
}
]
}
Exemplos de Requisição
Responses
OK(200)
Código HTTP: 200
Tipo de Conteúdo: JSONapplication/json
success
Data Schema
id
string
optional
organization_id
integer
optional
name
string
required
description
string
optional
due_date_config
object
optional
deadlines_days
integer
required
deadlines_km
integer
optional
deadlines_hourmeter
integer
optional
items
array[object (plan_item) {10}]
optional
bond_item_id
string
optional
name
string
optional
organization_id
integer
optional
plan_id
string
optional
milestone_value
integer
optional
milestone_type
string
optional
milestone_day_in_seconds
integer
optional
item_status_id
integer
optional
vehicle_id
integer
optional
base_item_id
string
optional
vehicles
array[object (vehicle) {25}]
optional
id
integer
optional
status
integer
optional
organization_id
integer
optional
type_vehicle_id
integer
optional
type_fuel_id
integer
optional
vehicle_id
integer
required
name
string
optional
model
string
optional
plate_number
string
optional
tank_capacity
integer
optional
odometer
integer
optional
liters_value
number
optional
average_fuel_km
number
optional
stage_vehicle_id
integer
optional
year_manufacturer
integer
optional
manufacturer
string
optional
serial_number
string
optional
type_tracker_id
integer
optional
hourmeter
integer
optional
type_vehicle_name
string
optional
type_fuel_name
string
optional
stage_name
string
optional
vehicle_driver_id
integer
optional
email
array[string]
optional
last_maintenance
object
required
Example
Not configured
Last modified: 24 days ago