Update
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/wink-links/shortened-url/f8c2d4a1-9e3b-4f7c-8d5e-2a6f1b3c0e94';const options = { method: 'PUT', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"title":"","type":"SELLABLE_INVENTORY_SLUG","uniqueId":"","entityId":"","url":"","imageList":"","videoList":"","audioList":"","descriptions":[""],"multimedias":"","metadata":""}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/wink-links/shortened-url/f8c2d4a1-9e3b-4f7c-8d5e-2a6f1b3c0e94 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "title": "", "type": "SELLABLE_INVENTORY_SLUG", "uniqueId": "", "entityId": "", "url": "", "imageList": "", "videoList": "", "audioList": "", "descriptions": [ "" ], "multimedias": "", "metadata": "" }'Edits an existing shortened URL’s slug and target by its identifier.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier that owns the shortened URL
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Identifier of the shortened URL to update
Example
f8c2d4a1-9e3b-4f7c-8d5e-2a6f1b3c0e94Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Updated shortened URL details (title, slug, target, metadata)
object
Display name for this shortened URL
Example
The Siam Residences, BangkokType of entity the uniqueId links to (URL, PROPERTY, BOOKING, etc.)
URL-friendly slug that uniquely identifies this entry within the owner’s account
Example
the-siam-residences-promoEntity identifier that the uniqueId originates from. Omit for type=URL, required for other types.
Example
e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18Target URL to redirect to. Required when type=URL, omit for other types.
Example
https://www.thesiamresidences.com/luxury-stayOpen Graph images extracted from the target URL
Open Graph media asset (image, video, or audio)
object
URL of the media asset
Example
https://res.cloudinary.com/traveliko/image/upload/v1689655191/the-siam-residences-bangkok.jpgHTTPS URL of the media asset
Example
https://res.cloudinary.com/traveliko/image/upload/v1689655191/the-siam-residences-bangkok.jpgMIME type of the media (image/jpeg, video/mp4, audio/mpeg, etc.)
Example
image/jpegMedia width in pixels
Example
1200Media height in pixels
Example
630Alternative text description for accessibility
Example
The Siam Residences exterior viewOpen Graph videos extracted from the target URL
Open Graph media asset (image, video, or audio)
object
URL of the media asset
Example
https://res.cloudinary.com/traveliko/image/upload/v1689655191/the-siam-residences-bangkok.jpgHTTPS URL of the media asset
Example
https://res.cloudinary.com/traveliko/image/upload/v1689655191/the-siam-residences-bangkok.jpgMIME type of the media (image/jpeg, video/mp4, audio/mpeg, etc.)
Example
image/jpegMedia width in pixels
Example
1200Media height in pixels
Example
630Alternative text description for accessibility
Example
The Siam Residences exterior viewOpen Graph audio media extracted from the target URL
Open Graph media asset (image, video, or audio)
object
URL of the media asset
Example
https://res.cloudinary.com/traveliko/image/upload/v1689655191/the-siam-residences-bangkok.jpgHTTPS URL of the media asset
Example
https://res.cloudinary.com/traveliko/image/upload/v1689655191/the-siam-residences-bangkok.jpgMIME type of the media (image/jpeg, video/mp4, audio/mpeg, etc.)
Example
image/jpegMedia width in pixels
Example
1200Media height in pixels
Example
630Alternative text description for accessibility
Example
The Siam Residences exterior viewLocalized descriptions of the shortened URL entry
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.
Primary media assets associated with this shortened URL
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
trueExtended metadata key-value pairs (e.g., seo keywords, tags)
object
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.
Creator of this shortened URL
Managing entity / Owner identifier that owns this shortened URL
Display name of the shortened URL
Type of entity the uniqueId links to (URL, PROPERTY, BOOKING, etc.)
URL-friendly slug that uniquely identifies this entry within the owner’s account
Entity identifier that the uniqueId originates from. Omit for type=URL, required for other types.
Target URL to redirect to. Required when type=URL, omit for other types.
Open Graph images extracted from the target URL
object
URL of the media asset
HTTPS URL of the media asset
MIME type of the media (image/jpeg, video/mp4, audio/mpeg, etc.)
Media width in pixels
Media height in pixels
Alternative text description for accessibility
Open Graph videos extracted from the target URL
object
URL of the media asset
HTTPS URL of the media asset
MIME type of the media (image/jpeg, video/mp4, audio/mpeg, etc.)
Media width in pixels
Media height in pixels
Alternative text description for accessibility
Open Graph audio media extracted from the target URL
object
URL of the media asset
HTTPS URL of the media asset
MIME type of the media (image/jpeg, video/mp4, audio/mpeg, etc.)
Media width in pixels
Media height in pixels
Alternative text description for accessibility
Localized descriptions of the shortened URL entry
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.
Primary media assets associated with this shortened URL
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
Extended metadata key-value pairs (e.g., seo keywords, tags)
object
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "userIdentifier": "", "ownerIdentifier": "", "title": "", "type": "SELLABLE_INVENTORY_SLUG", "uniqueId": "", "entityId": "", "url": "", "imageList": [ "" ], "videoList": [ "" ], "audioList": [ "" ], "descriptions": [ "" ], "multimedias": [ null ], "metadata": "", "previousUniqueIds": [ "" ]}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
{}