Update one or more properties of an existing application. Only include the fields you want to change - omitted fields are left unchanged. Changes to build settings take effect on the next deployment. Changing the source switches how the application is built and deployed - for example, from a Git repository to a Docker image.
API key authentication. Pass your API key as a Bearer token in the Authorization header.
Application identifier
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Human-readable name shown in the dashboard and API responses
1 - 64"My Application"
Enable or disable automatic deployments on every push to the default branch. Only works with privateGit applications - has no effect on publicGit or dockerImage applications.
true
Git branch used for automatic and manual deployments when no branch is explicitly specified
1"main"
Enable or disable automatic hibernation. When enabled, the application scales down to zero after a period of inactivity.
false
Number of seconds of inactivity before the application is hibernated. Only applies when hibernation is enabled.
x <= 6048003600
Build strategy to use. nixpacks - auto-detected build system. dockerfile - build using a Dockerfile. pack - build using Cloud Native Buildpacks.
dockerfile, pack, nixpacks "nixpacks"
Relative path to the build directory within the repository. Defaults to the repository root.
"."
Relative path to the Dockerfile within the repository. Only applies when build type is dockerfile.
"Dockerfile"
Docker build context path relative to the repository root. Only applies when build type is dockerfile.
"."
Enable or disable build caching. When enabled, build artifacts are cached between deployments.
true
Identifier of a Docker registry credential. Used for pulling private base images when build type is dockerfile, or for pulling the container image when source is dockerImage.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Cloud Native Buildpacks builder image. heroku/builder:22 - Heroku-22 stack. heroku/builder:24 - Heroku-24 stack. Only applies when build type is pack.
heroku/builder:22, heroku/builder:24 "heroku/builder:22"
Pinned Nixpacks version. When not set, the platform default version is used. Only applies when build type is nixpacks.
1.29, 1.39, 1.41 "1.29"
List of buildpacks to use during the build phase. Only applies when build type is pack.
Glob patterns for file paths that trigger a deployment. When set, only commits touching these paths trigger auto deploy. Mutually exclusive with ignore_deploy_paths.
["src/**", "package.json"]Glob patterns for file paths to exclude from deployment triggers. Commits that only touch ignored paths will not trigger auto deploy. Mutually exclusive with allow_deploy_paths.
["docs/**", "README.md"]Where the application source code comes from. privateGit - private Git repository connected via OAuth. publicGit - public Git repository URL. dockerImage - Docker container image from a registry.
privateGit, publicGit, dockerImage "privateGit"
Git hosting provider for the repository. github - GitHub. bitbucket - Bitbucket. gitlab - GitLab. Only used when source is privateGit or publicGit.
github, bitbucket, gitlab "github"
Full URL of the Git repository. Required when source is privateGit or publicGit.
"https://github.com/user/repo"
Docker image reference including tag or digest. Required when source is dockerImage.
"nginx:latest"
Default Response
Unique identifier for the application
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Identifier of the company that owns this application
"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Identifier of the project this application is grouped under
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Unique system name used in URLs and internal references. Auto-generated from the display name and cannot be changed after creation.
1 - 64"my-app"
Kubernetes namespace where the application workloads run. Assigned automatically during creation.
"my-app-abc123"
Human-readable name shown in the dashboard and API responses
1 - 255"My Application"
Where the application source code comes from. privateGit - private Git repository connected via OAuth. publicGit - public Git repository URL. dockerImage - Docker container image from a registry. app - internally created (cloned or preview apps).
privateGit, publicGit, dockerImage, app "privateGit"
Application type. app - standard application. previewApp - ephemeral preview environment created from a pull request.
app, previewApp "app"
Current status of the application reflecting the most recent deployment or lifecycle operation
deploymentInProgress, deploymentFailed, deploymentSuccess, deleting, appDeletionFailed, deploymentCancelled "deploymentSuccess"
When enabled, build artifacts are cached between deployments to speed up subsequent builds
true
When enabled, the application automatically scales down to zero after a period of inactivity and wakes up on the next incoming request
false
Number of seconds of inactivity before the application is hibernated. Only applies when hibernation is enabled.
0 < x <= 90071992547409913600
When enabled, a new deployment is automatically triggered on every push to the default branch. Only applies to applications with a private Git connection (privateGit) - has no effect on publicGit or dockerImage applications.
true
When enabled along with auto deploy, the platform waits for all CI checks on the commit to pass before triggering a deployment
false
Whether the application is currently suspended. Suspended applications have all processes stopped but retain their configuration.
false
Git hosting provider for the repository. github - GitHub. bitbucket - Bitbucket. gitlab - GitLab. Null for non-git sources.
github, bitbucket, gitlab "github"
Full URL of the Git repository. Null for Docker image source applications.
"https://github.com/user/repo"
Git branch used for automatic and manual deployments when no branch is explicitly specified
"main"
Docker image reference including tag or digest. Only set for applications with dockerImage source.
"nginx:latest"
Build strategy used to build the application. nixpacks - auto-detected build system. dockerfile - build using a Dockerfile. pack - build using Cloud Native Buildpacks.
dockerfile, pack, nixpacks "nixpacks"
Relative path to the build directory within the repository. Defaults to the repository root.
"."
Cloud Native Buildpacks builder image. Only applies when build type is pack.
"heroku/builder:22"
Pinned Nixpacks version. When null, the platform default version is used. Only applies when build type is nixpacks.
"1.21.0"
Relative path to the Dockerfile within the repository. Only applies when build type is dockerfile.
"Dockerfile"
Docker build context path relative to the repository root. Only applies when build type is dockerfile.
"."
Glob patterns for file paths that trigger a deployment when changed. When set, only commits touching these paths will trigger auto deploy.
["src/**", "package.json"]Glob patterns for file paths to exclude from deployment triggers. Commits that only touch ignored paths will not trigger auto deploy.
["docs/**", "README.md"]Identifier of the user who created the application
"fb5e5168-4281-4bec-94c5-0d1584e9e657"
Timestamp when the application was created, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2025-01-30T00:00:00.000Z"
Timestamp when the application was last modified, in ISO 8601 format
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d(?::[0-5]\d(?:\.\d+)?)?(?:Z))$"2025-01-30T00:00:00.000Z"