---
title: "POST /PutVectorBucketPolicy"
method: POST
path: "/PutVectorBucketPolicy"
---

# POST /PutVectorBucketPolicy

`POST /PutVectorBucketPolicy`

Creates a bucket policy for a vector bucket. To specify the bucket, you must use either the vector bucket name or the vector bucket Amazon Resource Name (ARN).

Permissions

You must have the `s3vectors:PutVectorBucketPolicy` permission to use this operation.

## Request body

- object
  - `vectorBucketName` string — The name of the vector bucket.
  - `vectorBucketArn` string — The Amazon Resource Name (ARN) of the vector bucket.
  - `policy` string, required — The <code>JSON</code> that defines the policy. For more information about bucket policies for S3 Vectors, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/s3-vectors-bucket-policy.html">Managing vector bucket policies</a> in the <i>Amazon S3 User Guide</i>.

## Response `200`

Success

- PutVectorBucketPolicyOutput

## Other responses

- `480` — ValidationException
- `481` — ServiceUnavailableException
- `482` — TooManyRequestsException
- `483` — InternalServerException
- `484` — AccessDeniedException
- `485` — RequestTimeoutException
- `486` — NotFoundException

---

[API](https://skmtc.net/aws/apis/s3vectors.md) · [All operations](https://skmtc.net/aws/apis/s3vectors/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/aws/s3vectors/versions/dc31037cd75b/schema)
