---
title: "Update a storage destination"
method: PATCH
path: "/storage-destinations/{storageDestinationId}"
tags: ["Storage"]
---

# Update a storage destination

`PATCH /storage-destinations/{storageDestinationId}`

## Request

- Base URL: `https://renderio.dev/api/v1`
- URL: `https://renderio.dev/api/v1/storage-destinations/{storageDestinationId}`
- Auth: API key in header `X-API-KEY`

## Request body

- UpdateStorageDestinationRequest: Only supplied fields are changed. Endpoint, region, and bucket are immutable; create a new destination to change them.
  - `name` string
  - `prefix` string
  - `public_base_url` string, uri, nullable
  - `path_style` boolean
  - `credentials` StorageCredentials
    - `access_key_id` string, required
    - `secret_access_key` string, password, required
    - `session_token` string, password

## Response `200`

Storage destination updated

- StorageDestination
  - `storage_destination_id` string, required: Business-plan S3-compatible destination that receives this command's outputs.
  - `name` string, required
  - `endpoint_url` string, uri, required
  - `region` string, required
  - `bucket` string, required
  - `prefix` string, required
  - `public_base_url` string, uri, nullable, required
  - `path_style` boolean, required
  - `access_key_id_masked` string, required
  - `disabled` boolean, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required

## Other responses

- `400`: Malformed request
- `401`: Missing or invalid API key
- `403`: Plan does not include this capability
- `404`: Resource not found
- `409`: Resource state conflict
- `429`: Rate limit exceeded — retry after the `Retry-After` interval

---

[API](https://skmtc.dev/renderio/apis/renderio-api.md) · [All operations](https://skmtc.dev/renderio/apis/renderio-api/llms.txt) · [OpenAPI document](https://skmtc.dev/renderio/apis/renderio-api/revisions/062c8f1c062b?raw)
