---
title: "Create a new storage"
method: POST
path: "/v1/storages/"
---

# Create a new storage

`POST /v1/storages/`

## Request

- Base URL: `https://app.iconik.io/API/files`
- URL: `https://app.iconik.io/API/files/v1/storages/`
- Auth: none declared. Required headers: `App-ID`, `Auth-Token`
- TypeScript: <https://skmtc.dev/iconik/apis/iconik-files/docs/v1/storages/post.ts> (a function with typed inputs; its response is checked against the schema)

Required roles:
 - can_write_storages

## Headers

- `App-ID` string, required
- `Auth-Token` string, required

## Request body

- StorageSchema
  - `default` boolean
  - `description` string, nullable
  - `id` string, uuid
  - `last_scanned` string, date-time, nullable
  - `method` 'FILE' | 'HTTP' | 'FTP' | 'SFTP' | 'S3' | 'B2' | 'GCS' | 'PORTAL' | 'CUSTOM' | 'AZURE' | 'DROPBOX', required
  - `name` string, required
  - `purpose` 'KEYFRAMES' | 'FILES' | 'PROXIES' | 'EXPORTS' | 'ARCHIVE' | 'FACES', required
  - `scanner_status` string, nullable
  - `settings` object, required
  - `status` 'ACTIVE' | 'INACTIVE' | 'FAILING'
  - `status_message` string, nullable
  - `version` string

## Response `201`

Returns a created storage entry

- StorageReadSchema
  - `default` boolean
  - `description` string, nullable
  - `id` string, uuid
  - `isg_version` string
  - `last_scanned` string, date-time, nullable
  - `method` 'FILE' | 'HTTP' | 'FTP' | 'SFTP' | 'S3' | 'B2' | 'GCS' | 'PORTAL' | 'CUSTOM' | 'AZURE' | 'DROPBOX', required
  - `name` string, required
  - `purpose` 'KEYFRAMES' | 'FILES' | 'PROXIES' | 'EXPORTS' | 'ARCHIVE' | 'FACES', required
  - `scanner_status` string, nullable
  - `settings` object, required
  - `status` 'ACTIVE' | 'INACTIVE' | 'FAILING'
  - `status_message` string, nullable
  - `storage_gateway_cluster_id` string, uuid
  - `storage_gateway_ids` string[]
  - `version` string

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `403`: The DROPBOX feature is not enabled for the domain, purpose is 'faces', or creating a system storage without being a Super Admin
- `409`: Storage with this name already exists
- `default`: Error response

---

[API](https://skmtc.dev/iconik/apis/iconik-files.md) - [All operations](https://skmtc.dev/iconik/apis/iconik-files/llms.txt) - [OpenAPI document](https://skmtc.dev/iconik/apis/iconik-files/revisions/ed57d13791a2?raw)
