Skip to content

Update grid

PUT
/api/managing-entity/{managingEntityIdentifier}/studio/grids/{listIdentifier}
curl --request PUT \
--url https://api.wink.travel/api/managing-entity/c9f7e4e0-3d6f-6c1e-0f5f-8f2d4e7c3f15/studio/grids/a7d5f2c8-1b4e-4a9c-8d3f-6e0b2c5a1f93 \
--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" }'

Updates the identified curated or saved-search grid owned by the managing entity with the values in the request body. Returns the updated grid.

managingEntityIdentifier
required
string
""

Managing entity identifier that owns the grid.

Example
c9f7e4e0-3d6f-6c1e-0f5f-8f2d4e7c3f15
listIdentifier
required
string
""

Grid identifier to update.

Example
a7d5f2c8-1b4e-4a9c-8d3f-6e0b2c5a1f93
Wink-Version
string
default: 2.0.0
Allowed values: 2.0
Media type application/json
object
name
required

Descriptive name of this grid for seller use only

string
"" >= 1 characters
Example
Luxury Bangkok Properties
customizationIdentifier
required

Customization configuration identifier

string format: uuid
"" >= 1 characters
Example
b8e6d3d9-2c5f-5b0d-9e4e-7f1c3d6b2e04
descriptions
required

Localized title and description of grid (at least one entry in English required)

Array<object>
"" >= 1 items <= 2147483647 items
object
name
required

Use as title or short text description

string
""
Example
An example title
description
required

Longer text description

string
"" >= 1 characters <= 2147483647 characters
Example
This is a longer description in the specified language.
language
required

Indicate which language this description is written in.

string
default: en >= 2 characters <= 2 characters
Example
en
creator

Whether it was user or system generated.

string
default: USER
Allowed values: SYSTEM USER
Example
SYSTEM
md5ContentHash

The md5 hash of the name, description and language.

string
""
hashMismatch
boolean
keywords
required

Keywords and metadata tags for SEO and filtering

Array<string>
"" >= 1 items <= 2147483647 items
Example
[
"bangkok",
"luxury"
]
listType
required

Type of inventory being curated (LIST, SEARCH, CHANNEL)

string
""
Allowed values: SINGLE LIST SEARCH
Example
LIST
listIdentifier
required

Inventory record identifier for the curated list, saved search, or channel

string format: uuid
"" >= 1 characters
Example
d0f8e5f1-4e7f-7d2f-1f6f-9f3e5f8d4f26
animate

Generate an animated GIF from multiple images instead of a static grid (requires at least 2 images)

boolean
Example
false
animateDelay

Delay between animation frames in milliseconds; -1 disables animation

integer format: int32
default: -1
Example
500
sort

Badge type and sort order for display on web component (MEMBER, BEST_VALUE, TOP_RATED, etc.)

string
""
Allowed values: MEMBER PRICE_LOW_TO_HIGH PRICE_HIGH_TO_LOW PRICE POPULARITY ECO EXPERIENCE PERK LOYALTY ADD_ON
Example
MEMBER
displayType
required

Initial display format on the front-facing card (NATIVE or alternative format)

string
default: NATIVE
Allowed values: NATIVE HOTEL ROOM
Example
NATIVE

OK

Media type application/json
object
id

Document UUID

string format: uuid
""
createdDate

Datetime this record was first created

string format: date-time
""
lastUpdate

Datetime this record was last updated

string format: date-time
""
version

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.

integer format: int64
""
ownerIdentifier
required

Managing entity (account owner) identifier

string format: uuid
"" >= 1 characters
name
required

Descriptive name of this grid for seller use only

string
"" >= 1 characters
customizationIdentifier
required

Customization configuration identifier

string format: uuid
"" >= 1 characters
descriptions
required

Contains localized title and description of grid (at least one entry in English required)

Array<object>
"" >= 1 items <= 2147483647 items
object
name
required

Use as title or short text description

string
""
description
required

Longer text description

string
"" >= 1 characters <= 2147483647 characters
language
required

Indicate which language this description is written in.

string
default: en >= 2 characters <= 2 characters
creator

Whether it was user or system generated.

string
default: USER
Allowed values: SYSTEM USER
md5ContentHash

The md5 hash of the name, description and language.

string
""
hashMismatch
boolean
keywords
required

Keywords and metadata tags for the grid used for SEO and filtering purposes

Array<string>
"" >= 1 items <= 2147483647 items
status
required

Current status of the grid (ACTIVE, INACTIVE, ARCHIVED)

string
default: ACTIVE
Allowed values: ACTIVE INACTIVE REMOVED
listType
required

List type

string
""
Allowed values: SINGLE LIST SEARCH
listIdentifier
required

Inventory record identifier for the curated list, saved search, or channel (format varies by listType)

string format: uuid
"" >= 1 characters
animate

Generate an animated GIF from multiple images instead of a static grid (requires at least 2 images)

boolean
animateDelay

Delay between animation frames in milliseconds; -1 disables animation

integer format: int32
default: -1
sort

Badge type and sort order for display on the web component (MEMBER, BEST_VALUE, TOP_RATED, etc.)

string
""
Allowed values: MEMBER PRICE_LOW_TO_HIGH PRICE_HIGH_TO_LOW PRICE POPULARITY ECO EXPERIENCE PERK LOYALTY ADD_ON
displayType
required

Indicate which initial values to display first on the front-facing card

string
default: NATIVE
Allowed values: NATIVE HOTEL ROOM
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
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
Example generated
{
"type": "https://example.com",
"title": "example",
"status": 1,
"detail": "example",
"instance": "https://example.com",
"properties": {
"additionalProperty": "example"
}
}

Unauthorized

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Forbidden

Media type */*
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties

Internal Server Error

object
Example generated
{}