Skip to content

Update

PUT
/api/managing-entity/{managingEntityIdentifier}/studio/map/{mapIdentifier}
curl --request PUT \
--url https://api.wink.travel/api/managing-entity/d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69/studio/map/f8a3d7e1-2b6c-4f9a-8c15-3e7d1a9c5b42 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data null

Modify an existing map configuration with the supplied settings.

managingEntityIdentifier
required
string
""

UUID of the managing entity that owns the map.

Example
d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69
mapIdentifier
required
string
""

UUID of the map to update.

Example
f8a3d7e1-2b6c-4f9a-8c15-3e7d1a9c5b42
Wink-Version
string
default: 2.0.0
Allowed values: 2.0

Updated map configuration including name, center coordinates, zoom level, style and the list of inventory items to display as markers

Media type application/json

Request to create or update a map configuration for displaying inventory

object
customizationIdentifier
required

UUID of the customization context (e.g., Wink Links, channel manager)

string format: uuid
"" >= 1 characters
Example
3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51
name
required

Display name for this map

string
"" >= 1 characters
Example
Premium Hotels in Southeast Asia
typeIdentifier
required

UUID of the inventory source: single channel inventory, curated list, or dynamic search

string format: uuid
"" >= 1 characters
Example
7a0c5d9e-2f6b-4c1a-8e4d-3b9f1a0c6d52
type
required

Category of inventory being displayed (SINGLE, LIST, or SEARCH)

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

GeoJSON point defining map center (longitude, latitude)

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
Example
{
"type": "Point",
"coordinates": [
100.5581533,
13.7370197
]
}
draggable
required

Allow users to pan the map by dragging

boolean
default: true
Example
true
zoomable
required

Allow users to zoom in and out

boolean
default: true
Example
true
initialZoomLevel
required

Initial zoom level (0-21, where 0 shows the entire world)

integer format: int32
"" <= 21
Example
15
mapStyle
required

Map visual style (normal, clean, or bluish)

string
""
Allowed values: normal clean bluish
Example
normal
mapMarkerColor
required

Hexadecimal color code for map markers

string
""
Allowed values: cc2138
Example
cc2138
mapHeight
required

Height of the embedded map in pixels

integer format: int32
"" >= 1
Example
500
displayType
required

Which data to display initially (NATIVE, MODIFIED, or AFFILIATE)

string
default: NATIVE
Allowed values: NATIVE HOTEL ROOM
Example
NATIVE
circles
Array<object>

Optional circular overlay regions on the map

object
radius
required

Circle radius from center

number format: double
""
Example
2.5
point
required

Circle center point

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
Example
{
"radius": 2.5
}
rectangles
Array<object>

Optional rectangular overlay regions on the map

object
rectangle
required

A GeoJSON rectangle

object
southWest
required

South-west corner of the geographic bounding rectangle

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
northEast
required

North-east corner of the geographic bounding rectangle

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
markers
Array<object>

Optional custom markers to display on the map

object
point
required

A GeoJSON point

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
polygons
Array<object>

Optional polygonal overlay regions on the map

object
polygon
required

A GeoJSON polygon

object
points
Array<object>
object
x
number format: double
y
number format: double
coordinates
Array<object>
object
type
string
coordinates
Array<object>
object
x
number format: double
y
number format: double
type
string
Example
{
"customizationIdentifier": "3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51",
"name": "Premium Hotels in Southeast Asia",
"typeIdentifier": "7a0c5d9e-2f6b-4c1a-8e4d-3b9f1a0c6d52",
"type": "LIST",
"center": {
"type": "Point",
"coordinates": [
100.5581533,
13.7370197
]
},
"draggable": true,
"zoomable": true,
"initialZoomLevel": 15,
"mapStyle": "normal",
"mapMarkerColor": "cc2138",
"mapHeight": 500,
"displayType": "NATIVE",
"circles": [
{
"radius": 2.5
}
]
}

Updated map configuration

Media type application/json

Inventory map configuration for displaying sellable inventory on an embedded map

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

Map owner identifier

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

UUID of the customization context (e.g., Wink Links, channel manager)

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

Display name for this map

string
"" >= 1 characters
typeIdentifier
required

UUID of the inventory source: single channel inventory, curated list, or dynamic search

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

Category of inventory being displayed (SINGLE, LIST, or SEARCH)

string
""
Allowed values: SINGLE LIST SEARCH
center
required

GeoJSON point defining map center (longitude, latitude)

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
draggable
required

User can move around / pan the map

boolean
default: true
zoomable
required

User can zoom in/out of the map

boolean
default: true
initialZoomLevel
required

Initial zoom level (0-21, where 0 shows the entire world)

integer format: int32
"" <= 21
mapStyle
required

Map visual style (normal, clean, or bluish)

string
""
Allowed values: normal clean bluish
mapMarkerColor
required

Hexadecimal color code for map markers

string
""
Allowed values: cc2138
mapHeight
required

Height of the embedded map in pixels

integer format: int32
"" >= 1
displayType
required

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

string
default: NATIVE
Allowed values: NATIVE HOTEL ROOM
circles
Array<object>

Custom-defined circles

object
radius
required

Circle radius from center

number format: double
""
point
required

Circle center point

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
rectangles
Array<object>

Custom-defined rectangles

object
rectangle
required

A GeoJSON rectangle

object
southWest
required

South-west corner of the geographic bounding rectangle

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
northEast
required

North-east corner of the geographic bounding rectangle

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
markers
Array<object>

Custom-defined markers

object
point
required

A GeoJSON point

object
x
number format: double
y
number format: double
type
string
coordinates
Array<number>
polygons
Array<object>

Custom-defined polygons

object
polygon
required

A GeoJSON polygon

object
points
Array<object>
object
x
number format: double
y
number format: double
coordinates
Array<object>
object
type
string
coordinates
Array<object>
object
x
number format: double
y
number format: double
type
string
key
additional properties
""
Example
{
"id": "3c6b1a5d-8e2f-4a0b-9c7d-6e4f0a8b2c51",
"ownerIdentifier": "d5b8a3c2-9e6f-4a1b-8d34-7c2e1f0a5b69",
"customizationIdentifier": "a2c8f1d4-5e9b-4a7c-9f23-6b1e8d4c2f05",
"name": "Premium Hotels in Southeast Asia",
"typeIdentifier": "e2c7b4d3-1a8f-4e9c-b5d6-3a9f0e7c2b18",
"type": "LIST",
"center": {
"type": "Point",
"coordinates": [
100.5581533,
13.7370197
]
},
"draggable": true,
"zoomable": true,
"initialZoomLevel": 15,
"mapStyle": "normal",
"mapMarkerColor": "cc2138",
"mapHeight": 500,
"displayType": "NATIVE"
}

Bad Request — missing or invalid request parameter or body

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Unauthorized — authentication is required or the session has expired

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Forbidden — authenticated but lacking the required permission or scope

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Not Found — the requested resource does not exist

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Method Not Allowed — the HTTP verb is not supported on this endpoint

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Unsupported Media Type — use application/json

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Internal Server Error — an unexpected failure occurred on the server

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example

Service Unavailable — a downstream dependency is unreachable

Media type application/problem+json
object
type
string format: uri
title
string
status
integer format: int32
detail
string
instance
string format: uri
properties
object
key
additional properties
key
additional properties
""
Example