Get incidents for a specific location
get
/connectedWorker/clientapi/v2/projects/{projectId}/locations/{locationId}/incidents
This operation retrieves the incidents for a given location.
Request
Path Parameters
-
locationId: integer(int64)
Location identifier
-
projectId: integer(int64)
Project identifier
Response
Supported Media Types
- application/json
200 Response
Incidents were successfully retrieved
Nested Schema : Incident
Type:
Show Source
object-
altitude(optional):
number
Altitude of occurrence of the incident. Used only for incident creation.Example:
12.12345 -
createdTime(optional):
string(date-time)
Read Only:
trueTime when the incident was created in ISO-8601 format.Example:2018-01-01T11:59:59 -
description:
string
Description of the incident. Can be updated. Cannot be blank.Example:
Description of an incident -
employeeId:
string
Id of the employee for whom the incident was created. Used only for incident creation.Example:
johnSmith -
id(optional):
integer(int64)
Read Only:
trueThe unique id of the objectExample:53 -
lastModifiedTime(optional):
string(date-time)
Read Only:
trueTime when the incident was modified for the last time in ISO-8601 format.Example:2018-01-01T11:59:59 -
latitude:
number
Minimum Value:
-90Maximum Value:90Latitude of occurrence of the incident. Used only for incident creation.Example:39.215302 -
links(optional):
array links
-
longitude:
number
Minimum Value:
-180Maximum Value:180Longitude of occurrence of the incident. Used only for incident creationExample:26.308674 -
priority:
string
Allowed Values:
[ "HIGH", "MEDIUM", "LOW" ]Priority of the incident.Example:HIGH -
source(optional):
string
Read Only:
trueAllowed Values:[ "RULE", "MANUALLY_CREATED" ]Source of the incident.Example:RULE -
state(optional):
string
Allowed Values:
[ "NEW", "OPEN", "WORK_IN_PROGRESS", "RESOLVED", "WITHDRAWN" ]State of the incident. Automatically assigned to 'NEW' on backend during creation of the incident. Can be updated.Example:NEW -
summary:
string
Minimum Length:
0Maximum Length:255Summary of the incident. Can be updated. Cannot be blank. Max length is 255 characters.Example:This is a summary of an incident -
tags(optional):
array tags
Unique Items Required:
trueTags for this incident. Can be updated. -
type:
string
Allowed Values:
[ "HAZARD", "SAFETY_VIOLATION", "ACCIDENT" ]Type of the incident.Example:HAZARD
Nested Schema : Link
Type:
Show Source
object-
href:
string
The target resource's URI
-
rel:
string
Relation type