create fuels
POST
/fuelsRequisição
Body Params application/json
fuels
array[object (fuel_without_id) {15}]
optional
vehicle_id
number
optional
fuel_date
string
optional
odometer
number
optional
fuel_type_id
number
optional
liters
number
optional
lat
number
optional
lng
number
optional
total_value
number
optional
liter_value
number
optional
fully_filled
number
optional
status
number
optional
driver_id
number
optional
organization_id
number
optional
user_id
number
optional
fuel_observation
string
optional
Example
{
"fuels": [
{
"vehicle_id": 0,
"fuel_date": "string",
"odometer": 0,
"fuel_type_id": 0,
"liters": 0,
"lat": 0,
"lng": 0,
"total_value": 0,
"liter_value": 0,
"fully_filled": 0,
"status": 0,
"driver_id": 0,
"organization_id": 0,
"user_id": 0,
"fuel_observation": "string"
}
]
}
Exemplos de Requisição
Responses
Criado(201)
Pedido inválido(400)
Código HTTP: 201
Tipo de Conteúdo: JSONapplication/json
CREATED
Data Schema
fuels
array[object (fuel_with_id) {16}]
optional
id
number
optional
vehicle_id
number
optional
fuel_date
string
optional
odometer
number
optional
fuel_type_id
number
optional
liters
number
optional
lat
number
optional
lng
number
optional
total_value
number
optional
liter_value
number
optional
fully_filled
number
optional
status
number
optional
driver_id
number
optional
organization_id
number
optional
user_id
number
optional
fuel_observation
string
optional
Example
Not configured
Last modified: 19 days ago