Create Vehicle
Create New Vehicle Data
application/x-www-form-urlencoded
application/json
Request Body
licensePlate string required
vehicleTypeId any required
driverId any
tonnage any
volume any
fuelCapacity any
fuelEfficiency any
odometer any
status string
Ex: I (Aktif) / R (Repair atau Servis) / A (Arsip atau Tidak Aktif)
imei string
thermoType string
boxType string
chassisNumber string
machineNumber string
carrosserie string
year any
hullNo string
Request Body
licensePlate string required
vehicleTypeId any required
driverId any
tonnage any
volume any
fuelCapacity any
fuelEfficiency any
odometer any
status string
Ex: I (Aktif) / R (Repair atau Servis) / A (Arsip atau Tidak Aktif)
imei string
thermoType string
boxType string
chassisNumber string
machineNumber string
carrosserie string
year any
hullNo string
Responses
- 200
- 400
- 401
Success
application/json
Schema
Example (from schema)
Schema
message string required
data object
id number required
information string required
{
"message": "string",
"data": {
"id": 0,
"information": "string"
}
}
Bad Request
application/json
Schema
Example (from schema)
Expired Token
Bad Token
Schema
code string
message string
detail string
{
"code": "string",
"message": "string",
"detail": "string"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt expired"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt malformed"
}
Unauthorized Request
application/json
Schema
Example (from schema)
Example
Schema
code string
message string
{
"code": "string",
"message": "string"
}
{
"code": "E-G1/1-01",
"message": "Authentication token is required"
}
Loading...