DELETE api/resource/booking?id={id}&identifierType={identifierType}&hasCutOff={hasCutOff}&cutOffDate={cutOffDate}

Deletes resource bookings based on booking, project, or task identifiers.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

The identifier used to locate bookings. Can represent a booking ID, project ID, or task ID depending on the `identifierType`.

integer

Required

identifierType

(Optional) Specifies the type of identifier. Accepts "booking", "project", or "task". Defaults to "booking".

string

Default value is booking

hasCutOff

(Optional) Indicates whether a cutoff date should be applied when filtering project-based deletions.

boolean

Default value is False

cutOffDate

(Optional) The cutoff date used to filter bookings when `identifierType` is "project" and `hasCutOff` is true.

string

Default value is

Body Parameters

None.

Response Information

Resource Description

On success: HTTP 200 OK indicating the booking(s) were deleted. On failure: HTTP 404 Not Found if no matching booking exists, or 400 Bad Request if an error occurs.

None.