Create Scheduler Item
const url = 'https://api.wink.travel/api/managing-entity/hotel-1/extranet/schedule/travel-blocking-1';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"start":"","end":"","startTimezone":"","endTimezone":"","isAllDay":false,"recurrenceRule":"","recurrenceId":"","recurrenceException":"","bookingIdentifier":"","type":"ROOM_TYPE_ANCILLARY","attendees":1}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.wink.travel/api/managing-entity/hotel-1/extranet/schedule/travel-blocking-1 \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "start": "", "end": "", "startTimezone": "", "endTimezone": "", "isAllDay": false, "recurrenceRule": "", "recurrenceId": "", "recurrenceException": "", "bookingIdentifier": "", "type": "ROOM_TYPE_ANCILLARY", "attendees": 1 }'Create a calendar item for any travel inventory, such as meeting room, restaurant, spa, activity, attraction or place.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Create a calendar item for travel inventoryowned by this property identifier
Example
hotel-1Create a calendar item for travel inventorywith this identifier
Example
travel-blocking-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Start date time of scheduled event
Example
2017-12-22T03:07:58.742+0000End date time of scheduled event
Example
2017-12-23T03:07:58.742+0000Schedule timezone
Schedule timezone
Flag indicating whether this is an all day event.
Example
trueIf rule is present, indicates that scheduled event is a recurring event. For more details go to the iCalendar website
Example
FREQ=DAILY;COUNT=5;The parent ID of the recurring event.
Example
schedule-parent-1Exceptions to the recurrence rule.
Example
[ "2017-12-22T03:07:58.742+0000"]Booking identifier this scheduled event was created as part of.
Example
booking-1The type of travel inventory.
Example
MEETING_ROOMNumber of guests attending this event.
Example
2Responses
Section titled “ Responses ”Created
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 time of scheduled event
Schedule timezone
End date time of scheduled event
Schedule timezone
Flag indicating whether this is an all day event.
Title of scheduled event.
Description of scheduled event.
If rule is present, indicates that scheduled event is a recurring event. For more details go to the iCalendar website
The parent ID of the recurring event.
Exceptions to the recurrence rule.
The unique identifier of the travel inventory you are creating a scheduled event for.
Booking identifier this scheduled event was created as part of.
Which company owns this schedule. (Owner of the customization)
Hotel identifier that owns the travel inventory.
The type of travel inventory.
Number of guests attending this event.
Email of the person scheduling this event.
Full name of person scheduling this event.
First name of person scheduling this event.
Last name of person scheduling this event.
Name of venue attendees will visit.
Localized name of venue attendees will visit.
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
Date time this schedule event was created.
Last date time this scheduled event was modified.
Schedule event recurring sequence
Brand name for email header
Venue owner logo
Cloudinary image identifier of logo
User’s desired language
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": "", "created": "", "lastModified": "", "sequence": 0, "brandName": "", "emailHeaderLogoUrl": "", "logoIdentifier": "", "language": ""}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
Unauthorized
object
object
Forbidden
object
object
Internal Server Error
object
Example generated
{}