---
title: "Update reclaim policy of a PersistentVolume"
method: PUT
path: "/kubernetes/{id}/persistent_volumes/reclaim_policy"
tags: ["kubernetes"]
---

# Update reclaim policy of a PersistentVolume

`PUT /kubernetes/{id}/persistent_volumes/reclaim_policy`

Update the reclaim policy of a PersistentVolume.
**Access policy**: Authenticated user.

## Path parameters

- `id` integer, required

## Request body

- KubernetesK8sPVReclaimPolicyRequest
  - `name` string
  - `reclaimPolicy` 'Recycle' | 'Delete' | 'Retain'

## Response `204`

Success

## Other responses

- `400` — Invalid request payload.
- `403` — Unauthorized access or operation not allowed.
- `500` — Server error occurred while attempting to update reclaim policy.

---

[API](https://skmtc.net/portainer/apis/portainerce-api.md) · [All operations](https://skmtc.net/portainer/apis/portainerce-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/portainer/portainerce-api/versions/c0b0975cd11b/schema)
