Stop a commit
stop_commitAffects the live site. Stops a per-commit deployment (by job_id) — same as the dashboard Actions → Stop. Reversible scale-down: tears down the running release (pods) but keeps the Helm release metadata path, DB rows, build artifacts, volumes, and data so start_commit can bring it back. Volumes and data are kept on every project type. Contrast with delete_commit, which permanently removes the commit's release and storage (its logs are kept as history). Refuses the canonical (production) commit — promote a different commit first. Requires a read-write token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | the deployment job id to stop (from list_deployments); reversible — keeps release metadata, DB rows, volumes, and data; the canonical commit is refused |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| status | No | present, and always "pending_approval", only when this call was parked instead of run immediately because the project's (or kad-back's own) plan-mode setting requires a human to approve it first | |
| message | Yes | ||
| plan_id | No | poll get_plan_status with this id for the eventual outcome | |
| approve_at | No | the kad.dev dashboard URL a human approves or rejects this plan from | |
| expires_in_s | No | the plan can no longer be approved after this many seconds |