IncidentAction
An IncidentAction links an incident to a corrective or preventive action. It indicates that an action has been taken or must be taken in response to the incident.
Use this API to:
- Link corrective/preventive actions to an incident
- Find all actions linked to an incident (filter by
office_incident_id) - Find all incidents linked to an action (filter by
entity_id)
- 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-action/index
Returns a paginated list of incident-action links.
Most useful filters:
office_incident_id: all actions linked to a specific incidententity_id(action_id): all incidents linked to a specific actionaction_type: filter by action type
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”Parameters for searching
object
object
Code of the linked action.
Name of the linked action.
Type of the linked action.
Example
{ "filter": { "office_incident_id": "5c6d7e8f-9012-3456-abcd-ef5678901234" }, "per-page": 20, "page": 1, "sort": "action_name"}Responses
Section titled “ Responses ”List of incident-action links
object
Code of the linked action.
Name of the linked action.
Type of the linked action.
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-action/create
Links a corrective/preventive action to an incident.
Requires office_incident_id, entity_id (the action_id), entity_type (always ACTION),
subtenant_id (office_id), and tenant_id (project_id).
The office_incident_action_id is auto-generated if not provided.
Authorizations
Section titled “Authorizations ”Request Body required
Section titled “Request Body required ”Incident-action link to create
object
Unique identifier. Auto-generated if not provided.
The incident. Pass the office_incident_id from the Incident API.
Always ACTION.
The corrective/preventive action. Pass the action_id from the Action API.
Optional description of why this action was linked (e.g. corrective action rationale).
The office. Pass the office_id.
The project (company). Pass the project_id.
Responses
Section titled “ Responses ”Action linked to incident successfully
object
Unique identifier. Auto-generated if not provided.
The incident. Pass the office_incident_id from the Incident API.
Always ACTION.
The corrective/preventive action. Pass the action_id from the Action API.
Optional description of why this action was linked (e.g. corrective action rationale).
The office. Pass the office_id.
The project (company). Pass the project_id.
GET /v2/incident-action/view/{id}
Retrieves a single incident-action link by its ID.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The office_incident_action_id to retrieve.
Responses
Section titled “ Responses ”Incident-action link found
object
Code of the linked action.
Name of the linked action.
Type of the linked action.
Not found
update
Section titled “update” PUT /v2/incident-action/update/{id}
Updates an existing incident-action link.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The office_incident_action_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.
Always ACTION.
The corrective/preventive action. Pass the action_id from the Action API.
Optional description of why this action was linked (e.g. corrective action rationale).
The office. Pass the office_id.
The project (company). Pass the project_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.
Always ACTION.
The corrective/preventive action. Pass the action_id from the Action API.
Optional description of why this action was linked (e.g. corrective action rationale).
The office. Pass the office_id.
The project (company). Pass the project_id.
Not found
delete
Section titled “delete” DELETE /v2/incident-action/delete/{id}
Deletes an incident-action link.
Authorizations
Section titled “Authorizations ”Path Parameters
Section titled “Path Parameters ”The office_incident_action_id to delete.
Query Parameters
Section titled “Query Parameters ”If true, deletes the link.
Responses
Section titled “ Responses ”Deleted successfully
Preview of affected entities (returned when force=false)