---
title: "Creates / Updates / Deletes provided quarantine ranges - v2"
method: PUT
path: "/ransomwarerecovery/v2/quarantineranges/resource/{resourceID}"
tags: ["Ransomware Recovery"]
---

# Creates / Updates / Deletes provided quarantine ranges - v2

`PUT /ransomwarerecovery/v2/quarantineranges/resource/{resourceID}`

## Request

- Base URL: `https://apis.druva.com/realize`
- URL: `https://apis.druva.com/realize/ransomwarerecovery/v2/quarantineranges/resource/{resourceID}`
- Auth: none declared

This API replaces all existing quarantine ranges for a resource with the provided ranges. To preserve existing ranges, retrieve them via a GET (/ransomwarerecovery/v2/quarantineranges) request before using this API. If no ranges are provided in the input, all existing ranges for the resource are deleted.

## Path parameters

- `resourceID` integer, required

## Request body

- CreateQuarantineRangeV2RequestSchema
  - `resourceType` 'Endpoint' | 'File Server' | 'NAS' | 'VMware' | 'OneDrive' | 'Google Drive' | 'SharePoint' | 'Shared Drive' | 'AzureVM': Select the resource type. Select Endpoint if you want to quarantine snapshots on a device. Select File Server, NAS, and so on respectively if you want to quarantine snapshots on server data sources.
  - `orgID` integer: This applies to Enterprise Workloads resource types only.
  - `ranges` object[]
    - `fromDate` string: from date
    - `toDate` string: Leaving the field 'toDate' empty quarantines all snapshots created after the 'fromDate', including future snapshots.
    - `quarantineType` integer: Indicates the type of Quarantine enabled for the resource. The value 2 refers to Auto Quarantine type while 1 indicates Manual Quarantine.

## Response `200`

OK

- CreateQuarantineRangeV2ResponseSchema
  - `ranges` object[]
    - `fromDate` string: from date
    - `toDate` string: to date

## Other responses

- `400`: Bad Request
- `401`: The request did not include an authentication token or an expired authentication token was supplied.
- `404`: Not found
- `500`: Internal Server Error

---

[API](https://skmtc.dev/druva/apis/cyber-resilience.md) - [All operations](https://skmtc.dev/druva/apis/cyber-resilience/llms.txt) - [OpenAPI document](https://skmtc.dev/druva/apis/cyber-resilience/revisions/b149d46c996a?raw)
