---
title: "Put Storage Policy"
method: PUT
path: "/v1/organizations/{organization_id}/storage/policy"
tags: ["public_api", "external", "storage"]
---

# Put Storage Policy

`PUT /v1/organizations/{organization_id}/storage/policy`

## Request

- Base URL: `https://api.hydracept.com`
- URL: `https://api.hydracept.com/v1/organizations/{organization_id}/storage/policy`
- Auth: HTTP bearer

## Path parameters

- `organization_id` string, required

## Request body

- StoragePolicyPut
  - `primaryBackendId` string, required
  - `retentionMode` string
  - `retentionDays` integer, nullable
  - `replicationPolicy` string
  - `secondaryBackendId` string, nullable
  - `workspaceId` string, nullable

## Response `200`

Successful Response

- StoragePolicyOut
  - `id` string, required
  - `organizationId` string, required
  - `workspaceId` string, nullable
  - `primaryBackendId` string, required
  - `retentionMode` string, required
  - `retentionDays` integer, nullable
  - `replicationPolicy` string, required
  - `secondaryBackendId` string, nullable
  - `policyVersion` integer, required

## Other responses

- `401`: Structured public error envelope (`code`, `message`, `requestId`, …)
- `403`: Structured public error envelope (`code`, `message`, `requestId`, …)
- `404`: Structured public error envelope (`code`, `message`, `requestId`, …)
- `422`: Validation failure: public envelope plus Pydantic `detail` / `validationErrors`
- `429`: Structured public error envelope (`code`, `message`, `requestId`, …)
- `500`: Structured public error envelope (`code`, `message`, `requestId`, …)
- `502`: Structured public error envelope (`code`, `message`, `requestId`, …)
- `503`: Structured public error envelope (`code`, `message`, `requestId`, …)

---

[API](https://skmtc.dev/hydracept/apis/hydracept-public-api.md) · [All operations](https://skmtc.dev/hydracept/apis/hydracept-public-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hydracept/apis/hydracept-public-api/revisions/2d41a8069ede?raw)
