Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Delete multiple vehicles

DELETE
/vehicles

Authorizations

Request Body required

object
fleetId
required
string
9c748d6f-1e74-45ba-813c-45cddeb65e7b
ids
required
Array<string>
[
"d80f60c3-b943-42c5-a3fa-89ca0647aace",
"8dbe3292-48e7-4b4b-a4d8-d7223d7a875f",
"2f48feb3-ad94-4ba4-b5c7-3d1f1668434a",
"32cf81b8-0b6a-416d-b363-0cdbda350960"
]
vins
required
Array<string>
[
"KL8CL6S00EC591675",
"5LMFU275X6LJ08282"
]

Responses

200

Vehicles deleted

Examples

Example with cURL

curl -X DELETE http://localhost:3005/vehicles \
-H 'Authorization: Bearer <your_token_here>' \
-H 'Content-Type: application/json' \
-d '{"fleetId":"9c748d6f-1e74-45ba-813c-45cddeb65e7b","ids":["d80f60c3-b943-42c5-a3fa-89ca0647aace","8dbe3292-48e7-4b4b-a4d8-d7223d7a875f","2f48feb3-ad94-4ba4-b5c7-3d1f1668434a","32cf81b8-0b6a-416d-b363-0cdbda350960"],"vins":["KL8CL6S00EC591675","5LMFU275X6LJ08282"]}'

400

Either ids or vins were not provided for deletion

Examples

Example with cURL

curl -X DELETE http://localhost:3005/vehicles \
-H 'Authorization: Bearer <your_token_here>' \
-H 'Content-Type: application/json' \
-d '{"fleetId":"9c748d6f-1e74-45ba-813c-45cddeb65e7b","ids":["d80f60c3-b943-42c5-a3fa-89ca0647aace","8dbe3292-48e7-4b4b-a4d8-d7223d7a875f","2f48feb3-ad94-4ba4-b5c7-3d1f1668434a","32cf81b8-0b6a-416d-b363-0cdbda350960"],"vins":["KL8CL6S00EC591675","5LMFU275X6LJ08282"]}'

404

Fleet not found

Examples

Example with cURL

curl -X DELETE http://localhost:3005/vehicles \
-H 'Authorization: Bearer <your_token_here>' \
-H 'Content-Type: application/json' \
-d '{"fleetId":"9c748d6f-1e74-45ba-813c-45cddeb65e7b","ids":["d80f60c3-b943-42c5-a3fa-89ca0647aace","8dbe3292-48e7-4b4b-a4d8-d7223d7a875f","2f48feb3-ad94-4ba4-b5c7-3d1f1668434a","32cf81b8-0b6a-416d-b363-0cdbda350960"],"vins":["KL8CL6S00EC591675","5LMFU275X6LJ08282"]}'