Delete Car by ID

Deletes a single car by the ID (the primary key in the database). To get the ID, use the POST method to add the car to the database, and the ID will be returned in the response code.

Swagger Documentation

Endpoint /car/{carId}
Base Path
Consumes application/json
  • application/json
  • application/xml
Query Request Parameter
Query Parameter Data Type Required/Optional Valid Values Description
  • integer
  • int64
Required 8-digit numeric The car ID provided by AZ Vehicles.
Response Status Codes
Code Definition
200 Successful operation. The car was deleted successfully.
400 Invalid car ID. Please enter a valid ID.
404 The car was not found in the collection.