---
title: Resolve a PagerDuty incident
source: https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/pagerduty/pagerduty-incident-resolve
---

For prerequisites, see [PagerDuty incident actions](https://docs.newrelic.com/docs/workflow-automation/setup-and-configure/actions-catalog/pagerduty/pagerduty-incident#prerequisites).

## Resolve a PagerDuty incident

The action identifier is `pagerduty.incident.resolve`.

Resolves a PagerDuty incident by updating its status to `resolved`, with an optional resolution note.

### Inputs

The following table describes all available input fields for this action.

| Input          | Type   | Description                                                                                                            | Example                                                                          |
| -------------- | ------ | ---------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| **token**      | String | **Required.** PagerDuty API token.                                                                                     | `${{ :secrets:pagerdutyApiToken }}`                                              |
| **incidentId** | String | **Required.** The ID of the incident to resolve.                                                                       | `"1234567"`                                                                      |
| **type**       | String | **Required.** Must be `"incident"`.                                                                                    | `"incident"`                                                                     |
| **from**       | String | **Optional.** Required for account tokens, optional for user tokens. The email address of the user making the request. | `test@example.com`                                                               |
| **resolution** | String | **Optional.** Resolution note added to the incident.                                                                   | `"System is up and running and incident is resolved"`                            |
| **selectors**  | List   | **Optional.** JQ selectors to extract fields from the output.                                                          | `[{"name": "incidentId", "expression": ".responseBody | fromjson.incident.id"}]` |

### Outputs

The following table describes all output fields returned by this action.

| Output           | Type    | Description                                             |
| ---------------- | ------- | ------------------------------------------------------- |
| **success**      | Boolean | `true` on success, `false` on failure.                  |
| **response**     | Object  | The resolved incident object with `status: "resolved"`. |
| **errorMessage** | String  | Error message on failure. `null` on success.            |

### Example

The following example resolves a PagerDuty incident with a resolution note.

| Workflow example                                                                                                                                                                                                                                                                                                                                                                                                                       |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ```yaml name: resolve-pagerduty-incident description: Resolve a PagerDuty incident steps:   - name: pagerduty_incident_resolve_1     type: action     action: pagerduty.incident.resolve     version: 1     inputs:       token: ${{ :secrets:pagerdutyApiToken }}       from: abc@example.com       type: incident       incidentId: Q1234567890       resolution: The incident is resolved and no action is needed     next: end ``` |
