Create a new ranked grid
const url = 'https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/ranked-grids';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', '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 POST \ --url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/ranked-grids \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "name": "", "customizationIdentifier": "", "descriptions": "", "keywords": [ "" ], "lookup": "", "animate": false, "animateDelay": -1, "sort": "MEMBER", "displayType": "NATIVE" }'Persists a new ranked grid for the managing entity and returns the created record. Requires MARKETING:WRITE permission.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier
Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Descriptive name of this list for seller use only
Example
Featured Luxury Resorts BangkokCustomization identifier
Example
7d2e4f1a-6c8b-4a9e-b3d5-1e7f2a0c5b8dContains 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
b7e4c1a2-3f5d-4e8a-9c21-6f0b5d8e3a47Type of lookup (CITY, HOTEL, ACTIVITY, SPA, RESTAURANT, ATTRACTION, ISLAND, COUNTRY, PLACE, MEETING_ROOM)
Example
CITYUnique identifier for the lookup type resource (e.g., hotel ID, city geoname ID)
Example
1609350Human-readable name of the lookup entry
Example
BangkokURL-friendly slug that uniquely identifies this lookup within its type and location
Example
bangkok-thailandIdentifier of the owner (supplier) that created or manages this lookup entry
Example
e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18Name of the owner (supplier) that created this lookup entry
Example
The Siam Residences, BangkokName of the closest city where this lookup entry is located
Example
BangkokCountry name where this lookup entry is located
Example
ThailandState or province where this lookup entry is located
Example
BangkokCounty or district where this lookup entry is located
Example
Khlong San DistrictISO 3166-1 alpha-2 country code
Example
THType of owner that created this lookup (TRAVELIKO for platform-managed entries, HOTEL for supplier-created entries)
Example
TRAVELIKOLanguage code for the lookup name (ISO 639-1 format)
Example
enPlatform-specific sort order (lower values sort first: CITY=1, ISLAND=2, HOTEL=3, others vary)
Example
1Whether this is the primary/original lookup entry for this resource (true) or a variant like an alternate language or name (false)
Example
trueLowercase version of the name, used for regex-based search operations
Example
bangkokGeo-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 to disable
Example
500Determines 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 ”Created
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 (CITY, HOTEL, ACTIVITY, SPA, RESTAURANT, ATTRACTION, ISLAND, COUNTRY, PLACE, MEETING_ROOM)
Unique identifier for the lookup type resource (e.g., hotel ID, city geoname ID)
Human-readable name of the lookup entry
URL-friendly slug that uniquely identifies this lookup within its type and location
Identifier of the owner (supplier) that created or manages this lookup entry
Name of the owner (supplier) that created this lookup entry
Name of the closest city where this lookup entry is located
Country name where this lookup entry is located
State or province where this lookup entry is located
County or district where this lookup entry is located
ISO 3166-1 alpha-2 country code
Type of owner that created this lookup (TRAVELIKO for platform-managed entries, HOTEL for supplier-created entries)
Language code for the lookup name (ISO 639-1 format)
Platform-specific sort order (lower values sort first: CITY=1, ISLAND=2, HOTEL=3, others vary)
Whether this is the primary/original lookup entry for this resource (true) or a variant like an alternate language or name (false)
Lowercase version of the name, used for regex-based search operations
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
{}