{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/marketpilot-it/json-schema/marketpilot-it-press-order-input-schema.json",
  "title": "PressOrderInput",
  "x-generated": "2026-11-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/marketpilot-it-ai-openapi.json#/components/schemas/PressOrderInput",
  "type": "object",
  "required": [
    "pressType"
  ],
  "properties": {
    "pressType": {
      "type": "string",
      "description": "보도 종류. /press/media의 pressType 값 그대로. 한 주문에 한 종류만."
    },
    "selections": {
      "type": "array",
      "description": "매체 지정 주문 — 발행할 언론사 목록. autoAssign 종류에는 쓰지 않는다.",
      "items": {
        "type": "object",
        "required": [
          "tier",
          "media"
        ],
        "properties": {
          "tier": {
            "type": "string",
            "description": "등급 (베이직/스탠다드/프리미엄/메이저/프라임)"
          },
          "media": {
            "type": "string",
            "description": "언론사명 — /press/media가 준 표기 그대로"
          }
        }
      }
    },
    "tier": {
      "type": "string",
      "description": "자동 배정 종류(창업/프랜차이즈보도)에서의 등급"
    },
    "quantity": {
      "type": "integer",
      "minimum": 1,
      "description": "자동 배정 종류에서의 발행 건수"
    },
    "autoApprove": {
      "type": "boolean",
      "description": "true면 결제 후 파이가 매체 규정에 맞게 다듬은 원고를 사용자 확인 없이 바로 발행(완전 자동). 생략하면 /press/draft-status 확인 → /press/approve 승인이 필요."
    },
    "guide": {
      "type": "string",
      "minLength": 500,
      "maxLength": 3000,
      "description": "보도자료 원고. 500~3000자. 없으면 /press/draft로 초안을 받아 사용자 확인 후 사용."
    },
    "imageUrl": {
      "type": "string",
      "description": "첨부 이미지 URL (https, 1장)"
    },
    "imageCaption": {
      "type": "string"
    },
    "memo": {
      "type": "string",
      "description": "매체 담당자 전달 메모"
    }
  }
}