---
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
  - `keepDaily` integer
  - `keepHourly` integer
  - `keepLast` integer
  - `keepMonthly` integer
  - `keepWeekly` integer
  - `keepYearly` integer
  - `maxAgeDays` integer

## 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.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/7a7bea85004e/schema)
