---
title: "POST /mounts.create"
method: POST
path: "/mounts.create"
tags: ["mounts"]
---

# POST /mounts.create

`POST /mounts.create`

## Request body

- object
  - `content` string, nullable
  - `filePath` string, nullable
  - `hostPath` string, nullable
  - `mountPath` string, required
  - `serviceId` string, required
  - `serviceType` 'application' | 'postgres' | 'mysql' | 'mariadb' | 'mongo' | 'redis' | 'compose'
  - `type` 'bind' | 'volume' | 'file', required
  - `volumeName` string, nullable

## Response `200`

Successful response

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/charliedevelops/apis/dokploy-api.md) · [All operations](https://skmtc.net/charliedevelops/apis/dokploy-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/charliedevelops/dokploy-api/versions/50e2e470fdd0/schema)
