MIDAS API Addon MIDAS API: del_booking

Available in API 2.0+
Deletes a single booking.
Required ParametersPossible ValuesDescription
idNumberThe unique numerical reference of the booking to be deleted (which can be determined from the "get_bookings" call)
Optional ParametersPossible ValuesDescription
force0 | 1By default, when a booking is "deleted", it still persists in a "hidden" state (allowing it to be restored at a later stage). Passing the "force" parameter with a value of "1" will mean that the booking will be completely removed from the system
no_watches0 | 1Setting the "no_watches" parameter to "1" will suppress generation of Watch notifications for users who are monitoring deleted bookings, otherwise omitting this parameter (or setting it to "0") will allow Watch notifications to be generated accordingly
Example Response
{
	"bookings_deleted":"1"
}
Variables ReturnedDescription
bookings_deletedThe number of bookings deleted