Feeds
Petabencana 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 is required to post data through the /feeds endpoint.
POST /feeds/qlue
Add a report to the system from Qlue. The following attributes are supported for Qlue reports:
Attribute
Description
Format
Required
post_id
Unique qlue identifier for the report
Integer
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
qlue_city
From which city was the report generated (must be one of jabodetabek
, bandung
, surabaya
)
String
Yes
disaster_type
What type of disaster is being reported (currently only flood
is supported)
String
Yes
Here is a simple call to POST a new Qlue report:
Report was successfully created:
The request was successful however the report already exists:
Last updated