---
title: "quarantineFilePath"
method: PUT
path: "/registry/{registry_ref}/quarantine"
tags: ["quarantine"]
---

# quarantineFilePath

`PUT /registry/{registry_ref}/quarantine`

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/registry/{registry_ref}/quarantine`
- Auth: none declared

quarantine file path

## Path parameters

- `registry_ref` string, required

## Request body

- QuarantineRequest
  - `filePath` string
  - `artifact` string, required
  - `version` string
  - `reason` string, required
  - `artifactType` string

## Response `200`

quarantine path response

- object
  - `status` 'SUCCESS' | 'FAILURE' | 'ERROR', required: Indicates if the request was successful or not
  - `data` QuarantinePath, required: quarantine path
    - `id` string, required
    - `registryId` integer, required
    - `artifactId` integer, required
    - `versionId` integer
    - `filePath` string
    - `reason` string, required

## Other responses

- `400`: Bad request
- `401`: Unauthenticated
- `403`: Unauthorized
- `500`: Internal server error

## Changes

- **2025-11-14** `148e4f51552d`: 1 info
  - added the new optional request property `artifactType`
- **2025-07-22** `3a426b5c88ba`: 1 info
  - endpoint added
- **2024-10-23** `7fa72da6b8aa`: 1 breaking
  - api path removed without deprecation

[Operation history](https://skmtc.dev/harness/apis/harness-artifact-registry-api/changes/registry/:registry_ref/quarantine/put.md)

---

[API](https://skmtc.dev/harness/apis/harness-artifact-registry-api.md) · [All operations](https://skmtc.dev/harness/apis/harness-artifact-registry-api/llms.txt) · [OpenAPI document](https://skmtc.dev/harness/apis/harness-artifact-registry-api/revisions/e315ed26a2f1?raw)
