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
Back to Top

Response

Supported Media Types

200 Response

Incidents were successfully retrieved
Body ()
Root Schema : Incidents
Type: object
Show Source
Nested Schema : items
Type: array
Show Source
Nested Schema : Incident
Type: object
Show Source
  • Altitude of occurrence of the incident. Used only for incident creation.
    Example: 12.12345
  • Read Only: true
    Time when the incident was created in ISO-8601 format.
    Example: 2018-01-01T11:59:59
  • Description of the incident. Can be updated. Cannot be blank.
    Example: Description of an incident
  • Id of the employee for whom the incident was created. Used only for incident creation.
    Example: johnSmith
  • Read Only: true
    The unique id of the object
    Example: 53
  • Read Only: true
    Time when the incident was modified for the last time in ISO-8601 format.
    Example: 2018-01-01T11:59:59
  • Minimum Value: -90
    Maximum Value: 90
    Latitude of occurrence of the incident. Used only for incident creation.
    Example: 39.215302
  • links
  • Minimum Value: -180
    Maximum Value: 180
    Longitude of occurrence of the incident. Used only for incident creation
    Example: 26.308674
  • Allowed Values: [ "HIGH", "MEDIUM", "LOW" ]
    Priority of the incident.
    Example: HIGH
  • Read Only: true
    Allowed Values: [ "RULE", "MANUALLY_CREATED" ]
    Source of the incident.
    Example: RULE
  • 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
  • Minimum Length: 0
    Maximum Length: 255
    Summary of the incident. Can be updated. Cannot be blank. Max length is 255 characters.
    Example: This is a summary of an incident
  • tags
    Unique Items Required: true
    Tags for this incident. Can be updated.
  • Allowed Values: [ "HAZARD", "SAFETY_VIOLATION", "ACCIDENT" ]
    Type of the incident.
    Example: HAZARD
Nested Schema : tags
Type: array
Unique Items Required: true
Tags for this incident. Can be updated.
Show Source
Example:
["tag1", "tag2"]
Back to Top