---
title: "Update External Storage"
method: PUT
path: "/external_storage/{name}"
tags: ["product:chat"]
---

# Update External Storage

`PUT /external_storage/{name}`

## Path parameters

- `name` string, required

## Request body

- UpdateExternalStorageRequest, nullable — External storage
  - `aws_s3` S3Request — Config for creating Amazon S3 storage.
    - `s3_api_key` string — The AWS API key. To use Amazon S3 as your storage provider, you have two authentication options: IAM role or API key. If you do not specify the `s3_api_key` parameter, Stream will use IAM role authentication. In that case make sure to have the correct IAM role configured for your application.
    - `s3_custom_endpoint_url` string — The custom endpoint for S3. If you want to use a custom endpoint, you must also provide the `s3_api_key` and `s3_secret` parameters.
    - `s3_region` string, required — The AWS region where the bucket is hosted
    - `s3_secret` string — The AWS API Secret
  - `azure_blob` AzureRequest — Config for creating Azure Blob Storage storage
    - `abs_account_name` string, required — The account name
    - `abs_client_id` string, required — The client id
    - `abs_client_secret` string, required — The client secret
    - `abs_tenant_id` string, required — The tenant id
  - `bucket` string, required — The name of the bucket on the service provider
  - `gcs_credentials` string
  - `path` string — The path prefix to use for storing files
  - `storage_type` 's3' | 'gcs' | 'abs', required — The type of storage to use

## Response `201`

Response

- UpdateExternalStorageResponse, nullable — Basic response information
  - `bucket` string, required
  - `duration` string, required — Duration of the request in milliseconds
  - `name` string, required
  - `path` string, required
  - `type` 's3' | 'gcs' | 'abs', required

## Other responses

- `400` — Bad request
- `429` — Too many requests

---

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