Create grid
const url = 'https://api.wink.travel/api/managing-entity/c9f7e4e0-3d6f-6c1e-0f5f-8f2d4e7c3f15/studio/grids';const options = { method: 'POST', headers: { 'Wink-Version': '2.0', Authorization: 'Bearer <token>', 'Content-Type': 'application/json' }, body: '{"name":"","customizationIdentifier":"","descriptions":"","keywords":"","listType":"SINGLE","listIdentifier":"","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/c9f7e4e0-3d6f-6c1e-0f5f-8f2d4e7c3f15/studio/grids \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data '{ "name": "", "customizationIdentifier": "", "descriptions": "", "keywords": "", "listType": "SINGLE", "listIdentifier": "", "animate": false, "animateDelay": -1, "sort": "MEMBER", "displayType": "NATIVE" }'Creates a new curated or saved-search grid for the managing entity from the supplied request. Returns the created grid with its assigned identifier.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Managing entity identifier that will own the new grid.
Example
c9f7e4e0-3d6f-6c1e-0f5f-8f2d4e7c3f15Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”object
Descriptive name of this grid for seller use only
Example
Luxury Bangkok PropertiesCustomization configuration identifier
Example
b8e6d3d9-2c5f-5b0d-9e4e-7f1c3d6b2e04Localized title and description of grid (at least one entry in English required)
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.
Keywords and metadata tags for SEO and filtering
Example
[ "bangkok", "luxury"]Type of inventory being curated (LIST, SEARCH, CHANNEL)
Example
LISTInventory record identifier for the curated list, saved search, or channel
Example
d0f8e5f1-4e7f-7d2f-1f6f-9f3e5f8d4f26Generate an animated GIF from multiple images instead of a static grid (requires at least 2 images)
Example
falseDelay between animation frames in milliseconds; -1 disables animation
Example
500Badge type and sort order for display on web component (MEMBER, BEST_VALUE, TOP_RATED, etc.)
Example
MEMBERInitial display format on the front-facing card (NATIVE or alternative format)
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.
Managing entity (account owner) identifier
Descriptive name of this grid for seller use only
Customization configuration identifier
Contains localized title and description of grid (at least one entry in English required)
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.
Keywords and metadata tags for the grid used for SEO and filtering purposes
Current status of the grid (ACTIVE, INACTIVE, ARCHIVED)
List type
Inventory record identifier for the curated list, saved search, or channel (format varies by listType)
Generate an animated GIF from multiple images instead of a static grid (requires at least 2 images)
Delay between animation frames in milliseconds; -1 disables animation
Badge type and sort order for display on the web component (MEMBER, BEST_VALUE, TOP_RATED, etc.)
Indicate which initial values to display first on the front-facing card
Example
{ "id": "", "createdDate": "", "lastUpdate": "", "version": "", "ownerIdentifier": "", "name": "", "customizationIdentifier": "", "descriptions": "", "keywords": "", "status": "ACTIVE", "listType": "SINGLE", "listIdentifier": "", "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
{}