IncidentResource
Manage incident resources, which represent entities involved in incidents (such as materials, equipment, or work environments).
You can create, update, delete, and search for incident resources with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Section titled “Operations” POST /v2/incident-resource/index
Returns a paginated and filterable list of incident resources.
Use POST to allow complex filters via JSON payload.
Request Body
Section titled “Request Body ”Parameters for searching incident resources
object
object
Primary key for the office incident resource
ID of the related office incident
ID of the associated entity
Type of the entity involved in the office incident
Name of the entity
Code of the entity
ID of the tenant
ID of the subtenant
Additional description for the office incident resource
Code of the incident
Name of the incident
Date of the incident
Category of the incident
Event description of the incident
Actions involved in the incident
Deponent of the incident
Status of the incident
Name of the project
Type of the project
Name of the office
Code of the equipment
Name of the equipment
Code of the work environment
Name of the work environment
Code of the substance
Name of the substance
Code of the work group F
Name of the work group F
Code of the material
Name of the material
Code of the material item
Name of the material item
Code of the action
Name of the action
The field of the model to sort the list for, use a minus to revert the sort. Es -name is to require the sort in reverse order
The field establishes whether to also include historized elements that are no longer active in the results. If you leave this parameter empty the response returns only actual entries.
Example
{ "filter": { "entity_type": "EQUIPMENT" }, "per-page": 10, "page": 1, "sort": "entity_id"}
Responses
Section titled “ Responses ”List of incident resources
object
Primary key for the office incident resource
ID of the related office incident
ID of the associated entity
Type of the entity involved in the office incident
Name of the entity
Code of the entity
ID of the tenant
ID of the subtenant
Additional description for the office incident resource
Code of the incident
Name of the incident
Date of the incident
Category of the incident
Event description of the incident
Actions involved in the incident
Deponent of the incident
Status of the incident
Name of the project
Type of the project
Name of the office
Code of the equipment
Name of the equipment
Code of the work environment
Name of the work environment
Code of the substance
Name of the substance
Code of the work group F
Name of the work group F
Code of the material
Name of the material
Code of the material item
Name of the material item
Code of the action
Name of the action
Example
{ "office_incident_resource_id": "ir-1", "office_incident_id": "inc-1", "entity_id": "eq-1", "entity_type": "EQUIPMENT", "tenant_id": "ten-1", "subtenant_id": "sub-1", "description": "Excavator involved in incident"}
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-resource/create
Create a new incident resource by providing the required details.
Request Body required
Section titled “Request Body required ”Incident resource object to be created
object
Primary key for the office incident resource
ID of the related office incident
ID of the associated entity
Type of the entity involved in the office incident
ID of the tenant
ID of the subtenant
Additional description for the office incident resource
Example
{ "office_incident_id": "inc-1", "entity_id": "eq-1", "entity_type": "EQUIPMENT", "tenant_id": "ten-1", "subtenant_id": "sub-1", "description": "Excavator involved in incident"}
Responses
Section titled “ Responses ”Incident resource created successfully
object
Primary key for the office incident resource
ID of the related office incident
ID of the associated entity
Type of the entity involved in the office incident
ID of the tenant
ID of the subtenant
Additional description for the office incident resource
Example
{ "office_incident_resource_id": "ir-2", "office_incident_id": "inc-1", "entity_id": "eq-1", "entity_type": "EQUIPMENT", "tenant_id": "ten-1", "subtenant_id": "sub-1", "description": "Excavator involved in incident"}
GET /v2/incident-resource/view/{id}
Retrieve an incident resource by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the incident resource to retrieve
Responses
Section titled “ Responses ”Incident resource found
object
Primary key for the office incident resource
ID of the related office incident
ID of the associated entity
Type of the entity involved in the office incident
Name of the entity
Code of the entity
ID of the tenant
ID of the subtenant
Additional description for the office incident resource
Code of the incident
Name of the incident
Date of the incident
Category of the incident
Event description of the incident
Actions involved in the incident
Deponent of the incident
Status of the incident
Name of the project
Type of the project
Name of the office
Code of the equipment
Name of the equipment
Code of the work environment
Name of the work environment
Code of the substance
Name of the substance
Code of the work group F
Name of the work group F
Code of the material
Name of the material
Code of the material item
Name of the material item
Code of the action
Name of the action
Example
{ "office_incident_resource_id": "ir-1", "office_incident_id": "inc-1", "entity_id": "eq-1", "entity_type": "EQUIPMENT", "tenant_id": "ten-1", "subtenant_id": "sub-1", "description": "Excavator involved in incident"}
Incident resource not found
delete
Section titled “delete” DELETE /v2/incident-resource/delete/{id}
Delete an incident resource by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Section titled “Path Parameters ”ID of the incident resource to delete
Query Parameters
Section titled “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Section titled “ Responses ”Incident resource deleted successfully
If force=false, the operation is interrupted and the list of connected entities that will be deleted in case of confirmation (force=true) is returned
update
Section titled “update” PUT /v2/incident-resource/update/{id}
Update an existing incident resource by its unique ID.
Path Parameters
Section titled “Path Parameters ”ID of the incident resource to update
Request Body required
Section titled “Request Body required ”Incident resource object with updated data
object
Primary key for the office incident resource
ID of the related office incident
ID of the associated entity
Type of the entity involved in the office incident
ID of the tenant
ID of the subtenant
Additional description for the office incident resource
Example
{ "description": "Updated description"}
Responses
Section titled “ Responses ”Incident resource updated successfully
object
Primary key for the office incident resource
ID of the related office incident
ID of the associated entity
Type of the entity involved in the office incident
ID of the tenant
ID of the subtenant
Additional description for the office incident resource
Example
{ "office_incident_resource_id": "ir-1", "description": "Updated description"}
Incident resource not found