Delete Lead
const url = 'https://api.wink.travel/api/lead/lead-1';const options = {method: 'DELETE', headers: {'Wink-Version': '2.0'}};
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/lead/lead-1 \ --header 'Wink-Version: 2.0'Remove a lead
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Remove lead record with this identifier.
Example
lead-1Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
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.
The user who initiated the creation of this object. Contains userId as value and username as label.
object
The value that should be persisted.
English readable text of the value.
Usually the company account ID that the lead occurred under. Contains company ID as value and company name as label.
object
The value that should be persisted.
English readable text of the value.
Lead status
Unique ID
Name of lead
Name of lead in local language
Google Maps URL of the place
Telephone of lead
Address in English
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
Address in local language if available
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
Formatted address in English
Formatted address in local language if available
Html address in English
Html address in local language if available
Country
object
Photos for property
Multimedia that contains less information than Multimedia object
object
Document identifier
Use this identifier to communicate with Cloudinary.
Whether Cloudinary media is a VIDEO or IMAGE.
Currently ONLY using Cloudinary to store all image / video assets.
Sort allows you to control how you want to sort this record in a list of media records.
Media angle
Media width in pixels.
Media height in pixels.
Instead of deleting the media, choose to un-publish it instead for later re-use. Could be you keep seasonal images of the property.
Supported OTA specification PIC code. See OTA geoname data
Localized media captions to give user some context about where this media was taken.
object
Use as title or short text description
Longer text description
Indicate which language this description is written in.
Whether it was user or system generated.
The md5 hash of the name, description and language.
Associate this media with a specific lifestyle type. A user searching and filtering inventory based on lifestyles can be shown relevant media first.
Whether image has attribution properties
object
URL to contributor
Name of contributor
True if media width is greater or equal to height
Hotel rating
Total umber of user ratings
UTC offset minutes
Website
A personalized message from the inviter
Sometimes there is more than one hit when trying to find the GeoNameLightweight for the Google Place city. In this case we save all of them and let the user decide.
object
GeoName identifier
GeoNameLightweight type
Name of city
Url name
Ascii name of city
Coordinate points of the city
object
Timezone
Country
object
ISO code
Country name
Country capital
Continent code
Currency code
Currency name
Country GeoNames identifier
Country sub division
object
Sub-country name
Sub-country ascii name
Sub-country GeoNames identifier
Country sub sub division
object
Leverages AI to pre-populate the description.
object
Use as title or short text description
Longer text description
Indicate which language this description is written in.
Whether it was user or system generated.
The md5 hash of the name, description and language.
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "user": "", "owner": "", "status": "CREATED", "placeId": "", "nameInEnglish": "", "nameInLocalLanguage": "", "googleMapsUrl": "", "phone": "", "address": null, "addressLocal": null, "formattedAddress": "", "formattedAddressLocal": "", "htmlAddress": "", "htmlAddressLocal": "", "location": "", "photos": "", "rating": "", "userRatingTotal": "", "utcOffsetMinutes": "", "website": "", "messageFromUser": "", "cityOptions": [ null ], "descriptions": [ "" ]}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
{}