Skip to content

Wrong endpoint in the curl example of anonymous map instantiation  #710

@manmorjim

Description

@manmorjim

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions