Dokploy
Generated

Postgres

POST
/postgres.create

Postgres create

/postgres.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

databaseName
Required
string

Minimum length: 1

databaseUser
Required
string

Minimum length: 1

databasePassword
Required
string

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

dockerImagestring

Default: "postgres:15"

environmentId
Required
string

descriptionstring | null

serverIdstring | null

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

Successful response

{}

GET
/postgres.one

Postgres one

/postgres.one

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Query Parameters

postgresId
Required
string

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

Successful response

{}

POST
/postgres.start

Postgres start

/postgres.start

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

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

Successful response

{}

POST
/postgres.stop

Postgres stop

/postgres.stop

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

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

Successful response

{}

POST
/postgres.saveExternalPort

Postgres save External Port

/postgres.saveExternalPort

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

externalPort
Required
number | null

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

Successful response

{}

POST
/postgres.deploy

Postgres deploy

/postgres.deploy

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

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

Successful response

{}

POST
/postgres.changeStatus

Postgres change Status

/postgres.changeStatus

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

applicationStatus
Required
string

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

Successful response

{}

POST
/postgres.remove

Postgres remove

/postgres.remove

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

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

Successful response

{}

POST
/postgres.saveEnvironment

Postgres save Environment

/postgres.saveEnvironment

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

envstring | null

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

Successful response

{}

POST
/postgres.reload

Postgres reload

/postgres.reload

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

appName
Required
string

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

Successful response

{}

POST
/postgres.update

Postgres update

/postgres.update

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

Minimum length: 1

namestring

Minimum length: 1

appNamestring

databaseNamestring

Minimum length: 1

databaseUserstring

Minimum length: 1

databasePasswordstring

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

descriptionstring | null

dockerImagestring

Default: "postgres:15"

commandstring | null

argsarray<string> | null

envstring | null

memoryReservationstring | null

externalPortnumber | null

memoryLimitstring | null

cpuReservationstring | null

cpuLimitstring | 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

curl -X POST "https://your-dokploy-instance.com/api/postgres.update" \
  -H "Authorization: <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "postgresId": "string",
    "name": "string",
    "appName": "string",
    "databaseName": "string",
    "databaseUser": "string",
    "databasePassword": "string",
    "description": "string",
    "dockerImage": "postgres:15",
    "command": "string",
    "args": [
      "string"
    ],
    "env": "string",
    "memoryReservation": "string",
    "externalPort": 0,
    "memoryLimit": "string",
    "cpuReservation": "string",
    "cpuLimit": "string",
    "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"
  }'

Successful response

{}

POST
/postgres.move

Postgres move

/postgres.move

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

targetEnvironmentId
Required
string

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

Successful response

{}

POST
/postgres.rebuild

Postgres rebuild

/postgres.rebuild

The Authorization access token

Authorization

Authorization<token>

API key authentication using Authorization header

In: header

Request Body

application/jsonRequired

postgresId
Required
string

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

Successful response

{}