DELETE api/travel/day/vehicletype/{id}?cascade={cascade}
Deletes a vehicle type by its unique identifier. The deletion is performed with cascade enabled. Use IsVehicleTypeInUse to check for dependencies before deletion.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id |
The unique identifier of the vehicle type to delete. |
integer |
Required |
| cascade |
Whether to cascade the delete to related records. |
boolean |
Default value is True |
Body Parameters
None.
Response Information
Resource Description
Returns HTTP 204 (No Content) if the vehicle type was successfully deleted
IHttpActionResultNone.
Response Formats
application/json, text/json, application/javascript
Sample:
Sample not available.