# FireHydrant

> Declare and run incidents, post updates, track tasks and milestones, and record changes in FireHydrant.

App · 25 actions. Web page: https://docs.lodol.com/docs/integrations/firehydrant

## Actions

### Add incident link

Attach a link, such as a dashboard or ticket, to an incident.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- URL (`url`, text, required): The web address to attach.
- Text (`display_text`, text): The text to show for the link.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "deletable": true,
    "display_text": "example",
    "editable": true,
    "href_url": "example",
    "icon_url": "example",
    "id": "example",
    "type": "example"
  }
}
```

### Add incident note

Post a note to an incident's timeline, and to its status pages if you choose.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Note (`note`, text, required): What to post.
- Visibility (`visibility`, text): Who sees the note. Internal only by default; a public note is posted to the incident's status pages. One of: `private_to_org` (Internal only), `open_to_public` (Public status pages), `internal_status_page` (Internal status page).
- Happened at (`occurred_at`, date and time): When it happened. Leave empty for now.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "body": "example",
    "created_at": "example",
    "id": "example"
  }
}
```

### Archive incident

Archive an incident, which hides it from lists and metrics.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {}
}
```

### Assign incident role

Give a person a role on an incident, such as Commander. FireHydrant tells them.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Person (`member_id`, text, required): The person to assign.
- Role (`incident_role_id`, text, required): The role to give them.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "id": "example",
    "incident_role": {
      "description": "example",
      "id": "example",
      "name": "example",
      "summary": "example"
    },
    "status": "example",
    "updated_at": "example",
    "user": {
      "email": "example",
      "id": "example",
      "name": "example"
    }
  }
}
```

### Assign incident team

Assign a team to an incident. FireHydrant may page the team's on-call responders.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Team (`responding_team`, text, required): The team to assign.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {}
}
```

### Close incident

Close an incident, ending its retrospective phase.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "active": true,
    "channel_name": "example",
    "created_at": "example",
    "created_by": {
      "email": "example",
      "id": "example",
      "name": "example",
      "source": "example"
    },
    "current_milestone": "example",
    "customer_impact_summary": "example",
    "description": "example",
    "discarded_at": "example",
    "environments": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "functionalities": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "id": "example",
    "incident_type": {
      "id": "example",
      "name": "example"
    },
    "incident_url": "example",
    "labels": {},
    "milestones": [
      {
        "created_at": "example",
        "duration": "example",
        "id": "example",
        "occurred_at": "example",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "name": "example",
    "number": 1,
    "priority": "example",
    "role_assignments": [
      {
        "created_at": "example",
        "id": "example",
        "incident_role": {
          "description": "example",
          "id": "example",
          "name": "example",
          "summary": "example"
        },
        "status": "example",
        "updated_at": "example",
        "user": {
          "email": "example",
          "id": "example",
          "name": "example"
        }
      }
    ],
    "services": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "severity": "example",
    "started_at": "example",
    "summary": "example",
    "tag_list": [
      "example"
    ]
  }
}
```

### Create change event

Record a change, such as a deploy or a configuration change, so responders can link it to incidents.

**Inputs**

