front

Backend

API Routes

Test backend

Get the kepler configuration

Get the instance configuration

{
  "siteTitle": "Instance Name",

  "mapboxToken": "mapboxToken",
  "defaultMapLocation": {
	  "latitude": 0,
	  "longitude": 0,
	  "zoom": 10
  },
  "defaultMapBoxStyleUrl": "mapbox://styles/yourmapboxstyle",
  "modules": {
	  "exportDataBtn": true
  },
  "theme": {
	  "filterSidePanel": {
		  "buttonColorRange": [
			  "#dc7e6d",
			  "#69b59d",
			  "#c3c356"
		  ]
	  }
  },
  "bottomRightButtons": [
	  {
		  "text": "hey im a button",
		  "url": "url"
	  },
	  {
		  "text": "hey im a button",
		  "url": "url"
	  }
  ],
  "layers": [
	  {
		  "name": "layerName",
		  "type": "notion",
		  "url": "notionUrl",
		  "id": 0
	  },
	  {
		  "name": "GeoJson Data api",
		  "type": "geojson",
		  "url": "url",
		  "id": 1
	  }
  ]
}

Update the kepler configuration


### Update the instance configuration

- **URL**
/api/conf/instance

- **Method**
`POST`

- **Data Constrains**

	The kepler json is created trough the kepler interface

	**body:** `form-data`
	**key:** `configuration_instance`

	**value:**
```json 
	{
	  "siteTitle": "Instance Name",

	  "mapboxToken": "mapboxToken",
	  "defaultMapLocation": {
		  "latitude": 0,
		  "longitude": 0,
		  "zoom": 10
	  },
	  "defaultMapBoxStyleUrl": "mapbox://styles/yourmapboxstyle",
	  "modules": {
		  "exportDataBtn": true
	  },
	  "theme": {
		  "filterSidePanel": {
			  "buttonColorRange": [
				  "#dc7e6d",
				  "#69b59d",
				  "#c3c356"
			  ]
		  }
	  },
	  "bottomRightButtons": [
		  {
			  "text": "hey im a button",
			  "url": "url"
		  },
		  {
			  "text": "hey im a button",
			  "url": "url"
		  }
	  ],
	  "layers": [
		  {
			  "name": "layerName",
			  "type": "notion",
			  "url": "notionUrl",
			  "id": 0
		  },
		  {
			  "name": "GeoJson Data api",
			  "type": "geojson",
			  "url": "url",
			  "id": 1
		  }
	  ]
	}

```

Get a formated dataset