{
  "slug": "cf-api-request-map-fields-accept-inline-json-or-file-input-0dda1f4fbd4b",
  "title": "cf API request map fields accept inline JSON or file input",
  "tools": [
    "cf"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-16T14:43:01.000Z",
  "announced_at": "2026-10-16T14:43:01.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When an API request has map fields, supply each as inline JSON or `@path/to/file.json`. With `--body`, include all required map fields.",
    "gotchas": [
      "Version: 1.0.0-beta.18",
      "map field flag (name varies by API operation): Supply the map as inline JSON or `@path/to/file.json`; empty maps and nested values are preserved.",
      "--body: Supply the request body; required map fields must also be present when using it.",
      "Prerequisite: Install `cf` with `npm install -g cf`; requires Node.js 22 or newer.",
      "Prerequisite: Authenticate with Cloudflare to run API commands.",
      "Required map fields must also be present when using `--body`."
    ]
  },
  "why_it_matters": "When supplying map fields in an API request, pass the map as inline JSON or a JSON file.",
  "sources": [
    "https://github.com/cloudflare/cf/releases/tag/cf%401.0.0-beta.18",
    "https://github.com/cloudflare/cf/blob/cf%401.0.0-beta.18/packages/cli/CHANGELOG.md",
    "https://github.com/cloudflare/cf/blob/cf%401.0.0-beta.18/packages/cli/README.md"
  ],
  "rank": 0.90035,
  "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": "daily-20261016-20",
    "verdict_id": "daily-20261016-20:daily-20261016-20-068859b2f8e273da-0:gate",
    "evidence_hash": "55acae2d8936595303116063109837aa067a67845ba412fc56ed73db8f20f5ea"
  },
  "review": {
    "draft_hash": "b35a208cdcfa2ab69b56bf0c7537540e53cb007be03f4cf4c309917ffa1c720b",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-16T14:43:01.000Z",
    "decision": "daily-20261016-20:gate",
    "reason": "2 of 3 judge runs approved with p_yes >= 0.9 (mean 0.90 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
