Advisories

Requirements

A URL endpoint where we will POST the data:

New advisories are sent via a POST request.

POST http://www.example.com/advisories

Updates to existing advisories are done via PUT requests

POST http://www.example.com/advisories/:id

Removing advisories is done via a DELETE request

DELETE http://www.example.com/advisories/:id

Format

The data is json encoded.

Fields

id: integer,

text: string

is_published: boolean

title: string

risk_level_id: integer (1 to 5)

risk_level: string (Low, Moderate, Medium, High, Extreme)

country: string, 2 letter iso_code

geometries: optional, array of polygons

country_geometries: array of polygons for the country shape

A geometry has the following fields:

coordinates: geometry.coordinates

color: geometry.color

text: optional, string

name: optional, string

Sample

https://riskline.riskline.com/help/integrations/advisories

Did this answer your question?