---
title: "POST /b/{bucket}/lockRetentionPolicy"
method: POST
path: "/b/{bucket}/lockRetentionPolicy"
tags: ["buckets"]
---

# POST /b/{bucket}/lockRetentionPolicy

`POST /b/{bucket}/lockRetentionPolicy`

Locks retention policy on a bucket.

## Path parameters

- `bucket` string, required

## Query parameters

- `ifMetagenerationMatch` string, required
- `userProject` string

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/storage.md) · [All operations](https://skmtc.dev/google/apis/storage/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/storage/revisions/4623cd2c71cf/schema)
