Dokploy

mongo

POST/mongo.create

mongo-create

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

name
Required
string

Minimum length: 1

appName
Required
string

Minimum length: 1

dockerImagestring

Default: "mongo:15"

projectId
Required
string

descriptionstring | null

databaseUser
Required
string

Minimum length: 1

databasePassword
Required
string

Status codeDescription
200Successful response
defaultError response
curl -X POST "http://localhost:3000/api/mongo.create" \
  -d '{
  "name": "string",
  "appName": "string",
  "dockerImage": "mongo:15",
  "projectId": "string",
  "description": "string",
  "databaseUser": "string",
  "databasePassword": "string"
}'

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

GET/mongo.one

mongo-one

Authorization

Authorization
Required
Bearer <token>

In: header

Query Parameters

mongoId
Required
string

Status codeDescription
200Successful response
defaultError response
curl -X GET "http://localhost:3000/api/mongo.one?mongoId=string"

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

POST/mongo.start

mongo-start

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

mongoId
Required
string

Status codeDescription
200Successful response
defaultError response
curl -X POST "http://localhost:3000/api/mongo.start" \
  -d '{
  "mongoId": "string"
}'

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

POST/mongo.stop

mongo-stop

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

mongoId
Required
string

Status codeDescription
200Successful response
defaultError response
curl -X POST "http://localhost:3000/api/mongo.stop" \
  -d '{
  "mongoId": "string"
}'

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

POST/mongo.saveExternalPort

mongo-saveExternalPort

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

mongoId
Required
string

externalPort
Required
number | null

Status codeDescription
200Successful response
defaultError response
curl -X POST "http://localhost:3000/api/mongo.saveExternalPort" \
  -d '{
  "mongoId": "string",
  "externalPort": 0
}'

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

POST/mongo.deploy

mongo-deploy

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

mongoId
Required
string

Status codeDescription
200Successful response
defaultError response
curl -X POST "http://localhost:3000/api/mongo.deploy" \
  -d '{
  "mongoId": "string"
}'

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

POST/mongo.changeStatus

mongo-changeStatus

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

mongoId
Required
string

applicationStatus
Required
string

Value in: "idle" | "running" | "done" | "error"
Status codeDescription
200Successful response
defaultError response
curl -X POST "http://localhost:3000/api/mongo.changeStatus" \
  -d '{
  "mongoId": "string",
  "applicationStatus": "idle"
}'

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

POST/mongo.reload

mongo-reload

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

mongoId
Required
string

appName
Required
string

Minimum length: 1
Status codeDescription
200Successful response
defaultError response
curl -X POST "http://localhost:3000/api/mongo.reload" \
  -d '{
  "mongoId": "string",
  "appName": "string"
}'

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

POST/mongo.remove

mongo-remove

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

mongoId
Required
string

Status codeDescription
200Successful response
defaultError response
curl -X POST "http://localhost:3000/api/mongo.remove" \
  -d '{
  "mongoId": "string"
}'

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

POST/mongo.saveEnvironment

mongo-saveEnvironment

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

mongoId
Required
string

envstring | null

Status codeDescription
200Successful response
defaultError response
curl -X POST "http://localhost:3000/api/mongo.saveEnvironment" \
  -d '{
  "mongoId": "string",
  "env": "string"
}'

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

POST/mongo.update

mongo-update

Authorization

Authorization
Required
Bearer <token>

In: header

Request Body

mongoId
Required
string

Minimum length: 1

namestring

Minimum length: 1

appNamestring

Minimum length: 1

descriptionstring | null

databaseUserstring

Minimum length: 1

databasePasswordstring

dockerImagestring

Default: "mongo:15"

commandstring | null

envstring | null

memoryReservationnumber | null

memoryLimitnumber | null

cpuReservationnumber | null

cpuLimitnumber | null

externalPortnumber | null

applicationStatusstring

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

createdAtstring

projectIdstring

Status codeDescription
200Successful response
defaultError response
curl -X POST "http://localhost:3000/api/mongo.update" \
  -d '{
  "mongoId": "string",
  "name": "string",
  "appName": "string",
  "description": "string",
  "databaseUser": "string",
  "databasePassword": "string",
  "dockerImage": "mongo:15",
  "command": "string",
  "env": "string",
  "memoryReservation": 0,
  "memoryLimit": 0,
  "cpuReservation": 0,
  "cpuLimit": 0,
  "externalPort": 0,
  "applicationStatus": "idle",
  "createdAt": "string",
  "projectId": "string"
}'

{
  "message": "string",
  "code": "string",
  "issues": [
    {
      "message": "string"
    }
  ]
}

On this page