Dokploy
Generated

Mongo

POST
/mongo.create

Mongo create

/mongo.create

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

name
Required
string

Minimum length: 1

appName
Required
string

Minimum length: 1

dockerImagestring

Default: "mongo:15"

environmentId
Required
string

descriptionstring | null

databaseUser
Required
string

Minimum length: 1

databasePassword
Required
string

Pattern: "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$"

serverIdstring | null

replicaSetsboolean | null

Default: false
curl -X POST "https://your-dokploy-instance.com/api/mongo.create" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "string",
    "appName": "string",
    "dockerImage": "mongo:15",
    "environmentId": "string",
    "description": "string",
    "databaseUser": "string",
    "databasePassword": "string",
    "serverId": "string",
    "replicaSets": false
  }'

Successful response

{}

GET
/mongo.one

Mongo one

/mongo.one

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Query Parameters

mongoId
Required
string

curl -X GET "https://your-dokploy-instance.com/api/mongo.one?mongoId=string" \
  -H "Authorization: <token>"

Successful response

{}

POST
/mongo.start

Mongo start

/mongo.start

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

curl -X POST "https://your-dokploy-instance.com/api/mongo.start" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mongoId": "string"
  }'

Successful response

{}

POST
/mongo.stop

Mongo stop

/mongo.stop

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

curl -X POST "https://your-dokploy-instance.com/api/mongo.stop" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mongoId": "string"
  }'

Successful response

{}

POST
/mongo.saveExternalPort

Mongo save External Port

/mongo.saveExternalPort

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

externalPort
Required
number | null

curl -X POST "https://your-dokploy-instance.com/api/mongo.saveExternalPort" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mongoId": "string",
    "externalPort": 0
  }'

Successful response

{}

POST
/mongo.deploy

Mongo deploy

/mongo.deploy

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

curl -X POST "https://your-dokploy-instance.com/api/mongo.deploy" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mongoId": "string"
  }'

Successful response

{}

POST
/mongo.changeStatus

Mongo change Status

/mongo.changeStatus

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

applicationStatus
Required
string

Value in: "idle" | "running" | "done" | "error"
curl -X POST "https://your-dokploy-instance.com/api/mongo.changeStatus" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mongoId": "string",
    "applicationStatus": "idle"
  }'

Successful response

{}

POST
/mongo.reload

Mongo reload

/mongo.reload

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

appName
Required
string

Minimum length: 1
curl -X POST "https://your-dokploy-instance.com/api/mongo.reload" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mongoId": "string",
    "appName": "string"
  }'

Successful response

{}

POST
/mongo.remove

Mongo remove

/mongo.remove

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

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

Successful response

{}

POST
/mongo.saveEnvironment

Mongo save Environment

/mongo.saveEnvironment

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

envstring | null

curl -X POST "https://your-dokploy-instance.com/api/mongo.saveEnvironment" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mongoId": "string",
    "env": "string"
  }'

Successful response

{}

POST
/mongo.update

Mongo update

/mongo.update

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

Minimum length: 1

namestring

Minimum length: 1

appNamestring

Minimum length: 1

descriptionstring | null

databaseUserstring

Minimum length: 1

databasePasswordstring

Pattern: "^[a-zA-Z0-9@#%^&*()_+\\-=[\\]{}|;:,.<>?~`]*$"

dockerImagestring

Default: "mongo:15"

commandstring | null

argsarray<string> | null

envstring | null

memoryReservationstring | null

memoryLimitstring | null

cpuReservationstring | null

cpuLimitstring | null

externalPortnumber | null

applicationStatusstring

Value in: "idle" | "running" | "done" | "error"

healthCheckSwarmobject | null

restartPolicySwarmobject | null

placementSwarmobject | null

updateConfigSwarmobject | null

rollbackConfigSwarmobject | null

modeSwarmobject | null

labelsSwarmobject | null

networkSwarmarray<object> | null

stopGracePeriodSwarminteger | null

endpointSpecSwarmobject | null

replicasnumber

createdAtstring

environmentIdstring

replicaSetsboolean | null

Default: false
curl -X POST "https://your-dokploy-instance.com/api/mongo.update" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mongoId": "string",
    "name": "string",
    "appName": "string",
    "description": "string",
    "databaseUser": "string",
    "databasePassword": "string",
    "dockerImage": "mongo:15",
    "command": "string",
    "args": [
      "string"
    ],
    "env": "string",
    "memoryReservation": "string",
    "memoryLimit": "string",
    "cpuReservation": "string",
    "cpuLimit": "string",
    "externalPort": 0,
    "applicationStatus": "idle",
    "healthCheckSwarm": {
      "Test": [
        "string"
      ],
      "Interval": 0,
      "Timeout": 0,
      "StartPeriod": 0,
      "Retries": 0
    },
    "restartPolicySwarm": {
      "Condition": "string",
      "Delay": 0,
      "MaxAttempts": 0,
      "Window": 0
    },
    "placementSwarm": {
      "Constraints": [
        "string"
      ],
      "Preferences": [
        {
          "Spread": {
            "SpreadDescriptor": "string"
          }
        }
      ],
      "MaxReplicas": 0,
      "Platforms": [
        {
          "Architecture": "string",
          "OS": "string"
        }
      ]
    },
    "updateConfigSwarm": {
      "Parallelism": 0,
      "Delay": 0,
      "FailureAction": "string",
      "Monitor": 0,
      "MaxFailureRatio": 0,
      "Order": "string"
    },
    "rollbackConfigSwarm": {
      "Parallelism": 0,
      "Delay": 0,
      "FailureAction": "string",
      "Monitor": 0,
      "MaxFailureRatio": 0,
      "Order": "string"
    },
    "modeSwarm": {
      "Replicated": {
        "Replicas": 0
      },
      "Global": {},
      "ReplicatedJob": {
        "MaxConcurrent": 0,
        "TotalCompletions": 0
      },
      "GlobalJob": {}
    },
    "labelsSwarm": {
      "property1": "string",
      "property2": "string"
    },
    "networkSwarm": [
      {
        "Target": "string",
        "Aliases": [
          "string"
        ],
        "DriverOpts": {}
      }
    ],
    "stopGracePeriodSwarm": 0,
    "endpointSpecSwarm": {
      "Mode": "string",
      "Ports": [
        {
          "Protocol": "string",
          "TargetPort": 0,
          "PublishedPort": 0,
          "PublishMode": "string"
        }
      ]
    },
    "replicas": 0,
    "createdAt": "string",
    "environmentId": "string",
    "replicaSets": false
  }'

Successful response

{}

POST
/mongo.move

Mongo move

/mongo.move

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

targetEnvironmentId
Required
string

curl -X POST "https://your-dokploy-instance.com/api/mongo.move" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mongoId": "string",
    "targetEnvironmentId": "string"
  }'

Successful response

{}

POST
/mongo.rebuild

Mongo rebuild

/mongo.rebuild

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

mongoId
Required
string

curl -X POST "https://your-dokploy-instance.com/api/mongo.rebuild" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "mongoId": "string"
  }'

Successful response

{}