Skip to main content
PUT
/
application
/
{applicationId}
Edit application
curl --request PUT \
  --url https://api.qovery.com/application/{applicationId} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "storage": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "FAST_SSD",
      "size": 16,
      "mount_point": "/mnt/images"
    }
  ],
  "name": "<string>",
  "description": "<string>",
  "git_repository": {
    "url": "https://github.com/Qovery/simple-node-app",
    "branch": "feat/text_xxx",
    "root_path": "/",
    "git_token_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "provider": "BITBUCKET"
  },
  "build_mode": "DOCKER",
  "dockerfile_path": "<string>",
  "cpu": 1250,
  "memory": 1024,
  "min_running_instances": 1,
  "max_running_instances": 1,
  "healthchecks": {
    "readiness_probe": {
      "type": {
        "tcp": {
          "port": 123,
          "host": "<string>"
        },
        "http": {
          "path": "<string>",
          "scheme": "<string>",
          "port": 123
        },
        "exec": {
          "command": [
            "<string>"
          ]
        },
        "grpc": {
          "service": "<string>",
          "port": 123
        }
      },
      "initial_delay_seconds": 123,
      "period_seconds": 123,
      "timeout_seconds": 123,
      "success_threshold": 123,
      "failure_threshold": 123
    },
    "liveness_probe": {
      "type": {
        "tcp": {
          "port": 123,
          "host": "<string>"
        },
        "http": {
          "path": "<string>",
          "scheme": "<string>",
          "port": 123
        },
        "exec": {
          "command": [
            "<string>"
          ]
        },
        "grpc": {
          "service": "<string>",
          "port": 123
        }
      },
      "initial_delay_seconds": 123,
      "period_seconds": 123,
      "timeout_seconds": 123,
      "success_threshold": 123,
      "failure_threshold": 123
    }
  },
  "auto_preview": true,
  "ports": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "internal_port": 8080,
      "external_port": 8080,
      "publicly_accessible": true,
      "is_default": true,
      "protocol": "HTTP",
      "public_path": "<string>",
      "public_path_rewrite": "<string>"
    }
  ],
  "arguments": [
    "<string>"
  ],
  "entrypoint": "<string>",
  "auto_deploy": true,
  "annotations_groups": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "labels_groups": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
    }
  ],
  "icon_uri": "<string>",
  "docker_target_build_stage": "<string>"
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "storage": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "type": "FAST_SSD",
      "size": 16,
      "mount_point": "/mnt/images"
    }
  ],
  "environment": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  },
  "git_repository": {
    "has_access": true,
    "provider": "BITBUCKET",
    "owner": "John Doe",
    "url": "<string>",
    "name": "simple-node-app",
    "branch": "<string>",
    "root_path": "<string>",
    "deployed_commit_id": "<string>",
    "deployed_commit_date": "2023-11-07T05:31:56Z",
    "deployed_commit_contributor": "<string>",
    "deployed_commit_tag": "v1.0.1",
    "git_token_id": "<string>",
    "git_token_name": "<string>"
  },
  "maximum_cpu": 16000,
  "maximum_memory": 16384,
  "maximun_gpu": 0,
  "name": "<string>",
  "description": "<string>",
  "build_mode": "DOCKER",
  "dockerfile_path": "<string>",
  "cpu": 1250,
  "memory": 1024,
  "gpu": 0,
  "min_running_instances": 1,
  "max_running_instances": 1,
  "healthchecks": {
    "readiness_probe": {
      "type": {
        "tcp": {
          "port": 123,
          "host": "<string>"
        },
        "http": {
          "path": "<string>",
          "scheme": "<string>",
          "port": 123
        },
        "exec": {
          "command": [
            "<string>"
          ]
        },
        "grpc": {
          "service": "<string>",
          "port": 123
        }
      },
      "initial_delay_seconds": 123,
      "period_seconds": 123,
      "timeout_seconds": 123,
      "success_threshold": 123,
      "failure_threshold": 123
    },
    "liveness_probe": {
      "type": {
        "tcp": {
          "port": 123,
          "host": "<string>"
        },
        "http": {
          "path": "<string>",
          "scheme": "<string>",
          "port": 123
        },
        "exec": {
          "command": [
            "<string>"
          ]
        },
        "grpc": {
          "service": "<string>",
          "port": 123
        }
      },
      "initial_delay_seconds": 123,
      "period_seconds": 123,
      "timeout_seconds": 123,
      "success_threshold": 123,
      "failure_threshold": 123
    }
  },
  "auto_preview": true,
  "ports": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "internal_port": 8080,
      "external_port": 8080,
      "publicly_accessible": true,
      "is_default": true,
      "protocol": "HTTP",
      "public_path": "<string>",
      "public_path_rewrite": "<string>"
    }
  ],
  "arguments": [
    "<string>"
  ],
  "entrypoint": "<string>",
  "auto_deploy": true,
  "annotations_groups": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "annotations": [
        {
          "key": "<string>",
          "value": "<string>"
        }
      ],
      "scopes": [
        "DEPLOYMENTS"
      ]
    }
  ],
  "labels_groups": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z",
      "name": "<string>",
      "labels": [
        {
          "key": "<string>",
          "value": "<string>",
          "propagate_to_cloud_provider": true
        }
      ]
    }
  ],
  "icon_uri": "<string>",
  "service_type": "APPLICATION",
  "docker_target_build_stage": "<string>"
}

