Closed Mloweedgar closed 5 years ago
@lykmapipo Here is the payload I sent:
{
event: {
name: 'Flood and Landslide',
urgency: 'Expected',
severity: 'Minor',
certainty: 'Likely'
},
message: {
instruction: 'this is for testing purpose only'
},
area: {
geometry: {
type: 'Feature',
properties: {},
geometry: {
type: 'Polygon',
coordinates: [
[
[
38.17749,
-9.373193
],
[
38.188477,
-9.698228
],
[
38.583984,
-9.665738
],
[
38.62793,
-9.308149
],
[
38.17749,
-9.373193
]
]
]
}
}
}
}
@Mloweedgar Please see the structure of payload below for reference
{
"source":
{
"name": "Tanzania Meteorological Agency",
"phone": "255 22 2460706-8",
"email": "severe@meteo.go.tz",
"website": "met@meteo.go.tz"
},
"event":
{
"name": "Iusto dolores blanditiis vero.",
"category": "Geo",
"urgency": "Past",
"severity": "Unknown",
"certainty": "Likely",
"response": "Monitor"
},
"message":
{
"instruction": "Assumenda animi fuga placeat excepturi."
},
"area":
{
"description": "Bedfordshire",
"geometry":
{
"type": "Polygon",
"coordinates": [
[
[38.17749, -9.373193],
[38.188477, -9.698228],
[38.583984, -9.665738],
[38.62793, -9.308149],
[38.17749, -9.373193]
]
]
}
}
}
We agreed required fields should only be event, urgency, certainty, severity, instructions and area
this is the error object I get. may be you could reduce some required fields