IncidentIo. ActionsV2
(IncidentIo v0.3.1)
View Source
Manage actions attached to incidents.
Actions are tasks that responders create during an incident to track work that needs to be done. This module covers the v2 Actions API, supporting full CRUD operations.
Summary
Functions
Create an action for an incident.
List all actions for an organisation.
Get a single incident action.
Update an existing action.
Functions
@spec create(IncidentIo.Client.t(), map()) :: IncidentIo.response()
Create an action for an incident.
Example
IncidentIo.ActionsV2.create(client, %{
assignee_id: "01FCNDV6P870EA6S7TK1DSYDG0",
description: "Call the fire brigade",
incident_id: "01FCNDV6P870EA6S7TK1DSYDG0",
status: "outstanding"
})More information at: https://api-docs.incident.io/tag/Actions-V2#operation/Actions%20V2_Create
@spec list(IncidentIo.Client.t(), binary(), IncidentIo.incident_mode()) :: IncidentIo.response()
List all actions for an organisation.
Example
IncidentIo.ActionsV2.list(client, "some-incident-id")More information at: https://api-docs.incident.io/tag/Actions-V2#operation/Actions%20V2_List
@spec show(IncidentIo.Client.t(), binary()) :: IncidentIo.response()
Get a single incident action.
Example
IncidentIo.ActionsV2.show(client, "some-action-id")More information at: https://api-docs.incident.io/tag/Actions-V2#operation/Actions%20V2_Show
@spec update(IncidentIo.Client.t(), binary(), map()) :: IncidentIo.response()
Update an existing action.
Example
IncidentIo.ActionsV2.update(client, "some-action-id", %{status: "completed"})More information at: https://api-docs.incident.io/tag/Actions-V2#operation/Actions%20V2_Update