Create App Deployment
POST /apps/{app_id}/deployments
POST
/apps/{app_id}/deployments
Queue a deployment from a pinned source ref.
Returns queued. Nothing builds yet — the provisioner (M6-8) is what moves
it to building. Recording the intent before any infrastructure exists is
deliberate: it makes the control plane the source of truth for what SHOULD be
running, which is what a reconciler needs to exist against.
Authorizations
Parameters
Path Parameters
app_id
required
string
Header Parameters
Request Body required
Start a deployment from a pinned source ref.
source_ref is a COMMIT-ish, not a branch name. A branch moves, so a
deployment recorded against one cannot answer “what is running right now” a
week later — which is the question a rollback has to answer.
Responses
201
Successful Response
object
data
required
object
app_id
required
string
deployment_id
required
string
status
required
string
pagination
Any of:
null
422
Validation Error
object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string