Copy item
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/static-list/b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47/item/3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51';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/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/static-list/b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47/item/3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51 \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullDuplicate an item into a target list, leaving the original item in place.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Copy inventory to curated list owned by this owner identifier.
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69List identifier.
Example
b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47Item identifier.
Example
3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51Header Parameters
Section titled “Header Parameters”Request Bodyrequired
Section titled “Request Bodyrequired”Target list identifier into which the item should be copied while leaving the original in place
Request to copy or move a list item to a target curated list.
object
Target list identifier to copy or move the item to.
Example
b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47Example
{ "targetListIdentifier": "b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47"}Responses
Section titled “Responses”Newly created copy of the list item in the target list
A single travel inventory entry within a curated list, linking a sales channel inventory item to its parent list.
object
Datetime this record was first created
Unique identifier for this record.
Channel inventory
object
Whether this is commissionable or not
Whether this inventory is enabled or not
Channel Inventory identifier
Main image of inventory
object
Media angle
Whether image has attribution properties
object
Name of contributor
URL to contributor
Supported OTA specification PIC code. See OTA geoname data
Localized media captions to give user some context about where this media was taken.
Foundation class for storing multi-language content (names and descriptions) with content change detection throughout the Wink Platform.
object
Whether it was user or system generated.
Longer text description
Indicate which language this description is written in.
The md5 hash of the name, description and language.
Use as title or short text description
Media height in pixels.
Use this identifier to communicate with Cloudinary.
True if media width is greater or equal to height
Associate this media with a specific lifestyle type. A user searching and filtering inventory based on lifestyles can be shown relevant media first.
Document identifier
Instead of deleting the media, choose to un-publish it instead for later re-use. Could be you keep seasonal images of the property.
Sort allows you to control how you want to sort this record in a list of media records.
Currently ONLY using Cloudinary to store all image / video assets.
Whether Cloudinary media is a VIDEO or IMAGE.
Media width in pixels.
Inventory type identifier
Name of inventory as traveler is seeing it
Inventory type
Location
object
Best price of the room type or facility ancillary in platform currency
object
Monetary amount value
ISO 4217 currency code
Best price of the room type or facility ancillary
object
Monetary amount value
ISO 4217 currency code
Level of expensiveness.
Parent sales channel
object
Type of entity that manages, facilitates, or administers properties, bookings, or payments on the Wink Platform
Datetime this record was last updated
Parent list
object
Datetime this record was first created
Unique identifier for this record.
Datetime this record was last updated
Name of curated list
List creator
Every affiliate starts out with a Favorite list. All other lists will be of type NORMAL
Optimistic-locking version. Echo this value back as an If-Match request header on a conditional update; the server responds 409 if the record changed in the meantime. Null when this projection has no backing versioned document, in which case no conditional update is possible.
Sort key for controlling display order within the list (0-based)
Availability status of this list item; defaults to ACTIVE
Optimistic-locking version. Echo this value back as an If-Match request header on a conditional update; the server responds 409 if the record changed in the meantime. Null when this projection has no backing versioned document, in which case no conditional update is possible.
Example
Bad Request — missing or invalid request parameter or body
object
object
Example
Unauthorized — authentication is required or the session has expired
object
object
Example
Forbidden — authenticated but lacking the required permission or scope
object
object
Example
Not Found — the requested resource does not exist
object
object
Example
Method Not Allowed — the HTTP verb is not supported on this endpoint
object
object
Example
Conflict — the resource was modified by someone else since you read it; re-read it and retry with the new version
object
object
Example
Unsupported Media Type — use application/json
object
object
Example
Internal Server Error — an unexpected failure occurred on the server
object
object
Example
Service Unavailable — a downstream dependency is unreachable
