Create a new deployment
Initiates a new Pulumi Deployments execution for a stack. Pulumi Deployments is a managed service that executes Pulumi operations (update, preview, refresh, or destroy) in a secure, hosted environment.
Important: The stack must already exist before a deployment can be created for it.
The operation field is required and accepts: update, preview, refresh, or destroy. Three usage modes are supported:
- Stack settings only: Send {"operation": "update"} to use the stack's saved deployment settings.
- Merged settings: Include partial settings in the request body alongside operation. When inheritSettings is true (the default), request settings are merged with saved stack settings, with request values taking precedence.
- Request settings only: Set inheritSettings to false and provide all settings in the request body.
Settings include source context (git repo, branch, directory), operation context (environment variables, pre-run commands, OIDC configuration), executor context, GitHub integration settings, and cache options.
This is v2 with breaking changes from CreateAPIDeploymentHandler: inheritSettings defaults to true, and operation is a required top-level field and no longer valid as part of operationContext.
Request
- Base URL: https://api.pulumi.com (the document declares no server; this is the origin it was published from)
- URL: https://api.pulumi.com/api/stacks/{orgName}/{projectName}/{stackName}/deployments
- Auth: none declared
Path parameters
The organization name
The project name
The stack name
Request body
Response
Accepted
Changes
No recorded changes to this operation across all 1 revision of this API.