---
title: "Update a quarantined test"
method: PATCH
path: "/ci/{owner}/repositories/{repository}/quarantines/{quarantine_id}"
tags: ["test_insights"]
deprecated: true
---

# Update a quarantined test

`PATCH /ci/{owner}/repositories/{repository}/quarantines/{quarantine_id}`

## Request

- Base URL: `https://api.mergify.com/v1`
- URL: `https://api.mergify.com/v1/ci/{owner}/repositories/{repository}/quarantines/{quarantine_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

> **Deprecated.**

Deprecated: use the test states API, `/ci/{owner}/repositories/{repository}/test-states`.

Update the fields sent of a quarantined test; the others keep their value.

## Path parameters

- `quarantine_id` string, uuid, required
- `repository` string, required: The name of the repository
- `owner` string, required: The owner of the repository

## Request body

- UpdateQuarantinePayload: Only the fields sent are updated; the others keep their value.
  - `issue_url` string, nullable: Link to where the fix of the test is tracked, such as an issue in your issue tracker. Must be an `http` or `https` URL. `null` removes the link.

## Response `204`

No content

## Other responses

- `403`: Forbidden
- `404`: Not found
- `409`: Conflict
- `422`: Unprocessable entity

## Changes

- **2026-10-22** `f0fe01773ba8`: 1 info
  - endpoint deprecated
- **2026-10-19** `a01b82176fba`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/mergify/apis/mergify-api/changes/ci/:owner/repositories/:repository/quarantines/:quarantine_id/patch.md)

---

[API](https://skmtc.dev/mergify/apis/mergify-api.md) · [All operations](https://skmtc.dev/mergify/apis/mergify-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mergify/apis/mergify-api/revisions/00b8f4a31190?raw)