- Summary (`summary`, text, required): What changed, such as Deployed api v2.3.
- Description (`description`, text): More detail about the change.
- Started (`starts_at`, date and time): When the change started. Leave empty for now.
- Finished (`ends_at`, date and time): When the change finished.
- Services (`services`, list): Services the change touched.
- Environments (`environments`, list): Environments the change touched.
- External ID (`external_id`, text): The change's ID in another system, such as a deploy ID.
- Labels (`labels`, object): Key-value pairs to keep with the change, such as a version or branch.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "authors": [
      {
        "email": "example",
        "id": "example",
        "name": "example",
        "source": "example"
      }
    ],
    "created_at": "example",
    "description": "example",
    "duration_ms": 1,
    "ends_at": "example",
    "environments": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "external_id": "example",
    "id": "example",
    "labels": {},
    "services": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "starts_at": "example",
    "summary": "example",
    "updated_at": "example"
  }
}
```

### Create incident

Declare an incident in FireHydrant. Runbooks whose rules match it start on their own.

**Inputs**

- Name (`name`, text, required): A short title for the incident.
- Summary (`summary`, text): What is happening, in a sentence or two.
- Description (`description`, text): More detail about the incident.
- Customer impact (`customer_impact_summary`, text): How customers are affected.
- Severity (`severity`, text): The incident's severity, such as SEV1.
- Priority (`priority`, text): The incident's priority, such as P1.
- Incident type (`incident_type_id`, text): An incident type. Its saved values fill in anything you leave empty.
- Tags (`tags`, list): Tags for the incident.
- Teams (`responding_teams`, list): Teams to assign to the incident.
- Impacted services (`impacted_services`, list): Services the incident affects.
- Impacted environments (`impacted_environments`, list): Environments the incident affects.
- Impacted functionalities (`impacted_functionalities`, list): Functionalities the incident affects.
- Impact level (`impact_condition_id`, text): How badly the chosen services, environments and functionalities are affected, such as Degraded or Unavailable. Needed when you choose any of them.
- Runbooks (`runbook_ids`, list): Runbooks to attach and start, whatever their own attachment rules say.
- Labels (`labels`, object): Key-value pairs to keep with the incident, such as a region or ticket number.
- Private (`restricted`, true/false): Make the incident private, so only its responders can see it.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "active": true,
    "channel_name": "example",
    "created_at": "example",
    "created_by": {
      "email": "example",
      "id": "example",
      "name": "example",
      "source": "example"
    },
    "current_milestone": "example",
    "customer_impact_summary": "example",
    "description": "example",
    "discarded_at": "example",
    "environments": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "functionalities": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "id": "example",
    "incident_type": {
      "id": "example",
      "name": "example"
    },
    "incident_url": "example",
    "labels": {},
    "milestones": [
      {
        "created_at": "example",
        "duration": "example",
        "id": "example",
        "occurred_at": "example",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "name": "example",
    "number": 1,
    "priority": "example",
    "role_assignments": [
      {
        "created_at": "example",
        "id": "example",
        "incident_role": {
          "description": "example",
          "id": "example",
          "name": "example",
          "summary": "example"
        },
        "status": "example",
        "updated_at": "example",
        "user": {
          "email": "example",
          "id": "example",
          "name": "example"
        }
      }
    ],
    "services": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "severity": "example",
    "started_at": "example",
    "summary": "example",
    "tag_list": [
      "example"
    ]
  }
}
```

### Create incident task

Add a task to an incident.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Title (`title`, text, required): What needs doing.
- Description (`description`, text): More detail about the task.
- State (`state`, text): Where the task stands. One of: `open`, `in_progress` (In progress), `cancelled`, `done`.
- Assignee (`assignee_id`, text): The person the task is assigned to.
- Due (`due_at`, date and time): When the task is due.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "assignee": {
      "email": "example",
      "id": "example",
      "name": "example",
      "source": "example"
    },
    "created_at": "example",
    "created_by": {
      "email": "example",
      "id": "example",
      "name": "example",
      "source": "example"
    },
    "description": "example",
    "due_at": "example",
    "id": "example",
    "state": "example",
    "title": "example",
    "updated_at": "example"
  }
}
```

### Delete change event

Delete a recorded change.

**Inputs**

- Change event ID (`change_event_id`, text, required): The change event's ID.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {}
}
```

### Get incident

Get an incident with its milestone, severity, roles, impacts and link.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "active": true,
    "channel_name": "example",
    "created_at": "example",
    "created_by": {
      "email": "example",
      "id": "example",
      "name": "example",
      "source": "example"
    },
    "current_milestone": "example",
    "customer_impact_summary": "example",
    "description": "example",
    "discarded_at": "example",
    "environments": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "functionalities": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "id": "example",
    "incident_type": {
      "id": "example",
      "name": "example"
    },
    "incident_url": "example",
    "labels": {},
    "milestones": [
      {
        "created_at": "example",
        "duration": "example",
        "id": "example",
        "occurred_at": "example",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "name": "example",
    "number": 1,
    "priority": "example",
    "role_assignments": [
      {
        "created_at": "example",
        "id": "example",
        "incident_role": {
          "description": "example",
          "id": "example",
          "name": "example",
          "summary": "example"
        },
        "status": "example",
        "updated_at": "example",
        "user": {
          "email": "example",
          "id": "example",
          "name": "example"
        }
      }
    ],
    "services": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "severity": "example",
    "started_at": "example",
    "summary": "example",
    "tag_list": [
      "example"
    ]
  }
}
```

### List change events

List recorded changes, with filters for text, services, environments and time.

**Inputs**

- Search (`query`, text): Only changes matching this text.
- Services (`services`, list): Only changes to these services.
- Environments (`environments`, list): Only changes to these environments.
- From (`starts_at`, date and time): Only changes from this time on.
- Until (`ends_at`, date and time): Only changes up to this time.
- Page (`page`, number): Which page of change events to read, starting at 1. The answer's pagination.next is the next page. At least 1.
- Per page (`per_page`, number): How many change events to return on a page, up to 200. FireHydrant's default is 20. From 1 to 200.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "authors": [
          {
            "email": "example",
            "id": "example",
            "name": "example",
            "source": "example"
          }
        ],
        "created_at": "example",
        "description": "example",
        "duration_ms": 1,
        "ends_at": "example",
        "environments": [
          {
            "id": "example",
            "name": "example"
          }
        ],
        "external_id": "example",
        "id": "example",
        "labels": {},
        "services": [
          {
            "id": "example",
            "name": "example"
          }
        ],
        "starts_at": "example",
        "summary": "example",
        "updated_at": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "items": 1,
      "last": 1,
      "next": 1,
      "page": 1,
      "pages": 1,
      "prev": 1
    }
  }
}
```

