IncidentIo.IncidentRolesV1 (IncidentIo v0.3.1)

View Source

Manage incident roles.

During an incident, you can assign responders to one of the incident roles that are configured in your organisation settings. This module covers the v1 Incident Roles API.

Summary

Functions

Create a new incident role.

Removes an existing incident role.

List all incident roles for an organisation.

Get a single incident role.

Update an existing incident role.

Functions

create(client \\ %Client{}, body)

@spec create(IncidentIo.Client.t(), request_body()) :: IncidentIo.response()

Create a new incident role.

Incident role body example:

%{
  description: "The person currently coordinating the incident",
  instructions: "Take point on the incident; Make sure people are clear on responsibilities",
  name: "Incident Lead",
  required: false,
  shortform: "lead"
}

Example

IncidentIo.IncidentRolesV1.create(client, body)

More information at: https://api-docs.incident.io/tag/Incident-Roles-V1#operation/Incident-Roles%20V1_Create

destroy(client \\ %Client{}, id)

Removes an existing incident role.

Example

IncidentIo.IncidentRolesV1.destroy(client, "some-incident-role-id")

More information at: https://api-docs.incident.io/tag/Incident-Roles-V1#operation/Incident-Roles%20V1_Delete

list(client \\ %Client{})

List all incident roles for an organisation.

Example

IncidentIo.IncidentRolesV1.list(client)

More information at: https://api-docs.incident.io/tag/Incident-Roles-V1#operation/Incident-Roles%20V1_List

show(client \\ %Client{}, id)

Get a single incident role.

Example

IncidentIo.IncidentRolesV1.show(client, "some-incident-role-id")

More information at: https://api-docs.incident.io/tag/Incident-Roles-V1#operation/Incident-Roles%20V1_Show

update(client \\ %Client{}, id, body)

@spec update(IncidentIo.Client.t(), binary(), request_body()) :: IncidentIo.response()

Update an existing incident role.

Incident role body example:

%{
  description: "The person currently coordinating the incident",
  instructions: "Take point on the incident; Make sure people are clear on responsibilities",
  name: "Incident Lead",
  required: false,
  shortform: "lead"
}

Example

IncidentIo.IncidentRolesV1.update(client, "some-incident-id", body)

More information at: https://api-docs.incident.io/tag/Incident-Roles-V1#operation/Incident-Roles%20V1_Update