Create vehicles
POST
/vehicles
Authorizations
Request Body required
object
fleetId
required
string
fa57abc0-4957-463c-ad7b-af002360f342 vins
required
Array<string>
[ "4T1BF28B0YU058375"]Responses
201
Vehicle created
Examples
Example with cURL
curl -X POST http://localhost:3005/vehicles \-H 'Authorization: Bearer <your_token_here>' \-H 'Content-Type: application/json' \-d '{"fleetId":"fa57abc0-4957-463c-ad7b-af002360f342","vins":["4T1BF28B0YU058375"]}'404
Fleet not found
Examples
Example with cURL
curl -X POST http://localhost:3005/vehicles \-H 'Authorization: Bearer <your_token_here>' \-H 'Content-Type: application/json' \-d '{"fleetId":"fa57abc0-4957-463c-ad7b-af002360f342","vins":["4T1BF28B0YU058375"]}'