POST
/
api
/
v1
/
apps
/
{uuid}
/
clone
Clone an application
curl --request POST \
  --url https://app.miget.com/api/v1/apps/{uuid}/clone \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "label": "<string>",
  "name": "<string>",
  "project_id": "<string>",
  "resource_id": "<string>",
  "use_parent_image": false,
  "parent_image_auto_sync": false,
  "clone_variables": false,
  "clone_secret_files": false,
  "clone_scaling_settings": false,
  "clone_health_checks": false,
  "addons": [
    {
      "uuid": "<string>",
      "clone_data": false
    }
  ],
  "cronjobs": [
    "<string>"
  ]
}
'
{
  "uuid": "<string>",
  "name": "<string>",
  "label": "<string>",
  "state": "<string>",
  "project_id": "<string>",
  "builder": "<string>",
  "manage_dns_records": true,
  "maintenance": true,
  "service_name": "<string>",
  "allow_connections": true,
  "quota": {},
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z",
  "miget": {
    "uuid": "<string>",
    "name": "<string>",
    "state": "<string>",
    "total_disk_size": 123,
    "total_ram_size": 123,
    "total_cpu_size": 123,
    "total_used_disk_size": 123,
    "total_used_ram_size": 123,
    "total_used_cpu_size": 123,
    "available_cpu_size": 123,
    "available_disk_size": 123,
    "available_ram_size": 123,
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z",
    "plan": {
      "name": "<string>",
      "code_name": "<string>",
      "description": "<string>",
      "ram_size": 123,
      "disk_size": 123,
      "cpu_size": 123,
      "unit_price": 123
    },
    "components": [
      {
        "name": "<string>",
        "code_name": "<string>",
        "unit_price": 123
      }
    ]
  },
  "addons": [
    {
      "uuid": "<string>",
      "name": "<string>",
      "type": "<string>",
      "label": "<string>",
      "state": "<string>",
      "quota": {},
      "settings": {},
      "var": {},
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "cronjobs": [
    {
      "uuid": "<string>",
      "name": "<string>",
      "type": "<string>",
      "label": "<string>",
      "state": "<string>",
      "quota": {},
      "settings": {},
      "var": {},
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ]
}

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
required

UUID of the compute resource (Miget) to assign to the cloned application

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

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

Service name (used in URLs)

label
string
required

Display name

state
string
required

Current state (pending, running, stopped, etc.)

project_id
string
required

Associated project UUID

builder
string
required

Build strategy (paketo, dockerfile)

manage_dns_records
boolean
required

Auto DNS management enabled

maintenance
boolean
required

Maintenance mode enabled

service_name
string
required

Internal service name

allow_connections
boolean
required

Allow internal connections

quota
object
required

Resource quota configuration

created_at
string<date-time>
required

Creation timestamp

updated_at
string<date-time>
required

Last update timestamp

miget
object
required

Api_V1_Entities_Resource model

addons
object[]
required

Attached add-ons

cronjobs
object[]
required

Scheduled cron jobs