# Configuration

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

{% openapi src="/files/DFxnj85ZsASPYXzkPAko" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ushahidi.com/v3-ushahidi-platform-rest-api-documentation/v3/configuration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
