Create shareable supplier link
const url = 'https://api.wink.travel/api/managing-entity/d2c8f3a9-4b1e-4c7a-9d3f-5b8a2e6c1d04/studio/shareable-link/supplier';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: 'null'};
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/d2c8f3a9-4b1e-4c7a-9d3f-5b8a2e6c1d04/studio/shareable-link/supplier \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullCreates a new shareable supplier link owned by the specified managing entity. The authenticated user is recorded as the creator. The link will be assigned a unique shareable URL identifier.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier (the owner of the new shareable link)
Example
d2c8f3a9-4b1e-4c7a-9d3f-5b8a2e6c1d04Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Request to create or update a shareable supplier link with OpenGraph metadata and customization
object
Display name for this shareable link (internal reference, not shown to end users)
Example
The Siam Residences, BangkokCustomization configuration identifier (controls the visual theme and styling)
Example
8f2d4a9c-1e7b-4f3d-a5c8-9d1b6e2c0a47Localized link title and description (one entry per language/locale)
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.
Hero images to display on the shareable link
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
trueTwitter account handle for OpenGraph metadata when the link is shared
Example
@thesiamresidencesFacebook App ID for OpenGraph metadata when the link is shared
Example
198273987219Visual theme controlling the appearance of the shareable link banner
Property or supplier identifier (the entity whose inventory is promoted)
Example
7c9a2e5f-3d8b-4a1c-b6e2-8f0d1c4a9b3eWhen true, renders selected images as an animated GIF (requires at least 2 images)
Animation frame delay in milliseconds (-1 = no animation)
Example
500Responses
Section titled “ Responses ”Shareable link created successfully
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 this shareable link (authenticated user)
Managing entity (owner) of this shareable link
Display name for this shareable link (internal reference, not shown to end users)
Customization configuration identifier (controls the visual theme and styling)
Localized link title and description (one entry per language/locale)
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.
Image entries
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
Unique identifier that generates the shareable URL slug (e.g., share.wink.travel/HBDG87f2)
Twitter account handle for OpenGraph metadata when the link is shared
Facebook App ID for OpenGraph metadata when the link is shared
Visual theme controlling the appearance of the shareable link banner
Current status of the shareable link (ACTIVE, INACTIVE, ARCHIVED, etc.)
Property or supplier identifier (the entity whose inventory is promoted)
When true, renders selected images as an animated GIF (requires at least 2 images)
Animation frame delay in milliseconds (-1 = no animation)
Example
Invalid request body (missing required fields or validation errors)
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
Authentication required
object
object
User lacks MARKETING:WRITE permission for the managing entity
object
object
Internal Server Error
object
Example generated
{}