API referenceEndpoints
Register a vehicle
Creates a vehicle for a known type. A replacement coach — standing REPLACEMENT — names the carrier it stands in for, which must be one that may operate. **Required permission:** `referential.vehicle:write`
POST
/referential/v1/vehiclesCreates a vehicle for a known type. A replacement coach — standing REPLACEMENT — names the carrier it stands in for, which must be one that may operate.
Required permission: referential.vehicle:write
Authorization
oauth2 AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
body*RegisterVehicleRequest
Response Body
*/*
*/*
*/*
curl -X POST "https://example.com/referential/v1/vehicles" \ -H "Content-Type: application/json" \ -d '{ "capacity": 0, "plate_number": "string", "seating_mode": "UNNUMBERED", "type": "string" }'{ "id": "string"}