List inventory media
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/shareable-link/inventory/8b1d6e0f-3a7c-4d2b-9e5a-1c8f0b4d6e29/media/list';const options = { method: 'GET', headers: {'Wink-Version': '2.0', Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/shareable-link/inventory/8b1d6e0f-3a7c-4d2b-9e5a-1c8f0b4d6e29/media/list \ --header 'Authorization: Bearer <token>' \ --header 'Wink-Version: 2.0'Returns the media (images and other assets) associated with the given channel inventory identifier, available for use when composing a shareable link.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier that owns the inventory
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Channel inventory identifier whose media should be listed
Example
8b1d6e0f-3a7c-4d2b-9e5a-1c8f0b4d6e29Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”List of media items available for this inventory
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
Example
[ null]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
Insufficient permissions to access this managing entity’s inventory
object
object
Internal Server Error
object
Example generated
{}