---
title: "Create Storage"
method: POST
path: "/applications/{uuid}/storages"
tags: ["Applications"]
---

# Create Storage

`POST /applications/{uuid}/storages`

Create a persistent storage or file storage for an application.

## Path parameters

- `uuid` string, required

## Request body

- object
  - `type` 'persistent' | 'file', required — The type of storage.
  - `name` string — Volume name (persistent only, required for persistent).
  - `mount_path` string, required — The container mount path.
  - `host_path` string, nullable — The host path (persistent only, optional).
  - `content` string, nullable — File content (file only, optional).
  - `is_directory` boolean — Whether this is a directory mount (file only, default false).
  - `fs_path` string — Host directory path (required when is_directory is true).

## Response `201`

Storage created.

- object

## Other responses

- `400` — Invalid token.
- `401` — Unauthenticated.
- `404` — Resource not found.
- `422` — Validation error.

---

[API](https://skmtc.net/coollabsio/apis/coolify.md) · [All operations](https://skmtc.net/coollabsio/apis/coolify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coollabsio/coolify/versions/08be5dc8e729/schema)
