Create Dynamic List
const url = 'https://api.wink.travel/api/managing-entity/owner-1/studio/dynamic-list';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"name":"","propertyName":"","locationCategories":"","segmentCategories":"","hotelCategories":"","architecturalStyles":"","inventoryName":"","continents":[""],"countries":[""],"cities":[""],"showEcoFriendly":false,"showPetFriendly":false,"showChildFriendly":false,"showPopular":false,"showDirectOnly":false,"lifestyles":"","hotelStars":"","aggregateReviewRating":"","nearPoint":"","radiusInMeters":"","inventoryTypes":["GUEST_ROOM"],"primaryOrderBy":""}'};
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/owner-1/studio/dynamic-list \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "name": "", "propertyName": "", "locationCategories": "", "segmentCategories": "", "hotelCategories": "", "architecturalStyles": "", "inventoryName": "", "continents": [ "" ], "countries": [ "" ], "cities": [ "" ], "showEcoFriendly": false, "showPetFriendly": false, "showChildFriendly": false, "showPopular": false, "showDirectOnly": false, "lifestyles": "", "hotelStars": "", "aggregateReviewRating": "", "nearPoint": "", "radiusInMeters": "", "inventoryTypes": [ "GUEST_ROOM" ], "primaryOrderBy": "" }'Create a new dynamic saved search.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Create search owned by this owner identifier.
Example
owner-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Name of dynamic list for when user want to persist it
Regex expression filter matching on property name.
Example
SheraRegex expression filter matching on inventory name
Example
BadmintContinent filter
Country filter
City filter
Filter on eco-friendly hotels
Example
falseFilter on pet-friendly hotels
Example
falseFilter on child-friendly hotels
Example
falseFilter on hotel that has had a certain amount of bookings
Example
falseFilter on direct inventory
Example
falseFilter on lifestyles
Example
[ "LIFESTYLE_RELAX"]Filter on number of stars the hotel has.
Example
4Filter on aggregate review score the hotel has
Example
7Find hotels close to certain location
object
Use this in conjunction with nearPoint. Control the distance from point we are searching for.
Filter on inventory types
Control how you want the search results sorted. Options are:
- 1: Inventory name
- 2: Price: High to low
- 3: Price: Low to high
- 4: Commission: High to low
- 5: Commission: Low to high
- 6: Discount: High to low
- 7: Discount: Low to high
Example
4Responses
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.
Entity identifier of record creator
Name of dynamic list for when user want to persist it
Regex expression filter matching on property name.
Supported OTA specification LOC code. See OTA geoname data
Supported OTA specification SEG code. See OTA geoname data
Supported OTA specification PCT code. See OTA geoname data
Supported OTA specification ARC code. See OTA geoname data
Regex expression filter matching on inventory name
Continent filter
Country filter
City filter
Filter on eco-friendly hotels
Filter on pet-friendly hotels
Filter on child-friendly hotels
Filter on hotel that has had a certain amount of bookings
Filter on direct inventory
Filter on lifestyles
Filter on number of stars the hotel has.
Filter on aggregate review score the hotel has
Find hotels close to certain location
object
Use this in conjunction with nearPoint. Control the distance from point we are searching for.
Filter on inventory types
Control how you want the search results sorted. Options are:
- 1: Inventory name
- 2: Price: High to low
- 3: Price: Low to high
- 4: Commission: High to low
- 5: Commission: Low to high
- 6: Discount: High to low
- 7: Discount: Low to high
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "ownerIdentifier": "", "name": "", "propertyName": "", "locationCategories": "", "segmentCategories": "", "hotelCategories": "", "architecturalStyles": "", "inventoryName": "", "continents": [ "" ], "countries": [ "" ], "cities": [ "" ], "showEcoFriendly": false, "showPetFriendly": false, "showChildFriendly": false, "showPopular": false, "showDirectOnly": false, "lifestyles": "", "hotelStars": "", "aggregateReviewRating": "", "nearPoint": "", "radiusInMeters": 0, "inventoryTypes": [ "GUEST_ROOM" ], "primaryOrderBy": ""}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
{}