---
title: "Modify retention of a periodic ZFS snapshot job"
method: PATCH
path: "/zfs/datasets/snapshot/periodic/{id}"
tags: ["ZFS"]
---

# Modify retention of a periodic ZFS snapshot job

`PATCH /zfs/datasets/snapshot/periodic/{id}`

Modify retention of a periodic ZFS snapshot job

## Path parameters

- `id` integer, required

## Request body

- GithubComAlchemillahqSylveInternalInterfacesServicesZfsModifyPeriodicSnapshotRetentionRequest
  - `cronExpr` string
  - `interval` integer
  - `keepDaily` integer
  - `keepHourly` integer
  - `keepLast` integer
  - `keepMonthly` integer
  - `keepWeekly` integer
  - `keepYearly` integer
  - `maxAgeDays` integer
  - `retentionType` string

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseAny
  - `data` unknown
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `400` — Bad Request
- `404` — Not Found
- `500` — Internal Server Error

---

[API](https://skmtc.dev/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.dev/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc.dev/alchemillahq/apis/sylve-api/revisions/f1c5f8388fd6?raw)
