POST
Clone an application

Authorizations

Authorization
string
header
required

Bearer token for authentication. Format: 'Bearer {token}'

Headers

X-Workspace-Id
string

Workspace ID (uses default workspace if not provided)

Path Parameters

uuid
string
required

Source application UUID to clone from

Body

application/json

Clone an application

label
string
required

Human-readable display name for the cloned application

name
string
required

Unique service name for the cloned application (used in URLs and DNS)

project_id
string
required

UUID of the project to create the cloned application in

resource_id
string

UUID of the compute resource (Miget) to assign to the cloned application. Required unless billing is pay_per_use or workspace_pool.

billing
enum<string>

Where it runs: 'resource' (default, on the resource named by resource_id), 'pay_per_use' (without a resource, paying for what it reserves while it runs; not on an enterprise contract) or 'workspace_pool' (without a resource, in an enterprise contract's pool; refused with 422 when the pool has no room)

Available options:
resource,
pay_per_use,
workspace_pool
region_code
string

Region to run in when billing is pay_per_use or workspace_pool, e.g. eu-east-1. Defaults to the source application's region.

tier
enum<string>

With billing pay_per_use or workspace_pool, the CPU class: 'hobby' (shared CPU) or 'pro' (dedicated). Implied by size when one is named. Hobby and Pro workloads run in separate namespaces, so it cannot be changed afterwards. Defaults to the source application's CPU class.

Available options:
hobby,
pro
size
string

With billing pay_per_use or workspace_pool, one of the size codes from GET /api/v1/workspace/pay_per_use/sizes, e.g. hobby-1c-2g. cpu_size and ram_size are refused for such a workload. Defaults to the source application's CPU and RAM.

use_parent_image
boolean
default:false

Use the source application as a parent image (inherits container image)

parent_image_auto_sync
boolean
default:false

Automatically deploy when parent application's image is updated

clone_variables
boolean
default:false

Copy environment variables from source application

clone_secret_files
boolean
default:false

Copy secret files from source application

clone_scaling_settings
boolean
default:false

Copy auto-scaling configuration from source application

clone_health_checks
boolean
default:false

Copy health check configuration from source application

clone_security
boolean
default:false

Copy security settings (allowed connections and basic auth) from source application

addons
object[]

Add-ons to clone from source application

cronjobs
string[]

Array of cron job UUIDs to clone from source application

Response

Clone an application

Api_V1_Entities_App model

uuid
string
required

Unique application identifier

name
string
required

Server-assigned name: the name sent at creation plus a random suffix (my-api-x7k2p). Used in the public URL and the git_push repository path. Use this value verbatim, not the name you sent and not service_name

label
string
required

Display name

state
string
required

Current state. While provisioning: pending, assigned, start_scheduled, started, deploying, cloning, stop_scheduled, restart_scheduled, stopped, blocked. An app that sleeps when idle (free plan, free compute, or auto_sleep) with no recent traffic: sleeping, until the next request wakes it. Once started, the live Kubernetes status: running, failed, or problem (pods failing while replicas are up)

project_id
string
required

Associated project UUID

deployment_method
string
required

Deployment method (git_push, public_git, github, container_registry, parent_image, kamal)

deployment_config
object
required

Deployment configuration (fields vary by deployment method). For container_registry, github and public_git it includes credential_id, the UUID of the stored credential accepted by PUT /apps/{uuid}/deployment, null when none is set

builder
string
required

Build strategy (auto, dockerfile, custom)

manage_dns_records
boolean
required

Auto DNS management enabled

maintenance
boolean
required

Maintenance mode enabled

auto_sleep
boolean
required

Whether the application sleeps when idle: true for free compute, which always sleeps, and for an application on Usage Billing with auto_sleep set by PUT /apps/{uuid}

private_access
boolean
required

Private access only (no public ingress)

service_name
string
required

Unsuffixed name, used only in internal_url. Not valid in public URLs or git remotes — use name there

internal_url
string
required

Internal service URL (host:port) for app-to-app connections

public_url
string
required

Platform-assigned public URL, built from the app name and the region of its compute resource. Not reachable when private_access is true. Custom domains are listed separately under /apps/{uuid}/domains

allow_connections
boolean
required

Allow internal connections

basic_auth_enabled
boolean
required

Whether HTTP Basic Auth is enforced on the ingress (credentials are never returned)

basic_auth_username
string
required

Username for HTTP Basic Auth on the ingress. Null when none is set. The password is never returned

quota
object
required

Raw resource quota row. Use ram_size and cpu_size for the values accepted by POST and PUT /apps

ram_size
number<float>
required

RAM allocation per instance in MiB, the unit POST and PUT /apps accept, rounded to 6 decimal places. Null when the app has no quota

cpu_size
number<float>
required

CPU allocation per instance in cores, the unit POST and PUT /apps accept. Null when the app has no quota

resource_id
string
required

UUID of the assigned compute resource, the value POST /apps accepts as resource_id. Null when none is assigned or billing is not 'resource'

vpc_uuid
string
required

UUID of the VPC the app is attached to. Null when not attached

vpc_subnet_uuid
string
required

UUID of the VPC subnet the app is attached to. Null when not attached

project_variables_enabled
boolean
required

Whether the app also receives its project's environment variables

project_secret_files_enabled
boolean
required

Whether the app also mounts its project's secret files. Set via PUT /apps/{uuid}/secret_files/project_files_enabled

health_checks
object
required

Health check settings, keyed by the params of PUT /apps/{uuid}/health_checks: {liveness,readiness,startup}_probe_enabled (boolean), {liveness,readiness,startup}probe_path (string), {liveness,readiness,startup}probe{initial_delay_seconds,timeout_seconds,period_seconds,failure_threshold} (integer) and {liveness,readiness,startup}{in_app,email}_failure_notification_enabled (boolean). Values are those stored for the app; a path or number that was never set is null and a flag that was never set is false

scaling_profile
object
required

Scaling settings, keyed by the params of PUT /apps/{uuid}/scaling_profile: replicas (integer, fixed instance count used when auto_scaling_enabled is false), auto_scaling_enabled (boolean), auto_min_replicas and auto_max_replicas (integer), scaling_start_time and scaling_end_time (HH:MM strings, null when no scheduled window is set), cpu_threshold and memory_threshold (integer percent). When the app has no scaling profile it runs one instance: replicas is 1, auto_scaling_enabled is false and the other keys are null

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp

billing
enum<string>
required

Where it runs: 'resource' on its resource, 'pay_per_use' without a resource paying for what it reserves while it runs, 'workspace_pool' without a resource in an enterprise contract's pool

Available options:
resource,
pay_per_use,
workspace_pool
held_at_monthly_budget
boolean
required

True while an application on Usage Billing runs on one replica because it reached the monthly budget of its scaling profile. A scaling profile that would run more replicas is refused with 422 until the next billing cycle, or until the budget is raised above what it spent, removed, or stop_at_budget_limit_enabled is turned off

miget
object
required

Api_V1_Entities_Resource model

region
object
required

Api_V1_Entities_Region model

addons
object[]
required

Attached add-ons

cronjobs
object[]
required

Scheduled cron jobs

workers
object[]
required

Processes the Procfile runs besides the web (sidekiq, clock). They come from the code and app.json; PUT /api/v1/apps/{uuid}/workers/{name} scales one until the next deploy, and no endpoint adds or resizes one