Create Grid
const url = 'https://api.wink.travel/api/managing-entity/owner-1/studio/grids';const options = { method: 'POST', headers: {'Wink-Version': '2.0', '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/owner-1/studio/grids \ --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" }'Create a new curated / saved search list
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Create list owned by this owner identifier.
Example
owner-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 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.
Keywords is meta data for the grid you created that can be used for SEO purposes.
Example
[ "bali"]List type
Example
LISTDepending on the listType, this is either the list / search / channel inventory identifier.
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 ”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.
Keywords is meta data for the grid you created that can be used for SEO purposes.
Status
List type
Depending on the listType, this is either the list / search / channel inventory identifier.
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", "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
{}