ghl_clientportal_get_project_publishability
Determine whether a project can be published now and which build would go live; optionally pass a reviewed preview run to bound what may go live.
Instructions
CLIENT PORTAL AI BUILDER API (/ai-builder-api) — side-effecting: opens/edits sandboxes and starts builds. Edit a sandbox only once sandbox.status is ready; checkpoint after edits and before starting the run that builds them; 409 means a cloud build owns the sandbox or it is not running.
Check whether an app can be published now, and which build would go live.
Computed by the same resolver as promote-to-production. Without
sourceRunId: publishable iff some ready run of this project (caller's
location, main lineage) has a sealed build; the newest one goes live
with the newest config-only revision made on its lineage. With
sourceRunId (the reviewed preview): publishes what that preview shows —
its own sealed build, or for a ready run that built nothing, the sealed
build it descends from with config-only edits on that lineage; a run
that failed or has not finished is reviewed_preview_not_publishable. Send the returned
sourceRunId on promote-to-production. Tenant scope comes from the
session only.
Endpoint: GET /ai-builder-api/projects/{projectId}/publishability (Version header: v3; source: v3/clientportal-ai-v3.json)
OAuth scopes: clientportal-ai.readonly
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| projectId | Yes | The project. | |
| sourceRunId | No | Run whose preview the creator is reviewing; bounds what may go live. |