{
  "slug": "bk-api-reads-request-bodies-from-stdin-with-data-31892c3c59fe",
  "title": "bk api reads request bodies from stdin with --data -",
  "tools": [
    "bk"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-27T23:58:59.000Z",
  "announced_at": "2026-09-27T23:58:59.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a large JSON body exceeds command-line limits, use a CLI built with v3.58.0’s change and pipe the file to `bk api <endpoint> --data -`; supplying `--data` defaults the method to POST. [Release note](https://github.com/buildkite/cli/releases/tag/v3.58.0)",
    "examples": [
      "cat <body.json> | bk api <endpoint> --data -"
    ],
    "gotchas": [
      "Version: v3.58.0",
      "Requires Install a CLI built from this change; released versions still require inline data.",
      "<endpoint> (required): API endpoint to call; required for this task. The command reference syntax marks it optional in general.",
      "--data (required): Data to send in the request body; `-` reads the data from stdin. Supplying `--data` defaults the request method to POST, as stated in the v3.58.0 release note.",
      "- (required): Value for `--data` that selects stdin as the request body source.",
      "Prerequisite: Install a CLI built with the v3.58.0 change; the release note says stdin input is available only in such a CLI.",
      "Prerequisite: The CLI requires configuration of a Buildkite API access token.",
      "Stdin input is available only after installing a CLI built from this change.",
      "Inline `--data` behavior remains unchanged."
    ]
  },
  "why_it_matters": "Send a large JSON request body to a Buildkite API endpoint when it exceeds command-line limits.",
  "before": "Before the change, `bk api --data -` sent the literal JSON string `\"-\"`; released versions still require inline data.",
  "sources": [
    "https://github.com/buildkite/cli/releases/tag/v3.58.0",
    "https://github.com/buildkite/cli/pull/1001",
    "https://buildkite.com/docs/platform/cli/reference/api",
    "https://buildkite.com/docs/platform/cli/configuration"
  ],
  "rank": 0.95031,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v2+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "wave2b-20261017",
    "verdict_id": "wave2b-20261017:wave2b-20261017-675c521b3cb5c975-2:gate",
    "evidence_hash": "ae9fb9a32601a37af89cd04cb6f1cb14287322ac0e1c97bd5c47bda0314eade0"
  },
  "review": {
    "draft_hash": "f9c1469ca47320f472f9b4e2fcb6fee3a4c79bede17e20aa56f5bfb558b46afc",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "wave2b-20261017:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.95 >= 0.9; 2 needed) and Jev gave 0.66 (>= 0.6 needed)."
  }
}
