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

# Modify retention of a periodic ZFS snapshot job

`PATCH /zfs/datasets/snapshot/periodic`

Modify retention of a periodic ZFS snapshot job

## Request body

- GithubComAlchemillahqSylveInternalInterfacesServicesZfsModifyPeriodicSnapshotRetentionRequest
  - `id` integer, required
  - `keepDaily` integer
  - `keepHourly` integer
  - `keepLast` integer
  - `keepMonthly` integer
  - `keepWeekly` integer
  - `keepYearly` integer
  - `maxAgeDays` integer

## Response `200`

OK

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

## Other responses

- `400` — Bad Request
- `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/versions/950e51f8af98/schema)
