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

NameDescriptionTypeAdditional 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

IHttpActionResult

None.

Response Formats

application/json, text/json, application/javascript

Sample:

Sample not available.