POST
Create a stack

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)

Body

application/json

Create a stack

repository_url
string
required

Git repository URL (GitHub or public HTTPS Git)

branch
string
required

Git branch to deploy

resource_id
string

UUID of the target compute resource (Miget). 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 a region the workspace already runs in, or in a workspace with nothing placed yet to the first active region: send it when the region matters.

tier
enum<string>

With billing pay_per_use or workspace_pool, the CPU class of every workload of the stack: 'hobby' (shared CPU) or 'pro' (dedicated).

Available options:
hobby,
pro
compose_path
string

Path to the docker-compose file within the repository (defaults to '.')

credential_id
string

UUID of a stored Git credential (for private repositories)

label
string

Human-readable display name for the stack

name
string

Stack codename seed (must start with a letter; derived from the repository if omitted)

project_id
string

UUID of an existing project to create the stack in

new_project_name
string

Name of a new project to create for the stack

new_project_description
string

Description for the new project

env_var_overrides
object

Custom required env var values, shaped as { service_name: { KEY: value } }

auto_populate_required_vars
boolean

Random-fill any required env var left without a custom value (default false)

Response

Create a stack

Api_V1_Entities_Stack model

uuid
string
required

Unique stack identifier

name
string
required

Stack codename (unique per workspace)

label
string
required

Human-readable display name

state
string
required

Computed state (pending, validating, publishing, building, deploying, running, degraded, failed, stopped)

project_id
string
required

Associated project UUID

compose_path
string
required

Path to the docker-compose file within the repository. Also returned by the list endpoint

deployment_config
object
required

Git deployment configuration: type (github for a stack with a credential, public_git without), repository (owner/repo slug for github, null for public_git), repository_url (the repository URL from creation as the platform stores it: public_git ends in .git, github is https://github.com//), branch, auto_deploy_enabled (null for public_git) and credential_id (UUID of the stored Git credential, null when none). Null when the stack has no deployment configuration

total_cpu_size
number<float>
required

Total CPU allocated across stack services (cores)

total_ram_size
integer<int64>
required

Total RAM allocated across stack services, in bytes

total_disk_size
integer<int64>
required

Total disk allocated across stack services, in bytes

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
miget
object
required

Api_V1_Entities_Resource model

services
object[]
required

Services materialized from the compose manifest

latest_deployment
object
required

Api_V1_Entities_StackDeployment model