Requesting Hazard Categories

To request the list of hazard categories configured in the system please use the route defined here:

Get hazard categories

GET https://api.disasteraware.com/hazards/categories

Headers

NameTypeDescription

Authorization

string

Authorize to access the API.

[
    {
        "category_id": "EVENT",
        "category_name": "Event"
    },
    {
        "category_id": "EXERCISE",
        "category_name": "Exercise"
    },
    {
        "category_id": "OTHER",
        "category_name": "Other"
    },
    {
        "category_id": "RESPONSE",
        "category_name": "Response"
    }
]

See Authorizing Requests page to get your accessToken.

curl --location --request GET \
  'https://api.disasteraware.com/hazards/categories' \
  --header 'Authorization: Bearer your_accessToken'

This request will return an array that contains all of the hazard severities. Each element in the array will have two properties:

Properties

Definitions

category_id

This is like the primary key for the hazard category. This is the value that will be found on the hazard object.

category_name

A human readable value for the category e.g. Event.

The following shapes are associated with each hazard category:

Categories

Shapes

EVENT

Circle

RESPONSE

Star

EXERCISE

Triangle

OTHER

Hexagon

Last updated