Skip to content

Create Inventory Map

POST
/api/managing-entity/{managingEntityIdentifier}/studio/map
curl --request POST \
--url https://api.wink.travel/api/managing-entity/owner-1/studio/map \
--header 'Content-Type: application/json' \
--header 'Wink-Version: 2.0' \
--data null

Create a new advanced map configuration

managingEntityIdentifier
required
string
""

Create map owned by this owner identifier.

Example
owner-1
Wink-Version
string
default: 2.0.0
Allowed values: 2.0
Media type application/json

Object to save InventoryMap

object
customizationIdentifier
required

Customization identifier

string format: uuid
"" >= 1 characters
Example
customization-1
name
required

Name of map

string
"" >= 1 characters
Example
My lovely map
typeIdentifier
required

Inventory type identifier. Either a single channel inventory identifier, a list identifier or a dynamic search identifier.

string format: uuid
"" >= 1 characters
Example
list-1
type
required

Type of inventory

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

Map center point

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

User can move around / pan the map

boolean
default: true
Example
true
zoomable
required

User can zoom in/out of the map

boolean
default: true
Example
true
initialZoomLevel
required

Valid Google maps zoom level

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

Map style

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

Map marker color

string
""
Allowed values: cc2138
Example
cc2138
mapHeight
required

Map height in pixels

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

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

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

A way to persist a GeoJSON circle

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>
rectangles
Array<object>

Custom-defined rectangles

object
rectangle
required

A GeoJSON rectangle

object
southWest
required

A GeoJSON rectangle

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

A GeoJSON 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

Created

Media type application/json
object
id

Document UUID

string
""
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

Customization identifier

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

Name of map

string
"" >= 1 characters
typeIdentifier
required

Inventory type identifier. Either a single channel inventory identifier, a list identifier or a dynamic search identifier.

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

Type of inventory

string
""
Allowed values: SINGLE LIST SEARCH
center
required

Map center point

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

Valid Google maps zoom level

integer format: int32
"" <= 21
mapStyle
required

Map style

string
""
Allowed values: normal clean bluish
mapMarkerColor
required

Map marker color

string
""
Allowed values: cc2138
mapHeight
required

Map height 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>

A way to persist a GeoJSON circle

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

A GeoJSON rectangle

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

A GeoJSON 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
Example
{
"id": "",
"createdDate": "",
"lastUpdate": "",
"version": "",
"ownerIdentifier": "",
"customizationIdentifier": "",
"name": "",
"typeIdentifier": "",
"type": "SINGLE",
"center": "",
"draggable": true,
"zoomable": true,
"initialZoomLevel": "",
"mapStyle": "normal",
"mapMarkerColor": "cc2138",
"mapHeight": "",
"displayType": "NATIVE",
"circles": [
null
],
"rectangles": [
""
],
"markers": [
""
],
"polygons": [
""
]
}

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
{}