---
title: "Create backup bucket"
method: POST
path: "/api/v1/orgs/{orgId}/backupbuckets"
tags: ["ark-buckets"]
---

# Create backup bucket

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

Create backup bucket

## Path parameters

- `orgId` integer, required

## Request body

- CreateBackupBucketRequest
  - `cloud` string, required
  - `bucketName` string, required
  - `secretId` string, required
  - `prefix` string — Optional, if not provided will be set to the name of the cluster
  - `location` string
  - `storageAccount` string — required only in case of Azure
  - `resourceGroup` string — required only case of Azure

## Response `200`

Backup bucket added successfully

- CreateBackupBucketResponse
  - `id` integer
  - `name` string
  - `cloud` string
  - `secretId` string
  - `status` string
  - `inUse` boolean

## 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)
