The curl example in anonymous map instantiation is pointing to the SQL API:
{
"version": "1.3.0",
"layers": [
{
"type": "mapnik",
"options": {
"cartocss_version": "2.1.1",
"cartocss": "#layer { polygon-fill: #FFF; }",
"sql": "select * from european_countries_e",
"interactivity": [
"cartodb_id",
"iso3"
]
}
}
]
}
curl -X POST -H "Content-Type: application/json" -d @body.json "https://username.carto.com/api/v2/sql"
But it should point to the Map API.
@CartoDB/dc-managers
The curl example in anonymous map instantiation is pointing to the SQL API:
{ "version": "1.3.0", "layers": [ { "type": "mapnik", "options": { "cartocss_version": "2.1.1", "cartocss": "#layer { polygon-fill: #FFF; }", "sql": "select * from european_countries_e", "interactivity": [ "cartodb_id", "iso3" ] } } ] } curl -X POST -H "Content-Type: application/json" -d @body.json "https://username.carto.com/api/v2/sql"But it should point to the Map API.
@CartoDB/dc-managers