> For the complete documentation index, see [llms.txt](https://docs.mapakalamidad.ph/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mapakalamidad.ph/master/routes/feeds.md).

# Feeds

MapaKalamidad utilises data feeds from a number of third party sources. This endpoint allows the creation of data into the system for authorised users. Note: [authentication](https://docs.petabencana.id/general/authentication.html) is required to post data through the /feeds endpoint.

## POST /feeds

Add a report to the system from [Qlue](http://www.qlue.co.id/). The following attributes are supported for Qlue reports:

| Attribute      | Description                                                                  | Format                                                                | Required |
| -------------- | ---------------------------------------------------------------------------- | --------------------------------------------------------------------- | -------- |
| post\_id       | Unique qlue identifier for the report                                        | Integer                                                               | Yes      |
| created\_at    | Date and time the card was created                                           | Date ([ISO 8601](http://www.iso.org/iso/home/standards/iso8601.htm))  | Yes      |
| title          | The title of the report being filed                                          | String                                                                | No       |
| text           | Description of the disaster event                                            | String                                                                | No       |
| image\_url     | URL of the associated image                                                  | String                                                                | No       |
| disaster\_type | What type of disaster is being reported (currently only `flood`is supported) | String                                                                | Yes      |
| location       | Geographic location of the disaster event                                    | Lat/Long in [ESPG:4326](http://spatialreference.org/ref/epsg/wgs-84/) | Yes      |

Report was successfully created:

```javascript
{
  "post_id": 1234567802,
  "created": true
}
```

The request was successful however the report already exists:

```javascript
{
  "post_id": 1234567802,
  "created": false,
  "message": "1234567802 already exists in reports table"
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.mapakalamidad.ph/master/routes/feeds.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
