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
Authentication
Section titled “ Authentication ”OAuth2
Section titled “OAuth2 ”Security scheme type: oauth2
Flow type: password
Token URL: https://auth.4hse.com/realms/4hse/protocol/openid-connect/token
AccessToken
Section titled “AccessToken ”Security scheme type: apiKey
Query parameter name: access-token
Operations
Section titled “Operations” 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 incidentperson_office_id: all incidents a person was involved in
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Parameters for searching
object
object
Example
{ "filter": { "office_incident_id": "5c6d7e8f-9012-3456-abcd-ef5678901234" }, "per-page": 20, "page": 1, "sort": "person_last_name"}Responses
Section titled “ Responses ”List of involved people
object
Headers
Section titled “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
create
Section titled “create” 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.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Involved person to register
object
Unique identifier. Auto-generated if not provided.
The incident. Pass the office_incident_id from the Incident API.
The involved person. Pass the person_office_id from the PersonOffice API.
Identifier code.
Description of the person’s involvement.
Number of sickness days for this person due to the incident.
The project (company). Pass the project_id.
The office. Pass the office_id.
Responses
Section titled “ Responses ”Involved person registered successfully
object
Unique identifier. Auto-generated if not provided.
The incident. Pass the office_incident_id from the Incident API.
The involved person. Pass the person_office_id from the PersonOffice API.
Identifier code.
Description of the person’s involvement.
Number of sickness days for this person due to the incident.
The project (company). Pass the project_id.
The office. Pass the office_id.
GET /v2/incident-person/view/{id}
Retrieves a single involved person by its ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The office_incident_person_id to retrieve.
Responses
Section titled “ Responses ”Involved person found
object
Not found
update
Section titled “update” PUT /v2/incident-person/update/{id}
Updates an existing involved person record.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The office_incident_person_id to update.
Request Body required
Section titled “Request Body required ”Fields to update
object
Unique identifier. Auto-generated if not provided.
The incident. Pass the office_incident_id from the Incident API.
The involved person. Pass the person_office_id from the PersonOffice API.
Identifier code.
Description of the person’s involvement.
Number of sickness days for this person due to the incident.
The project (company). Pass the project_id.
The office. Pass the office_id.
Responses
Section titled “ Responses ”Updated successfully
object
Unique identifier. Auto-generated if not provided.
The incident. Pass the office_incident_id from the Incident API.
The involved person. Pass the person_office_id from the PersonOffice API.
Identifier code.
Description of the person’s involvement.
Number of sickness days for this person due to the incident.
The project (company). Pass the project_id.
The office. Pass the office_id.
Not found
delete
Section titled “delete” DELETE /v2/incident-person/delete/{id}
Deletes an involved person record.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The office_incident_person_id to delete.
Query Parameters
Section titled “Query Parameters ”If true, deletes the record.
Responses
Section titled “ Responses ”Deleted successfully
Preview of affected entities (returned when force=false)