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

# Creates provided quarantine ranges - v2

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

Creates provided quarantine ranges for resources. While creating quarantine ranges, the API checks for overlapping ranges and displays an error if the overlapping ranges are present.

## Path parameters

- `resourceID` integer, required

## Request body

- CreateQuarantineRangeV2RequestSchema
  - `resourceType` 'Endpoint' | 'OneDrive' | 'SharePoint' | 'File Server' | 'NAS' | 'VMware' — Select the resource type. Select Endpoint if you want to quarantine snapshots on a device. Select File Server, NAS, VMware respectively if you want to quarantine snapshots on server data sources.
  - `orgID` integer — The Phoenix organization ID for the resource. For inSync workloads, value will be -1.
  - `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.net/druva/apis/authentication.md) · [All operations](https://skmtc.net/druva/apis/authentication/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/druva/authentication/revisions/2af2bf148b25/schema)
