Delete a schedule item
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/extranet/schedule/9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43/item/b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47';const options = { method: 'DELETE', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/extranet/schedule/9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43/item/b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47 \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Removes a calendar item identified by its identifier from the inventory’s schedule. The operation is permanent and cannot be undone. Returns the deleted item.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Identifier of the managing entity (property/company) that owns the inventory
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Identifier of the travel inventory containing the schedule item to delete
Example
9c2e7f1a-4b8d-4e3c-a5f6-2d9b1e0c7a43Identifier of the schedule item to delete
Example
b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”Schedule item deleted successfully
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Start date and time of scheduled event in ISO-8601 format.
Timezone identifier for the start time, using IANA time zone database format (e.g., Asia/Bangkok, America/New_York).
End date and time of scheduled event in ISO-8601 format.
Timezone identifier for the end time, using IANA time zone database format (e.g., Asia/Bangkok, America/New_York).
Flag indicating whether this is an all day event.
Title of scheduled event.
Description of scheduled event.
Recurrence rule in iCalendar format (RFC 5545). If present, indicates this is a recurring event. Null for non-recurring events. For details see iCalendar specification.
Identifier of the parent recurring event. Used when this instance is part of a recurring series.
List of date-times that are exceptions to the recurrence rule (dates when the recurring event does not occur).
Unique identifier of the travel inventory (meeting room, restaurant, spa, activity, etc.) that owns this schedule item.
Booking identifier that this scheduled event is associated with.
Identifier of the managing entity (company/organization) that owns this schedule item.
Identifier of the property (hotel) that owns the travel inventory.
The type of travel inventory.
Number of guests attending this event.
Email address of the person who scheduled or is managing this event.
Full name of the person who scheduled or is managing this event.
First name of the person who scheduled or is managing this event.
Last name of the person who scheduled or is managing this event.
Name of the venue where the scheduled event takes place.
Localized (translated) name of the venue in the local language.
Venue contact person
object
Contact first name
Contact last name
Contact E-mail
Contact secondary Email
Contact phone number
First and last name
Summary
Venue address
object
Address line 1
Address line 2
State
Postal / zip code
County
City name
Country
Country
Address 1, Address 2, City, State, Postal / Zip code, Country
Timestamp when this schedule item was created, in ISO-8601 format.
Timestamp when this schedule item was last modified, in ISO-8601 format.
Schedule event recurring sequence
Brand name to display in event notification emails and headers.
URL of the logo image to display in event notification email headers. Typically a Cloudinary CDN URL.
Cloudinary identifier for the logo image, used for referencing and potential reuse across notifications.
ISO 639-1 language code for the user’s preferred language in notifications (e.g., en, th, de).
Example
Bad Request
object
object
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
object
object
object
object
object
object
object
Authentication failed or missing
object
object
Insufficient permissions to delete schedules for this inventory
object
object
Schedule item, inventory, or managing entity not found
object
Document UUID
Datetime this record was first created
Datetime this record was last updated
Version property that shows how many times this document has been persisted. Document will not persist if the version property is less than current version property in the system. Result in an optimistic locking exception.
Start date and time of scheduled event in ISO-8601 format.
Timezone identifier for the start time, using IANA time zone database format (e.g., Asia/Bangkok, America/New_York).
End date and time of scheduled event in ISO-8601 format.
Timezone identifier for the end time, using IANA time zone database format (e.g., Asia/Bangkok, America/New_York).
Flag indicating whether this is an all day event.
Title of scheduled event.
Description of scheduled event.
Recurrence rule in iCalendar format (RFC 5545). If present, indicates this is a recurring event. Null for non-recurring events. For details see iCalendar specification.
Identifier of the parent recurring event. Used when this instance is part of a recurring series.
List of date-times that are exceptions to the recurrence rule (dates when the recurring event does not occur).
Unique identifier of the travel inventory (meeting room, restaurant, spa, activity, etc.) that owns this schedule item.
Booking identifier that this scheduled event is associated with.
Identifier of the managing entity (company/organization) that owns this schedule item.
Identifier of the property (hotel) that owns the travel inventory.
The type of travel inventory.
Number of guests attending this event.
Email address of the person who scheduled or is managing this event.
Full name of the person who scheduled or is managing this event.
First name of the person who scheduled or is managing this event.
Last name of the person who scheduled or is managing this event.
Name of the venue where the scheduled event takes place.
Localized (translated) name of the venue in the local language.
Venue contact person
object
Contact first name
Contact last name
Contact E-mail
Contact secondary Email
Contact phone number
First and last name
Summary
Venue address
object
Address line 1
Address line 2
State
Postal / zip code
County
City name
Country
Country
Address 1, Address 2, City, State, Postal / Zip code, Country
Timestamp when this schedule item was created, in ISO-8601 format.
Timestamp when this schedule item was last modified, in ISO-8601 format.
Schedule event recurring sequence
Brand name to display in event notification emails and headers.
URL of the logo image to display in event notification email headers. Typically a Cloudinary CDN URL.
Cloudinary identifier for the logo image, used for referencing and potential reuse across notifications.
ISO 639-1 language code for the user’s preferred language in notifications (e.g., en, th, de).
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "start": "", "startTimezone": "", "end": "", "endTimezone": "", "isAllDay": false, "title": "", "description": "", "recurrenceRule": "", "recurrenceId": "", "recurrenceException": "", "ownerIdentifier": "", "bookingIdentifier": "", "bookingOwnerIdentifier": "", "hotelIdentifier": "", "type": "ROOM_TYPE_ANCILLARY", "attendees": 1, "email": "", "fullName": "", "firstName": "", "lastName": "", "venueName": "", "localizedVenueName": "", "contact": "", "address": null, "created": "", "lastModified": "", "sequence": 0, "brandName": "", "emailHeaderLogoUrl": "", "logoIdentifier": "", "language": ""}Internal Server Error
object
Example generated
{}