### List incident milestones

List the milestones an incident has reached, with when each happened and how long it lasted.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "duration": "example",
        "id": "example",
        "occurred_at": "example",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "items": 1,
      "last": 1,
      "next": 1,
      "page": 1,
      "pages": 1,
      "prev": 1
    }
  }
}
```

### List incident tasks

List an incident's tasks with their state and assignee.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Page (`page`, number): Which page of tasks to read, starting at 1. The answer's pagination.next is the next page. At least 1.
- Per page (`per_page`, number): How many tasks to return on a page, up to 200. FireHydrant's default is 20. From 1 to 200.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "assignee": {
          "email": "example",
          "id": "example",
          "name": "example",
          "source": "example"
        },
        "created_at": "example",
        "created_by": {
          "email": "example",
          "id": "example",
          "name": "example",
          "source": "example"
        },
        "description": "example",
        "due_at": "example",
        "id": "example",
        "state": "example",
        "title": "example",
        "updated_at": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "items": 1,
      "last": 1,
      "next": 1,
      "page": 1,
      "pages": 1,
      "prev": 1
    }
  }
}
```

### List incident timeline

List the entries on an incident's timeline, such as notes, milestone changes and role assignments.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Kinds (`types`, list): Only these kinds of entries. Leave empty for all. One or more of: `note` (Status page updates), `generic_chat_message` (Messages added in FireHydrant), `chat_message` (Slack or Teams messages), `bulk_update` (Incident updates), `bulk_milestone_update` (Milestone changes), `generic_resource_change` (Field changes), `incident_status` (Incident started), `role_update` (Role assignments), `team_assignment` (Team assignments), `task_update` (Task updates), and 12 more.
- Page (`page`, number): Which page of timeline entries to read, starting at 1. The answer's pagination.next is the next page. At least 1.
- Per page (`per_page`, number): How many timeline entries to return on a page, up to 200. FireHydrant's default is 20. From 1 to 200.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "author": {
          "email": "example",
          "id": "example",
          "name": "example",
          "source": "example"
        },
        "data": {},
        "id": "example",
        "incident_id": "example",
        "occurred_at": "example",
        "type": "example",
        "visibility": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "items": 1,
      "last": 1,
      "next": 1,
      "page": 1,
      "pages": 1,
      "prev": 1
    }
  }
}
```

### List incidents

List incidents, with filters for text, milestone, severity, priority, tags, services, teams and dates.

**Inputs**

- Search (`query`, text): Only incidents whose name, summary or description contain this text.
- Current milestones (`current_milestones`, list): Only incidents currently at one of these milestones.
- Severities (`severities`, list): Only incidents with one of these severities.
- Priorities (`priorities`, list): Only incidents with one of these priorities.
- Services (`services`, list): Only incidents affecting one of these services.
- Environments (`environments`, list): Only incidents affecting one of these environments.
- Teams (`teams`, list): Only incidents involving one of these teams.
- Tags (`tags`, list): Only incidents with these tags.
- Created from (`created_at_or_after`, date and time): Only incidents created at or after this time.
- Created until (`created_at_or_before`, date and time): Only incidents created at or before this time.
- Resolved from (`resolved_at_or_after`, date and time): Only incidents resolved at or after this time.
- Updated since (`updated_after`, date and time): Only incidents updated after this time.
- Archived (`archived`, true/false): List archived incidents instead.
- Page (`page`, number): Which page of incidents to read, starting at 1. The answer's pagination.next is the next page. At least 1.
- Per page (`per_page`, number): How many incidents to return on a page, up to 200. FireHydrant's default is 20. From 1 to 200.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "active": true,
        "channel_name": "example",
        "created_at": "example",
        "created_by": {
          "email": "example",
          "id": "example",
          "name": "example",
          "source": "example"
        },
        "current_milestone": "example",
        "customer_impact_summary": "example",
        "description": "example",
        "discarded_at": "example",
        "environments": [
          {
            "id": "example",
            "name": "example"
          }
        ],
        "functionalities": [
          {
            "id": "example",
            "name": "example"
          }
        ],
        "id": "example",
        "incident_type": {
          "id": "example",
          "name": "example"
        },
        "incident_url": "example",
        "labels": {},
        "milestones": [
          {
            "created_at": "example",
            "duration": "example",
            "id": "example",
            "occurred_at": "example",
            "type": "example",
            "updated_at": "example"
          }
        ],
        "name": "example",
        "number": 1,
        "priority": "example",
        "role_assignments": [
          {
            "created_at": "example",
            "id": "example",
            "incident_role": {
              "description": "example",
              "id": "example",
              "name": "example",
              "summary": "example"
            },
            "status": "example",
            "updated_at": "example",
            "user": {
              "email": "example",
              "id": "example",
              "name": "example"
            }
          }
        ],
        "services": [
          {
            "id": "example",
            "name": "example"
          }
        ],
        "severity": "example",
        "started_at": "example",
        "summary": "example",
        "tag_list": [
          "example"
        ]
      }
    ],
    "pagination": {
      "count": 1,
      "items": 1,
      "last": 1,
      "next": 1,
      "page": 1,
      "pages": 1,
      "prev": 1
    }
  }
}
```

