Dokploy

Mounts

POST
/mounts.create

Authorization

x-api-key

x-api-key<token>

API key authentication. Use YOUR-GENERATED-API-KEY

In: header

Request Body

application/json

type*string
Value in"bind" | "volume" | "file"
hostPath?string|null
volumeName?string|null
content?string|null
mountPath*string
Length1 <= length
serviceType?string
Default"application"
Value in"application" | "postgres" | "mysql" | "mariadb" | "mongo" | "redis" | "compose"
filePath?string|null
serviceId*string
Length1 <= length
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://your-dokploy-instance.com/api/mounts.create" \  -H "Content-Type: application/json" \  -d '{    "type": "bind",    "mountPath": "string",    "serviceId": "string"  }'
{}
{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}
POST
/mounts.remove

Authorization

x-api-key

x-api-key<token>

API key authentication. Use YOUR-GENERATED-API-KEY

In: header

Request Body

application/json

mountId*string
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://your-dokploy-instance.com/api/mounts.remove" \  -H "Content-Type: application/json" \  -d '{    "mountId": "string"  }'
{}
{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}
GET
/mounts.one

Authorization

x-api-key

x-api-key<token>

API key authentication. Use YOUR-GENERATED-API-KEY

In: header

Query Parameters

mountId*string

Response Body

application/json

application/json

curl -X GET "https://your-dokploy-instance.com/api/mounts.one?mountId=string"
{}
{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}
POST
/mounts.update

Authorization

x-api-key

x-api-key<token>

API key authentication. Use YOUR-GENERATED-API-KEY

In: header

Request Body

application/json

mountId*string
Length1 <= length
type?string
Value in"bind" | "volume" | "file"
hostPath?string|null
volumeName?string|null
filePath?string|null
content?string|null
serviceType?string
Default"application"
Value in"application" | "postgres" | "mysql" | "mariadb" | "mongo" | "redis" | "compose"
mountPath?string
Length1 <= length
applicationId?string|null
postgresId?string|null
mariadbId?string|null
mongoId?string|null
mysqlId?string|null
redisId?string|null
composeId?string|null
[key: string]?never

Response Body

application/json

application/json

curl -X POST "https://your-dokploy-instance.com/api/mounts.update" \  -H "Content-Type: application/json" \  -d '{    "mountId": "string"  }'
{}
{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}
GET
/mounts.allNamedByApplicationId

Authorization

x-api-key

x-api-key<token>

API key authentication. Use YOUR-GENERATED-API-KEY

In: header

Query Parameters

applicationId*string
Length1 <= length

Response Body

application/json

application/json

curl -X GET "https://your-dokploy-instance.com/api/mounts.allNamedByApplicationId?applicationId=string"
{}
{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}