Layer Components
APIs to build dashboards
The ID of the map the layer belongs to.
The ID of the layer the components belong to.
Layer components list
UnauthorizedError
UnauthorizedError
NotFoundError
Unprocessable Entity
Unprocessable Entity
InternalServerError
GET /api/v2/maps/{map_id}/layers/{layer_id}/components HTTP/1.1
Host: felt.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"config": {
"reactive": true,
"viewport_mode": "global"
},
"data": {
"aggregate": "count",
"format": null
},
"id": "text",
"layer_id": "text",
"title": "text",
"type": "statistic"
}
]The ID of the map the layer belongs to.
The ID of the layer the component belongs to.
Layer component
UnauthorizedError
UnauthorizedError
NotFoundError
Unprocessable Entity
Unprocessable Entity
InternalServerError
POST /api/v2/maps/{map_id}/layers/{layer_id}/components HTTP/1.1
Host: felt.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 215
{
"config": {
"selection": [
"zoning",
"in",
[
"residential"
]
]
},
"data": {
"aggregate": "sum",
"aggregate_by": "area_sqm",
"format": {
"thousandSeparated": true
},
"group_by": "zoning"
},
"title": "Total area by zoning",
"type": "bar_chart"
}{
"config": {
"reactive": true,
"viewport_mode": "global"
},
"data": {
"aggregate": "count",
"format": null
},
"id": "text",
"layer_id": "text",
"title": "text",
"type": "statistic"
}The ID of the map the layer belongs to.
The ID of the layer the component belongs to.
The ID of the layer component.
Layer component
UnauthorizedError
UnauthorizedError
NotFoundError
Unprocessable Entity
Unprocessable Entity
InternalServerError
GET /api/v2/maps/{map_id}/layers/{layer_id}/components/{component_id} HTTP/1.1
Host: felt.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"config": {
"reactive": true,
"viewport_mode": "global"
},
"data": {
"aggregate": "count",
"format": null
},
"id": "text",
"layer_id": "text",
"title": "text",
"type": "statistic"
}The ID of the map the layer belongs to.
The ID of the layer the component belongs to.
The ID of the layer component.
Layer component
UnauthorizedError
UnauthorizedError
NotFoundError
Unprocessable Entity
Unprocessable Entity
InternalServerError
POST /api/v2/maps/{map_id}/layers/{layer_id}/components/{component_id} HTTP/1.1
Host: felt.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 111
{
"config": {
"reactive": true,
"viewport_mode": "global"
},
"data": {
"aggregate": "count",
"format": null
},
"title": "text"
}{
"config": {
"reactive": true,
"viewport_mode": "global"
},
"data": {
"aggregate": "count",
"format": null
},
"id": "text",
"layer_id": "text",
"title": "text",
"type": "statistic"
}The ID of the map the layer belongs to.
The ID of the layer the component belongs to.
The ID of the layer component.
No Content
No content
UnauthorizedError
UnauthorizedError
NotFoundError
Unprocessable Entity
Unprocessable Entity
InternalServerError
DELETE /api/v2/maps/{map_id}/layers/{layer_id}/components/{component_id} HTTP/1.1
Host: felt.com
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?