Deployments
Preview

Check a promotion before making it

What promoting the snapshot to this deployment would change, app by app, and the rules it must meet. Live rules: the snapshot is not held, the deployments hold the same apps, the target has no apply under way, and the protected-branch guardrail. Approvals and deploy windows are shape only (`not_conf

GET
/deployments/{deploymentId}/promotions/preflight
cookiebetter-auth.session_token<token>

Better Auth session cookie. Production uses the __Secure- prefixed name.

deploymentId*string
Formatuuid
snapshotId*string
Formatuuid

Response Body

OK.

application/json
  1. response
snapshotId*string
Formatuuid
source*

Another deployment named by this one. One outside the caller's reach keeps its id, with a null name and visible: false.

blocked*boolean
bypassable*boolean

Only guardrails block, which a bypass with a reason can lift.

apps*array<>

Each app of the snapshot against what the target runs.

rules*array<>
Example Request
curl -X GET 'https://wardn.example.com/api/v1/deployments/497f6eca-6276-4993-bfeb-53cbbbba6f08/promotions/preflight?snapshotId=497f6eca-6276-4993-bfeb-53cbbbba6f08'
Example Response
{  "snapshotId": "09520abc-01e6-4da1-8fa5-f10e3883c861",  "source": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "name": "string",    "visible": true  },  "blocked": true,  "bypassable": true,  "apps": [    {      "appId": "28c365d5-df94-4a54-8217-3ce51d068868",      "name": "string",      "commit": "string",      "previousCommit": "string",      "change": "added",      "resources": 0,      "changedResources": 0,      "kinds": {        "image": true,        "values": 0,        "config": 0,        "secrets": 0      },      "commits": 0    }  ],  "rules": [    {      "code": "string",      "title": "string",      "setBy": "string",      "status": "met",      "message": "string"    }  ]}