---
title: "Creates a new object store bucket with the given params"
method: POST
path: "/api/v1/orgs/{orgId}/buckets"
tags: ["storage"]
---

# Creates a new object store bucket with the given params

`POST /api/v1/orgs/{orgId}/buckets`

Creates a new object store bucket on the Cloud provider referenced by the given secret. The credentials for creating the bucket is taken from the provided secret.

## Path parameters

- `orgId` integer, required

## Request body

- CreateObjectStoreBucketRequest
  - `secretId` string
  - `secretName` string
  - `name` string, required
  - `properties` CreateObjectStoreBucketProperties, required
    - `amazon` CreateAmazonObjectStoreBucketProperties, nullable
      - `location` string, required
    - `azure` CreateAzureObjectStoreBucketProperties, nullable
      - `storageAccount` string, required
      - `location` string, required
      - `resourceGroup` string, required
    - `google` CreateGoogleObjectStoreBucketProperties, nullable
      - `location` string, required

## Response `202`

Storage bucket creation request accepted

- CreateObjectStoreBucketResponse
  - `name` string, required
  - `cloud` 'amazon' | 'azure' | 'google', required

## Other responses

- `default` — Internal server error

---

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