> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/artifact-registry/api-reference/quarantine.md).

# Quarantine

## quarantineFilePath

> quarantine file path

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/registry/{registry_ref}/quarantine":{"put":{"description":"quarantine file path","operationId":"quarantineFilePath","parameters":[{"$ref":"#/components/parameters/registryRefPathParam"}],"requestBody":{"$ref":"#/components/requestBodies/quarantineRequest"},"responses":{"200":{"$ref":"#/components/responses/quarantinePathResponse"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"quarantineFilePath","tags":["quarantine"]}}},"components":{"parameters":{"registryRefPathParam":{"description":"Reference to the scope in which the registry exists.\n\nFormat depends on the scope:\n\n- **Account-level**: `account_id/registry_name/+`\n- **Organization-level**: `account_id/org_id/registry_name/+`\n- **Project-level**: `account_id/org_id/project_id/registry_name/+`\n\nThe `/+` suffix is used internally to route scoped requests.\nIt must be included **exactly as shown** in the URL.\n","in":"path","name":"registry_ref","required":true,"schema":{"type":"string"}}},"requestBodies":{"quarantineRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/quarantineRequest"}}},"description":"request to quarantine specific file path"}},"schemas":{"quarantineRequest":{"properties":{"artifact":{"type":"string"},"artifactKeyFilters":{"additionalProperties":{"type":"string"},"type":"object"},"artifactType":{"type":"string"},"filePath":{"type":"string"},"reason":{"type":"string"},"version":{"type":"string"}},"required":["artifact","reason"],"type":"object"},"quarantinePath":{"description":"quarantine path","properties":{"artifactId":{"format":"int64","type":"integer"},"filePath":{"type":"string"},"id":{"type":"string"},"reason":{"type":"string"},"registryId":{"format":"int64","type":"integer"},"versionId":{"format":"int64","type":"integer"}},"required":["id","registryId","artifactId","reason"],"type":"object"},"Status":{"description":"Request processing status indicator","enum":["SUCCESS","FAILURE","ERROR"],"type":"string"},"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}},"responses":{"quarantinePathResponse":{"content":{"application/json":{"schema":{"properties":{"data":{"$ref":"#/components/schemas/quarantinePath"},"status":{"$ref":"#/components/schemas/Status"}},"required":["status","data"],"type":"object"}}},"description":"quarantine path response"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}}}}
```

## deleteQuarantineFilePath

> delete Quarantine file path

```json
{"openapi":"3.0.0","info":{"title":"Harness Artifact Registry API","version":"1.0.0"},"tags":[],"servers":[{"url":"/api"}],"paths":{"/v1/registry/{registry_ref}/quarantine":{"delete":{"description":"delete Quarantine file path","operationId":"deleteQuarantineFilePath","parameters":[{"$ref":"#/components/parameters/registryRefPathParam"},{"$ref":"#/components/parameters/artifactParam"},{"$ref":"#/components/parameters/versionParam"},{"$ref":"#/components/parameters/filePathParam"},{"$ref":"#/components/parameters/artifactTypeParam"},{"$ref":"#/components/parameters/filtersParam"}],"responses":{"200":{"$ref":"#/components/responses/Success"},"400":{"$ref":"#/components/responses/BadRequest"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Unauthorized"},"500":{"$ref":"#/components/responses/InternalServerError"}},"summary":"deleteQuarantineFilePath","tags":["quarantine"]}}},"components":{"parameters":{"registryRefPathParam":{"description":"Reference to the scope in which the registry exists.\n\nFormat depends on the scope:\n\n- **Account-level**: `account_id/registry_name/+`\n- **Organization-level**: `account_id/org_id/registry_name/+`\n- **Project-level**: `account_id/org_id/project_id/registry_name/+`\n\nThe `/+` suffix is used internally to route scoped requests.\nIt must be included **exactly as shown** in the URL.\n","in":"path","name":"registry_ref","required":true,"schema":{"type":"string"}},"artifactParam":{"description":"Artifat","in":"query","name":"artifact","schema":{"type":"string"}},"versionParam":{"description":"Version","in":"query","name":"version","schema":{"type":"string"}},"filePathParam":{"description":"filePath","in":"query","name":"file_path","schema":{"type":"string"}},"artifactTypeParam":{"description":"artifact type.","in":"query","name":"artifact_type","schema":{"enum":["model","dataset","module","provider"],"type":"string"}},"filtersParam":{"description":"Key-value filters for artifact version. Repeat the parameter once per filter.\nFormat per entry: key:value\nExample: ?filters=architecture:amd64&filters=distribution:ubuntu\n","explode":true,"in":"query","name":"filters","schema":{"items":{"type":"string"},"type":"array"},"style":"form"}},"responses":{"Success":{"content":{"application/json":{"schema":{"properties":{"status":{"$ref":"#/components/schemas/Status"}},"required":["status"],"type":"object"}}},"description":"Generic success response"},"BadRequest":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"The request was invalid or malformed"},"Unauthenticated":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Authentication failed or missing credentials"},"Unauthorized":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"Access denied due to insufficient permissions"},"InternalServerError":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}},"description":"An unexpected server error occurred"}},"schemas":{"Status":{"description":"Request processing status indicator","enum":["SUCCESS","FAILURE","ERROR"],"type":"string"},"Error":{"description":"Standard error response with code, message and optional details","properties":{"code":{"description":"The HTTP error code","type":"string"},"details":{"description":"Additional context and details about the error.\nMay include field-specific validation errors or debugging information.\n","type":"object"},"message":{"description":"Human-readable error message explaining what went wrong","type":"string"}},"required":["code","message"],"type":"object"}}}}
```
