Update Ranked Grid
const url = 'https://api.wink.travel/api/managing-entity/owner-1/studio/ranked-grids/list-1';const options = { method: 'PUT', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: '{"name":"","customizationIdentifier":"","descriptions":"","keywords":[""],"lookup":"","animate":false,"animateDelay":-1,"sort":"MEMBER","displayType":"NATIVE"}'};
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/owner-1/studio/ranked-grids/list-1 \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "name": "", "customizationIdentifier": "", "descriptions": "", "keywords": [ "" ], "lookup": "", "animate": false, "animateDelay": -1, "sort": "MEMBER", "displayType": "NATIVE" }'Update existing ranked grid
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Update list owned by this owner identifier.
Example
owner-1Update list with this identifier.
Example
list-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Descriptive name of this list for seller use only
Example
My ranked listCustomization identifier
Example
customization-1Contains custom title and description of grid
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.
The destination to display ranked inventory from.
object
Unique lookup identifier
Example
lookup-1Type of lookup
Example
CITYUnique lookup type identifier
Example
lookup-city-1Name of lookup
Example
Archery on horsebackUrl-friendly slug that uniquely identifies this lookup
Example
archery-on-horsebackLookup that is supplier inventory includes the supplier identifier
Example
hotel-1Lookup that is supplier inventory includes the supplier name
Example
My Chic HotelClosest city where lookup entry is located
Example
Los AngelesCountry where lookup entry is located
Example
United StatesState where lookup entry is located
Example
CaliforniaCounty where lookup entry is located
Example
Orange CountyCountry code
Example
USThe type of owner that created this lookup
Example
HOTELThe language the lookup code was written in
Example
en-USPlatform-specific sort
Example
2If this lookup is the origin lookup.
Example
trueName in lower case
Example
archery on horsebackGeo-location
object
Example
{ "type": "POINT", "coordinates": [ 100.5581533, 13.7370197 ]}Create an animated gif instead of a list of images
Example
falseControls animation delay in milliseconds. -1 is disabled
Determines which badge to show on the Web Component. Is also used to sort properties for search grids.
Example
MEMBERIndicate which initial values to display first on the front-facing card
Example
NATIVEResponses
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.
AffiliateAccount identifier
Descriptive name of this list for seller use only
Customization identifier
Contains custom title and description of grid
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.
Status
The destination to display ranked inventory from.
object
Unique lookup identifier
Type of lookup
Unique lookup type identifier
Name of lookup
Url-friendly slug that uniquely identifies this lookup
Lookup that is supplier inventory includes the supplier identifier
Lookup that is supplier inventory includes the supplier name
Closest city where lookup entry is located
Country where lookup entry is located
State where lookup entry is located
County where lookup entry is located
Country code
The type of owner that created this lookup
The language the lookup code was written in
Platform-specific sort
If this lookup is the origin lookup.
Name in lower case
Geo-location
object
Create an animated gif instead of a list of images
Controls animation delay in milliseconds. -1 is disabled
Determines which badge to show on the Web Component. Is also used to sort properties for search grids.
Indicate which initial values to display first on the front-facing card
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "ownerIdentifier": "", "name": "", "customizationIdentifier": "", "descriptions": "", "keywords": [ "" ], "status": "ACTIVE", "lookup": "", "animate": false, "animateDelay": -1, "sort": "MEMBER", "displayType": "NATIVE"}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
{}