Skip to content

IncidentPerson

An IncidentPerson represents a person involved in an incident. Links an incident (Incident) to a person-office assignment (PersonOffice).

Use this API to:

  • Register people involved in an incident
  • Find all people involved in an incident (filter by office_incident_id)
  • Find all incidents a person was involved in (filter by person_office_id)
  • Record sickness days per person (days)
Version
2.0.0
OpenAPI version
3.0.0

Security scheme type: oauth2

Flow type: password

Token URL: https://auth.4hse.com/realms/4hse/protocol/openid-connect/token

Security scheme type: apiKey

Query parameter name: access-token

POST
/v2/incident-person/index

Returns a paginated list of people involved in incidents.

Most useful filters:

  • office_incident_id: all people involved in a specific incident
  • person_office_id: all incidents a person was involved in

Parameters for searching

object
filter
object
office_incident_person_id
string format: uuid
office_incident_id
string format: uuid
person_office_id
string format: uuid
code
string
description
string
days
integer
tenant_id
string format: uuid
subtenant_id
string format: uuid
person_id
string format: uuid
person_code
string
nullable
person_first_name
string
person_last_name
string
person_is_employee
boolean
incident_code
string
nullable
incident_name
string
incident_date
string format: date
incident_category
string
nullable
incident_status
string
Allowed values: new open closed
project_name
string
project_type
string
Allowed values: safety template
office_name
string
per-page
integer
default: 100 >= 1
page
integer
default: 1 >= 1
sort
string
Allowed values: person_first_name person_last_name person_code incident_name incident_date office_name
Example
{
"filter": {
"office_incident_id": "5c6d7e8f-9012-3456-abcd-ef5678901234"
},
"per-page": 20,
"page": 1,
"sort": "person_last_name"
}

List of involved people

Array<object>
object
office_incident_person_id
string format: uuid
office_incident_id
string format: uuid
person_office_id
string format: uuid
code
string
description
string
days
integer
tenant_id
string format: uuid
subtenant_id
string format: uuid
person_id
string format: uuid
person_code
string
nullable
person_first_name
string
person_last_name
string
person_is_employee
boolean
incident_code
string
nullable
incident_name
string
incident_date
string format: date
incident_category
string
nullable
incident_status
string
Allowed values: new open closed
project_name
string
project_type
string
Allowed values: safety template
office_name
string
X-Pagination-Current-Page
integer

Current page

X-Pagination-Page-Count
integer

Total number of pages

X-Pagination-Per-Page
integer

Number of items per page

X-Pagination-Total-Count
integer

Total number of items

POST
/v2/incident-person/create

Registers a person involved in an incident.

Requires office_incident_id, person_office_id, subtenant_id (office_id), and tenant_id (project_id). The office_incident_person_id is auto-generated if not provided.

Involved person to register

object
office_incident_person_id

Unique identifier. Auto-generated if not provided.

string format: uuid
office_incident_id
required

The incident. Pass the office_incident_id from the Incident API.

string format: uuid
<= 50 characters
person_office_id
required

The involved person. Pass the person_office_id from the PersonOffice API.

string format: uuid
<= 50 characters
code

Identifier code.

string
nullable <= 50 characters
description

Description of the person’s involvement.

string
nullable
days

Number of sickness days for this person due to the incident.

integer
nullable
tenant_id
required

The project (company). Pass the project_id.

string format: uuid
<= 50 characters
subtenant_id
required

The office. Pass the office_id.

string format: uuid
<= 50 characters

Involved person registered successfully

object
office_incident_person_id

Unique identifier. Auto-generated if not provided.

string format: uuid
office_incident_id
required

The incident. Pass the office_incident_id from the Incident API.

string format: uuid
<= 50 characters
person_office_id
required

The involved person. Pass the person_office_id from the PersonOffice API.

string format: uuid
<= 50 characters
code

Identifier code.

string
nullable <= 50 characters
description

Description of the person’s involvement.

string
nullable
days

Number of sickness days for this person due to the incident.

integer
nullable
tenant_id
required

The project (company). Pass the project_id.

string format: uuid
<= 50 characters
subtenant_id
required

The office. Pass the office_id.

string format: uuid
<= 50 characters
GET
/v2/incident-person/view/{id}

Retrieves a single involved person by its ID.

id
required
string format: uuid

The office_incident_person_id to retrieve.

Involved person found

object
office_incident_person_id
string format: uuid
office_incident_id
string format: uuid
person_office_id
string format: uuid
code
string
description
string
days
integer
tenant_id
string format: uuid
subtenant_id
string format: uuid
person_id
string format: uuid
person_code
string
nullable
person_first_name
string
person_last_name
string
person_is_employee
boolean
incident_code
string
nullable
incident_name
string
incident_date
string format: date
incident_category
string
nullable
incident_status
string
Allowed values: new open closed
project_name
string
project_type
string
Allowed values: safety template
office_name
string

Not found

PUT
/v2/incident-person/update/{id}

Updates an existing involved person record.

id
required
string format: uuid

The office_incident_person_id to update.

Fields to update

object
office_incident_person_id

Unique identifier. Auto-generated if not provided.

string format: uuid
office_incident_id
required

The incident. Pass the office_incident_id from the Incident API.

string format: uuid
<= 50 characters
person_office_id
required

The involved person. Pass the person_office_id from the PersonOffice API.

string format: uuid
<= 50 characters
code

Identifier code.

string
nullable <= 50 characters
description

Description of the person’s involvement.

string
nullable
days

Number of sickness days for this person due to the incident.

integer
nullable
tenant_id
required

The project (company). Pass the project_id.

string format: uuid
<= 50 characters
subtenant_id
required

The office. Pass the office_id.

string format: uuid
<= 50 characters

Updated successfully

object
office_incident_person_id

Unique identifier. Auto-generated if not provided.

string format: uuid
office_incident_id
required

The incident. Pass the office_incident_id from the Incident API.

string format: uuid
<= 50 characters
person_office_id
required

The involved person. Pass the person_office_id from the PersonOffice API.

string format: uuid
<= 50 characters
code

Identifier code.

string
nullable <= 50 characters
description

Description of the person’s involvement.

string
nullable
days

Number of sickness days for this person due to the incident.

integer
nullable
tenant_id
required

The project (company). Pass the project_id.

string format: uuid
<= 50 characters
subtenant_id
required

The office. Pass the office_id.

string format: uuid
<= 50 characters

Not found

DELETE
/v2/incident-person/delete/{id}

Deletes an involved person record.

id
required
string format: uuid

The office_incident_person_id to delete.

force
boolean

If true, deletes the record.

Deleted successfully

Preview of affected entities (returned when force=false)