IncidentAction
Questi contenuti non sono ancora disponibili nella tua lingua.
Manage incident actions, which represent actions linked to incidents (such as corrective or preventive actions).
You can create, update, delete, and search for incident actions with advanced filtering and pagination.
- Version
- 2.0.0
- OpenAPI version
- 3.0.0
Operations
Sezione intitolata “Operations” POST /v2/incident-action/index
Returns a paginated and filterable list of incident actions.
Use POST to allow complex filters via JSON payload.
Request Body
Sezione intitolata “Request Body ”Parameters for searching incident actions
object
object
Always ACTION
Action_id
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": "ACTION", "description": "Corrective action" }, "per-page": 10, "page": 1, "sort": "entity_id"}
Responses
Sezione intitolata “ Responses ”List of incident actions
object
Always ACTION
Action_id
Example
{ "office_incident_action_id": "ia-1", "office_incident_id": "inc-1", "entity_type": "ACTION", "entity_id": "act-1", "description": "Corrective action", "subtenant_id": "sub-1", "tenant_id": "ten-1"}
Headers
Sezione intitolata “Headers ”Current page
Total number of pages
Number of items per page
Total number of items
POST /v2/incident-action/create
Create a new incident action by providing the required details.
Request Body required
Sezione intitolata “Request Body required ”Incident action object to be created
object
Always ACTION
Action_id
Example
{ "office_incident_id": "inc-1", "entity_type": "ACTION", "entity_id": "act-1", "description": "Preventive action", "subtenant_id": "sub-1", "tenant_id": "ten-1"}
Responses
Sezione intitolata “ Responses ”Incident action created successfully
object
Always ACTION
Action_id
Example
{ "office_incident_action_id": "ia-2", "office_incident_id": "inc-1", "entity_type": "ACTION", "entity_id": "act-1", "description": "Preventive action", "subtenant_id": "sub-1", "tenant_id": "ten-1"}
GET /v2/incident-action/view/{id}
Retrieve an incident action by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the incident action to retrieve
Responses
Sezione intitolata “ Responses ”Incident action found
object
Always ACTION
Action_id
Example
{ "office_incident_action_id": "ia-1", "office_incident_id": "inc-1", "entity_type": "ACTION", "entity_id": "act-1", "description": "Corrective action", "subtenant_id": "sub-1", "tenant_id": "ten-1"}
Incident action not found
DELETE /v2/incident-action/delete/{id}
Delete an incident action by its unique ID.
If force=true, all related entities will also be deleted.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the incident action to delete
Query Parameters
Sezione intitolata “Query Parameters ”Force the deletion of the entity and all related entities
Responses
Sezione intitolata “ Responses ”Incident action 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
PUT /v2/incident-action/update/{id}
Update an existing incident action by its unique ID.
Path Parameters
Sezione intitolata “Path Parameters ”ID of the incident action to update
Request Body required
Sezione intitolata “Request Body required ”Incident action object with updated data
object
Always ACTION
Action_id
Example
{ "description": "Updated action description"}
Responses
Sezione intitolata “ Responses ”Incident action updated successfully
object
Always ACTION
Action_id
Example
{ "office_incident_action_id": "ia-1", "description": "Updated action description"}
Incident action not found