system

Record Deploy Event

Called by scripts/promote-to-production.sh (via scripts/lib/record_deploy_event.py) and by tools/rooster_worker/drain.py's deploy_main_to_staging (its promotion pass was deleted 2026-11-17) -- see each caller's own comment for why the write is best-effort there (a promotion must never be blocked on this ledger being reachable). This route itself is a plain gated write: a bad environment is the one thing it refuses.

post/api/system/deploy-events

Request

  • Base URL
    https://api.pigeonly.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Request body

RecordDeployEventRequest required

One deploy attempt, already finished by the time this is called -- see deploy_events_service.record_deploy_event's own docstring for why this is an INSERT with both timestamps already known, never an update-in-place.

sha, string required
environment, string required
started_at, string date-time required
finished_at, string date-time required
ok, boolean required
rolled_back, boolean
promoted_by, string nullable

Response

Successful Response

object required

Changes

No recorded changes to this operation across all 251 revisions of this API.