Saltar al contenido principal
POST
/
api
/
v1
/
vehicles
Create Vehicle
curl --request POST \
  --url https://www.manglai.io/api/v1/vehicles \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "type": "<string>",
  "companyId": "<string>",
  "buildingId": "<string>",
  "licencePlate": "<string>",
  "vehicleCategoryId": "<string>",
  "motorType": "<string>",
  "fuelTypeId": "<string>",
  "transportType": "<string>",
  "vehicleTransportSize": "<string>",
  "control": "<string>",
  "operationalControl": "<string>",
  "startDate": "2023-11-07T05:31:56Z",
  "endDate": "2023-11-07T05:31:56Z",
  "brand": "<string>",
  "class": "<string>",
  "model": "<string>",
  "removedAt": "2023-11-07T05:31:56Z",
  "isGeneric": true
}
'

Autorizaciones

Authorization
string
header
requerido

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Cuerpo

application/json
id
string
requerido
type
string
requerido
companyId
string
requerido
buildingId
string
requerido
licencePlate
string
requerido
vehicleCategoryId
string
motorType
string
fuelTypeId
string
transportType
string
vehicleTransportSize
string
control
string | null
operationalControl
string | null
startDate
string<date-time> | null
endDate
string<date-time> | null
brand
string
class
string
model
string
removedAt
string<date-time> | null
isGeneric
boolean | null

Respuesta

200

Vehicle created or updated