Dokploy
Generated

Mounts

POST
/mounts.create

Mounts create

/mounts.create

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

type
Required
string

Value in: "bind" | "volume" | "file"

hostPathstring | null

volumeNamestring | null

contentstring | null

mountPath
Required
string

Minimum length: 1

serviceTypestring

Default: "application"Value in: "application" | "postgres" | "mysql" | "mariadb" | "mongo" | "redis" | "compose"

filePathstring | null

serviceId
Required
string

Minimum length: 1
curl -X POST "http://your-dokploy-instance.com/api/mounts.create" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "type": "bind",
    "hostPath": "string",
    "volumeName": "string",
    "content": "string",
    "mountPath": "string",
    "serviceType": "application",
    "filePath": "string",
    "serviceId": "string"
  }'

Successful response

POST
/mounts.remove

Mounts remove

/mounts.remove

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

mountId
Required
string

curl -X POST "http://your-dokploy-instance.com/api/mounts.remove" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mountId": "string"
  }'

Successful response

GET
/mounts.one

Mounts one

/mounts.one

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Query Parameters

mountId
Required
string

curl -X GET "http://your-dokploy-instance.com/api/mounts.one?mountId=string" \
  -H "Authorization: Bearer <token>"

Successful response

POST
/mounts.update

Mounts update

/mounts.update

The Authorization access token

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

application/jsonRequired

mountId
Required
string

Minimum length: 1

typestring

Value in: "bind" | "volume" | "file"

hostPathstring | null

volumeNamestring | null

filePathstring | null

contentstring | null

serviceTypestring

Default: "application"Value in: "application" | "postgres" | "mysql" | "mariadb" | "mongo" | "redis" | "compose"

mountPathstring

Minimum length: 1

applicationIdstring | null

postgresIdstring | null

mariadbIdstring | null

mongoIdstring | null

mysqlIdstring | null

redisIdstring | null

composeIdstring | null

curl -X POST "http://your-dokploy-instance.com/api/mounts.update" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mountId": "string",
    "type": "bind",
    "hostPath": "string",
    "volumeName": "string",
    "filePath": "string",
    "content": "string",
    "serviceType": "application",
    "mountPath": "string",
    "applicationId": "string",
    "postgresId": "string",
    "mariadbId": "string",
    "mongoId": "string",
    "mysqlId": "string",
    "redisId": "string",
    "composeId": "string"
  }'

Successful response