Authorizations

Authorization
string
header
required

Token API are generated by Qovery to manage machine to machine interaction and do not have a TTL. Prefix your token with "Token ". Curl Example: curl https://console.qovery.com/organization -H "Authorization: Token $qovery_token"

Path Parameters

applicationId
string<uuid>
required

Application ID

Body

application/json
healthchecks
object
required
storage
object[]
name
string

name is case insensitive

description
string

give a description to this application

git_repository
object
build_mode
enum<string>
default:DOCKER

DOCKER requires dockerfile_path

Available options:
DOCKER
dockerfile_path
string | null

The path of the associated Dockerfile

cpu
integer
default:500

unit is millicores (m). 1000m = 1 cpu

Example:

1250

memory
integer
default:512

unit is MB. 1024 MB = 1GB

Example:

1024

min_running_instances
integer
default:1

Minimum number of instances running. This resource auto-scale based on the CPU and Memory consumption. Note: 0 means that there is no application running.

Required range: x >= 0
max_running_instances
integer
default:1

Maximum number of instances running. This resource auto-scale based on the CPU and Memory consumption. Note: -1 means that there is no limit.

auto_preview
boolean
default:true

Specify if the environment preview option is activated or not for this application.
If activated, a preview environment will be automatically cloned at each pull request.
If not specified, it takes the value of the auto_preview property from the associated environment.

ports
object[]
arguments
string[]
entrypoint
string

optional entrypoint when launching container

auto_deploy
boolean | null

Specify if the application will be automatically updated after receiving a new commit.

annotations_groups
object[]
labels_groups
object[]
icon_uri
string<uri>

Icon URI representing the application.

docker_target_build_stage
string | null

The target build stage in the Dockerfile to build

Response

Edit application

id
string<uuid>
required
created_at
string<date-time>
required
environment
object
required
name
string
required

name is case insensitive

healthchecks
object
required
icon_uri
string<uri>
required

Icon URI representing the application.

service_type
enum<string>
required

type of the service (application, database, job, ...)

Available options:
APPLICATION,
DATABASE,
CONTAINER,
JOB,
HELM,
TERRAFORM
updated_at
string<date-time>
storage
object[]
git_repository
object
maximum_cpu
integer

Maximum cpu that can be allocated to the application based on organization cluster configuration. unit is millicores (m). 1000m = 1 cpu

Example:

16000

maximum_memory
integer

Maximum memory that can be allocated to the application based on organization cluster configuration. unit is MB. 1024 MB = 1GB

Example:

16384

maximun_gpu
integer
default:0
Required range: x >= 0
description
string

give a description to this application

build_mode
enum<string>
default:DOCKER

DOCKER requires dockerfile_path

Available options:
DOCKER
dockerfile_path
string | null

The path of the associated Dockerfile. Only if you are using build_mode = DOCKER

cpu
integer

unit is millicores (m). 1000m = 1 cpu

Example:

1250

memory
integer

unit is MB. 1024 MB = 1GB

Example:

1024

gpu
integer
default:0
Required range: x >= 0
min_running_instances
integer
default:1

Minimum number of instances running. This resource auto-scale based on the CPU and Memory consumption. Note: 0 means that there is no application running.

Required range: x >= 0
max_running_instances
integer
default:1

Maximum number of instances running. This resource auto-scale based on the CPU and Memory consumption. Note: -1 means that there is no limit.

auto_preview
boolean
default:true

Specify if the environment preview option is activated or not for this application.
If activated, a preview environment will be automatically cloned at each pull request.
If not specified, it takes the value of the auto_preview property from the associated environment.

ports
object[]
arguments
string[]
entrypoint
string

optional entrypoint when launching container

auto_deploy
boolean

Specify if the application will be automatically updated after receiving a new commit.

annotations_groups
object[]
labels_groups
object[]
docker_target_build_stage
string | null

The target build stage in the Dockerfile to build