Create WinkLinks Entry
const url = 'https://api.wink.travel/api/managing-entity/owner-1/wink-links/syndication/entry';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"title":"","contentUrl":"","sort":"","type":"WEB_LINK","metadata":"","descriptions":[""],"tags":"","multimedias":"","display":"FROM_SETTINGS","disabled":false,"publishDate":"","publishStatus":"PUBLISHED","lockCode":"","uniqueId":"","userTags":[""],"hashTags":[""]}'};
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/wink-links/syndication/entry \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "title": "", "contentUrl": "", "sort": "", "type": "WEB_LINK", "metadata": "", "descriptions": [ "" ], "tags": "", "multimedias": "", "display": "FROM_SETTINGS", "disabled": false, "publishDate": "", "publishStatus": "PUBLISHED", "lockCode": "", "uniqueId": "", "userTags": [ "" ], "hashTags": [ "" ] }'Creates a new syndication entry.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Create entry for this owner identifier.
Example
owner-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Request body
object
The site name of this entry
Example
GoogleThe url of this entry
Example
https://www.google.comHow the author wants this entry to get sorted
Example
0The syndication entry type
Example
WEB_LINKExtended metadata
object
Localized descriptions describing inventory.
object
Use as title or short text description
Example
An example titleLonger text description
Example
This is a longer description in the specified language.Indicate which language this description is written in.
Example
enWhether it was user or system generated.
Example
SYSTEMThe md5 hash of the name, description and language.
Optional user categories
object
The value that should be persisted.
Example
id-1English readable text of the value.
Example
Readable text labelThe main media for this entry.
Multimedia that contains less information than Multimedia object
object
Document identifier
Example
image-1Use this identifier to communicate with Cloudinary.
Example
cloudinary-image-1Whether Cloudinary media is a VIDEO or IMAGE.
Example
IMAGECurrently ONLY using Cloudinary to store all image / video assets.
Example
CLOUDINARYSort allows you to control how you want to sort this record in a list of media records.
Example
10Media angle
Example
-90Media width in pixels.
Example
2560Media height in pixels.
Example
1600Instead of deleting the media, choose to un-publish it instead for later re-use. Could be you keep seasonal images of the property.
Example
trueLocalized media captions to give user some context about where this media was taken.
object
Use as title or short text description
Example
An example titleLonger text description
Example
This is a longer description in the specified language.Indicate which language this description is written in.
Example
enWhether it was user or system generated.
Example
SYSTEMThe 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.
Example
LIFESTYLE_HEALTH_FITNESSWhether image has attribution properties
object
URL to contributor
Example
https://maps.google.com/maps/contrib/111628493169070103594Name of contributor
Example
Samuel AdamsTrue if media width is greater or equal to height
Example
trueExample
For web links, it would be the Open Graph image url. For a file upload, it would be the multipart file.Whether to treat all links as flat web links or try to embed more advanced data.
Example
Embedding a tweetWhether author wants to disable the post.
An optional date for when this post will be displayed.
Publish status of post.
Example
PUBLISHEDOptional code the author can require be entered by the user in order to see the post.
Example
ABC123Optional unique code that can be used to access this record.
Example
https://trvl.as/Hbgt56Responses
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.
Creator of entry
The user’s owner company this entry associates with
The site name of this entry
The url of this entry
How the author wants this entry to get sorted
This can change if it’s linked to travel inventory that is no longer available.
The syndication entry type
Extended metadata
object
Localized descriptions describing inventory.
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.
Optional user categories
object
The value that should be persisted.
English readable text of the value.
The main multimedias for this entry.
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
Whether to treat all links as flat web links or try to embed more advanced data.
Whether author wants to disable the post.
An optional date for when this post will be displayed.
Publish status of post.
Optional code the author can require be entered by the user in order to see the post.
Optional unique code that can be used to access this record.
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "userIdentifier": "", "ownerIdentifier": "", "title": "", "contentUrl": "", "sort": "", "status": "ACTIVE", "type": "WEB_LINK", "metadata": "", "descriptions": [ "" ], "tags": "", "multimedias": "", "display": "FROM_SETTINGS", "disabled": false, "publishDate": "", "publishStatus": "PUBLISHED", "lockCode": "", "uniqueId": "", "userTags": [ "" ], "hashTags": [ "" ]}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
{}