# Configuration

{% openapi src="<https://content.gitbook.com/content/tXIYKGMTeHub5C8O9fER/blobs/TC8KXqdBoVrA1ZGmo9Kk/UshahidiV3.json>" path="/api/v3/config" method="get" %}
[UshahidiV3.json](https://content.gitbook.com/content/tXIYKGMTeHub5C8O9fER/blobs/TC8KXqdBoVrA1ZGmo9Kk/UshahidiV3.json)
{% endopenapi %}

{% openapi src="<https://content.gitbook.com/content/tXIYKGMTeHub5C8O9fER/blobs/TC8KXqdBoVrA1ZGmo9Kk/UshahidiV3.json>" path="/api/v3/config/map" method="get" %}
[UshahidiV3.json](https://content.gitbook.com/content/tXIYKGMTeHub5C8O9fER/blobs/TC8KXqdBoVrA1ZGmo9Kk/UshahidiV3.json)
{% endopenapi %}

## Edit Configuration

<mark style="color:orange;">`PUT`</mark> `https://ushahididocs.api.ushahidi.io/api/v3/config/map`

#### Request Body

| Name                 | Type    | Description                                                    |
| -------------------- | ------- | -------------------------------------------------------------- |
| lat                  | Integer | Map latitude                                                   |
| default\_view        | Object  | This object contains more data on the map view                 |
| location\_precision  | Integer | location precision                                             |
| cluster\_radius      | Integer | The cluster radius                                             |
| clustering           | Boolean | True for clustering and false for not clustering               |
| url                  | String  | Configuration URL                                              |
| id                   | String  | Body Identifier for configuration. E.g. Map                    |
| fit\_map\_boundaries | Boolean | Set True to fit map boundaries and false not to fit boundaries |
| baselayer            | String  | View base area                                                 |
| zoom                 | integer | Map zoom                                                       |
| lon                  | Integer | Map longitude                                                  |
| color                | String  | view color                                                     |
| icon                 | String  | map icon name                                                  |
| allowed\_privileges  | Objects | The configuration privilege                                    |

{% tabs %}
{% tab title="200: OK " %}

```javascript
{
    "id": "map",
    "url": "http://localhost:8000/api/v3/config/map",
    "clustering": false,
    "cluster_radius": 80,
    "location_precision": 2,
    "default_view": {
        "lat": -1.3048035,
        "lon": 36.8473969,
        "zoom": 3,
        "baselayer": "MapQuestAerial",
        "fit_map_boundaries": true,
        "icon": "map-marker",
        "color": "blue"
    },
    "allowed_privileges": [
        "read",
        "create",
        "update",
        "delete",
        "search"
    ]
}
```

{% endtab %}
{% endtabs %}
