Create Inventory Map
const url = 'https://api.wink.travel/api/managing-entity/owner-1/studio/map';const options = { method: 'POST', headers: {'Wink-Version': '2.0', 'Content-Type': 'application/json'}, body: 'null'};
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/map \ --header 'Content-Type: application/json' \ --header 'Wink-Version: 2.0' \ --data nullCreate a new advanced map configuration
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Create map owned by this owner identifier.
Example
owner-1Header Parameters
Section titled “Header Parameters ”Request Body required
Section titled “Request Body required ”Object to save InventoryMap
object
Customization identifier
Example
customization-1Name of map
Example
My lovely mapInventory type identifier. Either a single channel inventory identifier, a list identifier or a dynamic search identifier.
Example
list-1Type of inventory
Example
LISTMap center point
object
Example
{ "type": "Point", "coordinates": [ 90, 90 ]}User can move around / pan the map
Example
trueUser can zoom in/out of the map
Example
trueValid Google maps zoom level
Example
15Map style
Example
normalMap marker color
Example
cc2138Map height in pixels
Example
500Indicate which initial values to display first on the front-facing card
Example
NATIVEA way to persist a GeoJSON circle
object
Circle radius from center
Example
2.5Circle center point
object
Custom-defined rectangles
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
Custom-defined markers
object
A GeoJSON point
object
Custom-defined polygons
object
A GeoJSON polygon
object
object
object
object
Responses
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.
Map owner identifier
Customization identifier
Name of map
Inventory type identifier. Either a single channel inventory identifier, a list identifier or a dynamic search identifier.
Type of inventory
Map center point
object
User can move around / pan the map
User can zoom in/out of the map
Valid Google maps zoom level
Map style
Map marker color
Map height in pixels
Indicate which initial values to display first on the front-facing card
A way to persist a GeoJSON circle
object
Circle radius from center
Circle center point
object
Custom-defined rectangles
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
A GeoJSON rectangle
object
Custom-defined markers
object
A GeoJSON point
object
Custom-defined polygons
object
A GeoJSON polygon
object
object
object
object
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
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
{}