---
title: "Update bucket policy"
method: PUT
path: "/bus/bucket/{name}/policy"
tags: ["bus"]
---

# Update bucket policy

`PUT /bus/bucket/{name}/policy`

Updates the policy of the specified bucket. The policy can be used to configure public read access to the bucket.

## Path parameters

- `name` string, required — The name of the bucket.

## Request body

- object
  - `policy` object
    - `publicReadAccess` boolean — Whether the bucket is publicly readable

## Response `200`

Successfully updated bucket policy

## Other responses

- `400` — Malformed request
- `404` — Bucket not found

---

[API](https://skmtc.net/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.net/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/revisions/184a3d5207da/schema)
