Replace a dataset on a map, updating the visualization with the data from the new dataset.
Method
POST https://data-api.foursquare.com/v1/maps/<uuid>/datasets/replace HTTP/1.1
Response
The Map
object that was operated on.
{
"id": "string",
"name": "string",
"createdAt": "2020-11-03T21:27:14.000Z",
"updatedAt": "2020-11-13T01:44:07.000Z",
"description": "string",
"privacy": "private",
"permission": "editor",
"latestState": {
"id": "string",
"data": MapConfig
},
"datasets": [
{
"id": "string",
"name": "string",
"createdAt": "2020-11-10T18:09:39.000Z",
"updatedAt": "2020-11-10T18:09:39.000Z",
"privacy": "private",
"permission": "editor",
"isValid": true
}
]
}
Examples
curl -X POST https://data-api.foursquare.com/v1/maps/<uuid>/clone \
-H 'Authorization: Bearer <token>