Set commit visibility
expose_commitPublish a commit (by job_id) so anyone with its URL can open it, or take it back to owner-only with public=false — same as the dashboard's private/public pill. Commits ship PRIVATE by default and a private URL answers 302 /unauthorized to every visitor but the owner, so a link meant for someone else needs this first. update_settings default_public only governs commits created later; redeploy does not change visibility. Refuses apps that are structurally authentication-gated (Google login enabled, or the platform's own control plane). Requires a read-write token.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| job_id | Yes | the deployment job id to change visibility for (from list_deployments or deploy_files) | |
| public | No | true publishes the commit (default), false takes it back to owner-only | |
| project_id | No | optional; when given it must be the project that owns job_id |
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 |