---
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}`

## Request

- Base URL: `https://sylve.lan:8181/api`
- URL: `https://sylve.lan:8181/api/zfs/datasets/snapshot/periodic/{id}`
- Auth: API key in header `Authorization`

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/9565cdd0abf5?raw)
