Delete Truck by ID

Deletes a single truck 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

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