---
title: "Create storage"
method: POST
path: "/storages"
tags: ["Storages"]
---

# Create storage

`POST /storages`

## Request

- Base URL: `https://localhost:8446/api/v2`
- URL: `https://localhost:8446/api/v2/storages`
- Auth: API key in header `Authorization`

Create new storage.

## Request body

- object
  - `name` string, required: Storage name
  - `description` string, required: Storage description
  - `type` string, required: Storage type
  - `config` object, required: Config for storage
  - `config.auth_type` string, required: Authorization type
  - `config.access_id` string, required: Access key
  - `config.access_secret` string, required: Secret key
  - `config.bucket` string: Bucket
  - `config.region` string, required: Region
  - `id` number, required: Storage id
  - `config.endpoint` string, required: Endpoint
  - `config.key` string, required: Key. Applicable if auth_type is key
  - `config.sas_token` string, required: SAS token. Applicable if auth_type is sas
  - `config.account` string, required: Account
  - `config.container` string: Container
  - `config.project` string, required: Project
  - `config.client_id` string, required: Application ID
  - `config.client_secret` string, required: Application secret
  - `config.root` string, required: Root
  - `config.drive` string: Drive
  - `config.namespace` string, required: Namespace

## Response `200`

Successful response

- object

## Other responses

- `default`: Error response. Depending on the error, either a 4xx or 5xx response status is returned.

---

[API](https://skmtc.dev/resilio/apis/resilio-api.md) - [All operations](https://skmtc.dev/resilio/apis/resilio-api/llms.txt) - [OpenAPI document](https://skmtc.dev/resilio/apis/resilio-api/revisions/ca39130a395e?raw)
