Delete Map
const url = 'https://api.wink.travel/api/managing-entity/owner-1/studio/map/map-1';const options = {method: 'DELETE', headers: {'Wink-Version': '2.0'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.wink.travel/api/managing-entity/owner-1/studio/map/map-1 \ --header 'Wink-Version: 2.0'Remove an advanced map configuration
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Remove map owned by this owner identifier.
Example
owner-1Remove map record with this identifier.
Example
map-1Header Parameters
Section titled “Header Parameters ”Responses
Section titled “ Responses ”OK
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
{}