Get hazard details
get
/connectedWorker/clientapi/v2/projects/{projectId}/hazards/{hazardId}
This operation retrieves the details of a specific hazard.
Request
Path Parameters
-
hazardId: integer(int64)
Hazard identifier
-
projectId: integer(int64)
Project identifier
Response
Supported Media Types
- application/json
200 Response
Hazard was successfully retrieved
Root Schema : Hazard
Type:
Show Source
object-
action:
string
Minimum Length:
0Maximum Length:255Action that must be taken, cannot be blank, max length is 255 charactersExample:Evacuate immediately -
created(optional):
string(date-time)
Read Only:
trueHazard creation time in ISO-8601 formatExample:2018-01-01T11:59:59 -
id(optional):
integer(int64)
Read Only:
trueThe 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" ]Severity of the hazardExample:hazard.severity.medium -
severityValue(optional):
string
Read Only:
trueConfigurable text interpretation of the severityExample:Configured severity value -
status(optional):
string
Read Only:
trueAllowed Values:[ "OPEN", "RESOLVED" ]Status of the hazardExample:OPEN -
subject:
string
Minimum Length:
0Maximum Length:255Subject of the hazard, cannot be blank, max length is 255 charactersExample:Gas leak
Nested Schema : locationIds
Type:
arrayLocations affected by the hazard, cannot be empty
Show Source
Example:
[51, 52]Nested Schema : Link
Type:
Show Source
object-
href:
string
The target resource's URI
-
rel:
string
Relation type