Skip to main content
POST
Groups applications and databases that already exist into one stack. All members must belong to the same account or workspace and none can be in another stack. To create a stack from a folder in one step, see Transform Folder into Stack. Needs the stacks:write scope when called with an API key. Only the owner of a workspace can create stacks in it.
string
required
The stack name.
string | null
Optional description.
string
default:"public"
Only public is accepted. Any other value fails with STACK_NETWORK_MODE_UNAVAILABLE.
object[]
The resources to put in the stack. Each item has resource_type (application or database) and resource_id. A Blob folder is added afterwards with Add Blob Folder.
object[]
Connections to create between the members. Each item has app_id (the application that receives the variables), exactly one of database_id or target_app_id, and an optional env_map (variable name to what it receives; see Create Connection). Without env_map, the standard names of the engine are used.
string
The workspace that will own the stack.

Response

object
The stack created (201), with the same fields as Get Stack, plus:
The same two fields come back on every change that can alter variables or certificates of an application: transform, add or remove a member, create or change a connection, add a database or a Blob folder.

Errors

Last modified on October 30, 2026