Skip to main content
POST
Add Stack Member
Adds an application or a database to the stack. It must belong to the same account or workspace as the stack and not be in another stack. Needs the stacks:write scope when called with an API key.
string
required
The stack ID.
string
The workspace the stack belongs to, when you act on it as the workspace owner.
string
required
application or database.
string
required
The application or database ID.
object[]
Connections to create between the new member and the applications of the stack. May be empty. Each item has app_id, exactly one of database_id or target_app_id, and an optional env_map (see Create Connection).

Response

The updated stack with restart_required and apps_to_restart, as in Create Stack. Restart the listed applications to make them read the new variables.

Errors

Last modified on October 28, 2026