Get hazards.
get
/connectedWorker/clientapi/v2/orgs/{orgId}/projects/{projectId}/hazards
This operation retrieves hazards for a project.
Request
Path Parameters
-
orgId: string
Organization identifier
-
projectId: string
Project identifier
There's no request body for this operation.
Back to TopResponse
Supported Media Types
- application/json
200 Response
Hazards were successfully retrieved.
Root Schema : Hazards
Type:
Show Source
object
-
items:
array items
-
links(optional):
array links
Read Only:
true
Nested Schema : Hazard
Type:
Show Source
object
-
action:
string
Minimum Length:
0
Maximum Length:255
Action that must be taken, cannot be blank, max length is 255 charactersExample:Evacuate immediately
-
created(optional):
string(date-time)
Read Only:
true
Hazard creation time in ISO-8601 format -
id(optional):
string
Read Only:
true
The unique id of the objectExample:53
-
links(optional):
array links
-
locationIds:
array locationIds
Locations affected by the hazard, cannot be empty
-
message(optional):
string
Optional message describing the hazard detailsExample:
This is detailed message describing hazard in more detail
-
severity:
string
Allowed Values:
[ "hazard.severity.low", "hazard.severity.medium", "hazard.severity.high" ]
-
severityValue(optional):
string
Read Only:
true
Configurable text interpretation of the severityExample:Configured severity value
-
status(optional):
string
Read Only:
true
Allowed Values:[ "OPEN", "RESOLVED" ]
Status of the hazardExample:OPEN
-
subject:
string
Minimum Length:
0
Maximum Length:255
Subject of the hazard, cannot be blank, max length is 255 charactersExample:Gas leak
Nested Schema : locationIds
Type:
array
Locations affected by the hazard, cannot be empty
Show Source
-
Array of:
string
Locations affected by the hazard, cannot be emptyExample:
[51,52]
Example:
[
51,
52
]
Nested Schema : Link
Type:
Show Source
object
-
href:
string
The target resource's URI
-
rel:
string
Relation type