### List runbooks

List your runbooks.

**Inputs**

- Name (`name`, text): Only runbooks whose name contains this.
- Page (`page`, number): Which page of runbooks to read, starting at 1. The answer's pagination.next is the next page. At least 1.
- Per page (`per_page`, number): How many runbooks to return on a page, up to 200. FireHydrant's default is 20. From 1 to 200.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "categories": [
          "example"
        ],
        "created_at": "example",
        "description": "example",
        "id": "example",
        "last_executed_at": "example",
        "name": "example",
        "owner": {
          "id": "example",
          "name": "example"
        },
        "summary": "example",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "items": 1,
      "last": 1,
      "next": 1,
      "page": 1,
      "pages": 1,
      "prev": 1
    }
  }
}
```

### List services

List the services in your catalog.

**Inputs**

- Search (`query`, text): Only services whose name or description contain this.
- Page (`page`, number): Which page of services to read, starting at 1. The answer's pagination.next is the next page. At least 1.
- Per page (`per_page`, number): How many services to return on a page, up to 200. FireHydrant's default is 20. From 1 to 200.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "active_incidents": [
          "example"
        ],
        "created_at": "example",
        "description": "example",
        "id": "example",
        "labels": {},
        "name": "example",
        "owner": {
          "id": "example",
          "name": "example"
        },
        "service_tier": 1,
        "slug": "example",
        "teams": [
          {
            "id": "example",
            "name": "example"
          }
        ],
        "updated_at": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "items": 1,
      "last": 1,
      "next": 1,
      "page": 1,
      "pages": 1,
      "prev": 1
    }
  }
}
```

### List teams

List your teams.

**Inputs**

- Search (`query`, text): Only teams whose name or description contain this.
- Page (`page`, number): Which page of teams to read, starting at 1. The answer's pagination.next is the next page. At least 1.
- Per page (`per_page`, number): How many teams to return on a page, up to 200. FireHydrant's default is 20. From 1 to 200.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "description": "example",
        "id": "example",
        "in_support_hours": true,
        "name": "example",
        "slug": "example",
        "updated_at": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "items": 1,
      "last": 1,
      "next": 1,
      "page": 1,
      "pages": 1,
      "prev": 1
    }
  }
}
```

### List users

List the people in your organization.

**Inputs**

- Search (`query`, text): Only people whose name or email contain this.
- Page (`page`, number): Which page of users to read, starting at 1. The answer's pagination.next is the next page. At least 1.
- Per page (`per_page`, number): How many users to return on a page, up to 200. FireHydrant's default is 20. From 1 to 200.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "email": "example",
        "id": "example",
        "name": "example",
        "role": "example",
        "slack_user_id": "example",
        "updated_at": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "items": 1,
      "last": 1,
      "next": 1,
      "page": 1,
      "pages": 1,
      "prev": 1
    }
  }
}
```

### Resolve incident

