Allows to create new vehicle for fleet module in Trans.eu Platform.
Url parameters and connection settings
- HTTP Method: POST
- URL: https://api.platform.trans.eu
- Endpoint: /ext/fleet-api/v1/vehicles
Headers
- Accept: application/json
- Content-type: application/json
- Authorization:
- Bearer {access_token}Api-key: {Unique api key}
Authorization
Authorization process is described here.
Json example
Sample Json for creating new vehicle using required data only.
{
"country": "pl",
"kind": "bus/van",
"registration_plate_number": "Pl0101018"
}
Response
{
"country": "pl",
"id": 53510,
"kind": "bus/van",
"manufacturer": null,
"model": null,
"name": null,
"registration_plate_number": "PL0101018",
"specifications": {
"cargo_space_capacity": null,
"combustion_norm": null,
"pallets": {
"amount": null,
"type": null
}
},
"status": "ACTIVE",
"subtype": null,
"type": null,
"vehicle_id": "207fcf0e-3afc-4d6f-b4d2-bbe772e82199",
"vin": null
}