---
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}`

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.net/datadog/apis/api-v2.md) · [All operations](https://skmtc.net/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/datadog/api-v2/versions/da68bf029e4c/schema)