Resolve an active incident.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Milestone (`milestone`, text): A milestone in the post-incident or closed phase to move the incident to. Leave empty for Resolved.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "active": true,
    "channel_name": "example",
    "created_at": "example",
    "created_by": {
      "email": "example",
      "id": "example",
      "name": "example",
      "source": "example"
    },
    "current_milestone": "example",
    "customer_impact_summary": "example",
    "description": "example",
    "discarded_at": "example",
    "environments": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "functionalities": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "id": "example",
    "incident_type": {
      "id": "example",
      "name": "example"
    },
    "incident_url": "example",
    "labels": {},
    "milestones": [
      {
        "created_at": "example",
        "duration": "example",
        "id": "example",
        "occurred_at": "example",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "name": "example",
    "number": 1,
    "priority": "example",
    "role_assignments": [
      {
        "created_at": "example",
        "id": "example",
        "incident_role": {
          "description": "example",
          "id": "example",
          "name": "example",
          "summary": "example"
        },
        "status": "example",
        "updated_at": "example",
        "user": {
          "email": "example",
          "id": "example",
          "name": "example"
        }
      }
    ],
    "services": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "severity": "example",
    "started_at": "example",
    "summary": "example",
    "tag_list": [
      "example"
    ]
  }
}
```

### Run runbook

Attach a runbook to an incident and start its steps.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Runbook (`runbook_id`, text, required): The runbook to run.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "created_at": "example",
    "created_by": "example",
    "id": "example",
    "runbook": {
      "id": "example",
      "name": "example"
    },
    "status": "example",
    "status_reason": "example",
    "updated_at": "example"
  }
}
```

### Set incident milestone

Record when an incident reached a milestone, such as when it was mitigated. Milestones must stay in their configured order.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Milestone (`milestone`, text, required): The milestone, such as Mitigated or Resolved.
- Happened at (`occurred_at`, date and time, required): When the incident reached the milestone.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "data": [
      {
        "created_at": "example",
        "duration": "example",
        "id": "example",
        "occurred_at": "example",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "pagination": {
      "count": 1,
      "items": 1,
      "last": 1,
      "next": 1,
      "page": 1,
      "pages": 1,
      "prev": 1
    }
  }
}
```

### Update incident

Change an incident's name, summary, severity, priority, type or tags. Anything left empty stays as it is.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Name (`name`, text): A new title.
- Summary (`summary`, text): A new summary.
- Description (`description`, text): A new description.
- Customer impact (`customer_impact_summary`, text): A new description of how customers are affected.
- Severity (`severity`, text): The incident's severity, such as SEV1.
- Priority (`priority`, text): The incident's priority, such as P1.
- Incident type (`incident_type_id`, text): An incident type. Its saved values fill in anything you leave empty.
- Tags (`tags`, list): The incident's tags, replacing the ones it has.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "active": true,
    "channel_name": "example",
    "created_at": "example",
    "created_by": {
      "email": "example",
      "id": "example",
      "name": "example",
      "source": "example"
    },
    "current_milestone": "example",
    "customer_impact_summary": "example",
    "description": "example",
    "discarded_at": "example",
    "environments": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "functionalities": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "id": "example",
    "incident_type": {
      "id": "example",
      "name": "example"
    },
    "incident_url": "example",
    "labels": {},
    "milestones": [
      {
        "created_at": "example",
        "duration": "example",
        "id": "example",
        "occurred_at": "example",
        "type": "example",
        "updated_at": "example"
      }
    ],
    "name": "example",
    "number": 1,
    "priority": "example",
    "role_assignments": [
      {
        "created_at": "example",
        "id": "example",
        "incident_role": {
          "description": "example",
          "id": "example",
          "name": "example",
          "summary": "example"
        },
        "status": "example",
        "updated_at": "example",
        "user": {
          "email": "example",
          "id": "example",
          "name": "example"
        }
      }
    ],
    "services": [
      {
        "id": "example",
        "name": "example"
      }
    ],
    "severity": "example",
    "started_at": "example",
    "summary": "example",
    "tag_list": [
      "example"
    ]
  }
}
```

### Update incident task

Change an incident task's title, state, assignee or due time. Anything left empty stays as it is.

**Inputs**

- Incident (`incident_id`, text, required): The FireHydrant incident.
- Task (`task_id`, text, required): The task.
- Title (`title`, text): A new title.
- Description (`description`, text): A new description.
- State (`state`, text): Where the task stands. One of: `open`, `in_progress` (In progress), `cancelled`, `done`.
- Assignee (`assignee_id`, text): The person the task is assigned to.
- Due (`due_at`, date and time): When the task is due.

**Outputs**

- `data` (object): The response from FireHydrant.

**Example output**

```json
{
  "data": {
    "assignee": {
      "email": "example",
      "id": "example",
      "name": "example",
      "source": "example"
    },
    "created_at": "example",
    "created_by": {
      "email": "example",
      "id": "example",
      "name": "example",
      "source": "example"
    },
    "description": "example",
    "due_at": "example",
    "id": "example",
    "state": "example",
    "title": "example",
    "updated_at": "example"
  }
}
```
