> ## Documentation Index
> Fetch the complete documentation index at: https://docs.acturehub.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 回写投资人对练报告

> Persist one immutable report snapshot with tenant-scoped idempotency.



## OpenAPI

````yaml /specs/bp-agent.openapi.json post /api/open/investor-rehearsal/projects/{project_id}/reports
openapi: 3.1.0
info:
  title: BP-Agent Open API
  description: BP-Agent 对外 API：PDF 上传、异步诊断、结果下载及专项业务能力。所有接口使用租户 API Token 鉴权。
  contact:
    name: BP Agent 开发团队
    email: support@bpagent.com
  license:
    name: MIT License
    url: https://opensource.org/licenses/MIT
  version: 1.0.0
servers:
  - url: https://bptest.mapleai.cc
    description: 测试环境（仅 relay 上传）
  - url: https://project.mapleai.cc
    description: 生产环境（OSS；STS 直传需服务端启用）
security: []
paths:
  /api/open/investor-rehearsal/projects/{project_id}/reports:
    post:
      tags:
        - 开放接口 / Open Investor Rehearsal
      summary: 回写投资人对练报告
      description: Persist one immutable report snapshot with tenant-scoped idempotency.
      operationId: >-
        write_open_investor_rehearsal_report_api_open_investor_rehearsal_projects__project_id__reports_post
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Project Id
        - name: Idempotency-Key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Idempotency-Key
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RehearsalReportWriteRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse_dict_str__Any__'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    RehearsalReportWriteRequest:
      properties:
        schema_version:
          type: string
          const: phase7-formal-report-v1
          title: Schema Version
        session_id:
          type: string
          format: uuid
          title: Session Id
        report_version:
          type: integer
          minimum: 1
          title: Report Version
        status:
          type: string
          enum:
            - draft
            - validated
          title: Status
        source:
          type: string
          enum:
            - stream
            - hifi
          title: Source
        generated_at:
          type: string
          format: date-time
          title: Generated At
        report:
          $ref: '#/components/schemas/RehearsalFormalReport'
        warnings:
          items:
            type: string
          type: array
          maxItems: 100
          title: Warnings
      type: object
      required:
        - schema_version
        - session_id
        - report_version
        - status
        - source
        - generated_at
        - report
      title: RehearsalReportWriteRequest
    SuccessResponse_dict_str__Any__:
      properties:
        code:
          type: integer
          title: Code
          description: 响应码，成功时为0
          default: 0
        message:
          type: string
          title: Message
          description: 成功消息
          default: 操作成功
        data:
          type: object
          title: Data
          description: 响应数据
        timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: Timestamp
          description: 响应时间戳（可选）
      type: object
      title: SuccessResponse[dict[str, Any]]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    RehearsalFormalReport:
      properties:
        overview:
          type: string
          maxLength: 4000
          minLength: 1
          title: Overview
        focus_points:
          items:
            $ref: '#/components/schemas/RehearsalReportFocusPoint'
          type: array
          maxItems: 8
          title: Focus Points
        questions:
          items:
            $ref: '#/components/schemas/RehearsalReportQuestion'
          type: array
          maxItems: 100
          minItems: 1
          title: Questions
        focus_summary:
          type: string
          maxLength: 300
          title: Focus Summary
        disclosure:
          type: string
          maxLength: 500
          minLength: 1
          title: Disclosure
      type: object
      required:
        - overview
        - focus_points
        - questions
        - focus_summary
        - disclosure
      title: RehearsalFormalReport
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    RehearsalReportFocusPoint:
      properties:
        'n':
          type: integer
          minimum: 1
          title: 'N'
        title:
          type: string
          maxLength: 80
          minLength: 1
          title: Title
        text:
          type: string
          maxLength: 800
          minLength: 1
          title: Text
      type: object
      required:
        - 'n'
        - title
        - text
      title: RehearsalReportFocusPoint
    RehearsalReportQuestion:
      properties:
        question_id:
          type: string
          maxLength: 80
          minLength: 1
          title: Question Id
        seq:
          type: integer
          minimum: 1
          title: Seq
        question:
          type: string
          maxLength: 500
          minLength: 1
          title: Question
        focus:
          type: string
          maxLength: 1200
          minLength: 1
          title: Focus
        answer_analysis:
          type: string
          maxLength: 1200
          minLength: 1
          title: Answer Analysis
        recommended_answer:
          items:
            type: string
          type: array
          maxItems: 8
          minItems: 1
          title: Recommended Answer
        ready:
          type: boolean
          title: Ready
      type: object
      required:
        - question_id
        - seq
        - question
        - focus
        - answer_analysis
        - recommended_answer
        - ready
      title: RehearsalReportQuestion
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````