Suggest lead profile
POST
/api/lead/{leadIdentifier}/profile/suggest
const url = 'https://api.wink.travel/api/lead/lead-1/profile/suggest';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"language":""}'};
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/lead/lead-1/profile/suggest \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "language": "" }'Let AI suggest lead profile.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” leadIdentifier
required
string
Suggest for this lead identifier
Example
lead-1Header Parameters
Section titled “Header Parameters ” Wink-Version
string
Request Body required
Section titled “Request Body required ” Media type application/json
object
language
required
Language to use
string
Example
enResponses
Section titled “ Responses ”OK
Media type application/json
object
website
required
Website
string
ambiance
required
Property ambiance
string
address1
string
address2
string
address3
string
city
string
province
string
postalCode
string
country
string
phoneNumber
string
emailAddress
string
architecture
string
designElements
string
historic
string
numberOfRooms
string
hotelStars
string
locationCategory
string
segment
string
propertyClass
string
style
string
chain
string
brand
string
yearBuilt
string
Example
{ "website": "", "ambiance": ""}Bad Request
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "instance": "https://example.com", "properties": { "additionalProperty": "example" }}object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Unauthorized
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Forbidden
Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Internal Server Error
object
Example generated
{}