---
title: "Update bucket settings"
method: PUT
path: "/api/containers/{namespace}/{repo}/settings"
tags: ["containers"]
---

# Update bucket settings

`PUT /api/containers/{namespace}/{repo}/settings`

## Path parameters

- `namespace` string, required
- `repo` string, required

## Request body

- object
  - `private` union
    - boolean
    - string
  - `cdnRegions` object[]
    - `provider` 'gcp' | 'aws', required
    - `region` 'us' | 'eu', required

## Response `200`

The updated bucket settings.

- object
  - `private` boolean
  - `cdnRegions` object[]
    - `provider` 'gcp' | 'aws', required
    - `region` 'us' | 'eu', required

## Changes

- **2026-09-18** `74f2b0d17636` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/huggingface/apis/hub-api-endpoints/changes/api/containers/:namespace/:repo/settings/put.md)

---

[API](https://skmtc.dev/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.dev/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc.dev/huggingface/apis/hub-api-endpoints/revisions/74f2b0d17636?raw)
