---
title: "Update a snapshot"
method: PATCH
path: "/diskgroups/{DgId}/volumes/{VolId}/snapshots/{SnapId}"
tags: ["Snapshots"]
---

# Update a snapshot

`PATCH /diskgroups/{DgId}/volumes/{VolId}/snapshots/{SnapId}`

## Request

- Base URL: `https://sort.veritas.com/infoscale/api/2.0`
- URL: `https://sort.veritas.com/infoscale/api/2.0/diskgroups/{DgId}/volumes/{VolId}/snapshots/{SnapId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/veritas/apis/veritas-infoscale-api/docs/diskgroups/:DgId/volumes/:VolId/snapshots/:SnapId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Perform operations on a snapshot

## Path parameters

- `DgId` string, required
- `VolId` string, required
- `SnapId` string, required

## Query parameters

- `nodename` string

## Request body

- SnapshotDetailV2v0
  - `SnapName` string: Name of the snapshot
  - `VolumeId` string, uri: Link to get more details of the snapshot volume
  - `SourceVol` string, uri: Link of associated parent volume (use "Null" keyword for dissociate PATCH operation)
  - `Type` 'full-instant' | 'space-optimized' | 'mirror-breakoff': Type of the snapshot like full-instant, space-optimized, mirror-breakoff etc.
  - `SyncStatus` string: Percentage of data sync completed from source
  - `CreatedAt` string: Timestamp when snapshot is taken (use "now" keyword to perform refresh PATCH operation)
  - `Syncing` boolean: Specify false if synchronization should not be started in case of refresh PATCH operation for full-sized instant snapshots.
  - `Incomplete` boolean: Specifies if the snapshot has not been fully synchronized with its parent volume.
  - `Operations` Operation[]: Operations to be performed on a particular snapshot
    - `Name` string: Operation name
    - `href` string, uri: Link to the operation

## Response `200`

The request has succeeded.

- Response
  - `detail` string: Error details.
  - `status` integer: http code

## Other responses

- `202`: The request has been initiated.
- `400`: Bad request
- `401`: The requested operation requires authentication.
- `403`: Forbidden
- `404`: Object that the endpoint is working on is not found.

---

[API](https://skmtc.dev/veritas/apis/veritas-infoscale-api.md) - [All operations](https://skmtc.dev/veritas/apis/veritas-infoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/veritas/apis/veritas-infoscale-api/revisions/1e3d3f7145bb?raw)
