---
title: "Update storage"
method: PUT
path: "/v1/storages/{storage_id}/"
---

# Update storage

`PUT /v1/storages/{storage_id}/`

## Request

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

Required roles:
 - can_write_storages

## Path parameters

- `storage_id` string, required

## Query parameters

- `send_storage_gateway_event` boolean

## 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 `200`

Returns an updated storage

- 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

## Other responses

- `400`: Bad request
- `401`: Token is invalid
- `403`: The DROPBOX feature is not enabled for the domain, purpose is 'faces', or editing a system storage without being a Super Admin
- `404`: Storage doesn't exist
- `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)
