Suggest profile
const url = 'https://api.wink.travel/api/managing-entity/e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18/extranet/property/profile/suggest';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"language":"en"}'};
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/e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18/extranet/property/profile/suggest \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "language": "en" }'Uses AI to generate suggested profile copy for the property based on the supplied request, returning the suggestions for review.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Suggest for this property identifier
Example
e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Seed information and preferences used by AI to generate profile copy suggestions for the property
object
Language to use
Example
enExample
{ "language": "en"}Responses
Section titled “ Responses ”AI-generated profile copy suggestions for review before saving
AI-suggested profile data for a property, derived from demographic analysis
object
Website URL of the property
Property ambiance and atmosphere
Primary address line
Secondary address line (apartment, suite, etc.)
Tertiary address line
City name
Province or state
Postal or zip code
Country name
Contact phone number
Contact email address
Architectural style (e.g., Contemporary, Colonial, Art Deco)
Key design elements and aesthetic features
Historical significance or heritage status
Total number of rooms available
Star rating of the property
Location category code
Market segment (e.g., Luxury, Boutique, Business)
Property classification code
Architectural/design style code
Hotel chain affiliation if applicable
Brand or brand identity
Year the property was built or renovated
Example
{ "website": "https://www.thesiamresidences.com", "ambiance": "Serene tropical oasis with contemporary design and personalized service", "address1": "1 Khlang Toei Road", "address2": "", "address3": "", "city": "Bangkok", "province": "Central", "postalCode": "10110", "country": "Thailand", "phoneNumber": "+66 2 126 8866", "architecture": "Contemporary", "designElements": "Minimalist with natural materials and tropical accents", "historic": "Built in 2015, newly renovated in 2022", "numberOfRooms": "48", "hotelStars": "5", "locationCategory": "MTR", "segment": "Luxury", "propertyClass": "RES", "style": "MOD", "chain": "Independent", "brand": "The Siam Residences", "yearBuilt": "2015"}Bad Request — missing or invalid request parameter or body
object
object
Example
Unauthorized — authentication is required or the session has expired
object
object
Example
Forbidden — authenticated but lacking the required permission or scope
object
object
Example
Not Found — the requested resource does not exist
object
object
Example
Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example
Unsupported Media Type — use application/json
object
object
Example
Internal Server Error — an unexpected failure occurred on the server
object
object
Example
Service Unavailable — a downstream dependency is unreachable