---
title: "Patch a deployment event"
method: PATCH
path: "/api/v2/dora/deployments/{deployment_id}"
tags: ["DORA Metrics"]
---

# Patch a deployment event

`PATCH /api/v2/dora/deployments/{deployment_id}`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/dora/deployments/{deployment_id}`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Update a deployment's change failure status. Use this to mark a deployment as a change failure or back to stable. You can optionally include remediation details to enable failed deployment recovery time calculation.

## Path parameters

- `deployment_id` string, required

## Request body

- DORADeploymentPatchRequest: Request to patch a DORA deployment event.
  - `data` DORADeploymentPatchRequestData, required: The JSON:API data for patching a deployment.
    - `attributes` DORADeploymentPatchRequestAttributes, required: Attributes for patching a DORA deployment event.
      - `change_failure` boolean: Indicates whether the deployment resulted in a change failure.
      - `remediation` DORADeploymentPatchRemediation: Remediation details for the deployment. Optional, but required to calculate failed deployment recovery time.
        - `id` string: The ID of the remediation deployment. Required when the failed deployment must be linked to a remediation deployment.
        - `type` 'rollback' | 'rollforward': The type of remediation action taken. Required when the failed deployment must be linked to a remediation deployment.
    - `id` string, required: The ID of the deployment to patch.
    - `type` 'dora_deployment_patch_request', required: JSON:API type for DORA deployment patch request.

## Response `202`

Accepted

## Other responses

- `400`: Bad Request
- `403`: Not Authorized
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
