Get hazard details.
get
/connectedWorker/clientapi/v2/orgs/{orgId}/projects/{projectId}/hazards/{hazardId}
This operation retrieves the details of a specific hazard.
Request
Path Parameters
-
hazardId: string
Hazard identifier
-
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
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 format -
id(optional):
string
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" ] -
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
-
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