> ## 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.

# Update Connect Request Status



## OpenAPI

````yaml /specs/bp-agent-ecosystem.openapi.json patch /api/ecosystem/connect-requests/{request_id}/status
openapi: 3.1.0
info:
  title: BP-Agent Ecosystem API
  description: BP-Agent 账号态生态服务接口：生态对接需求、服务商档案、上架状态、成员、服务、评价与资料文件。接口使用账号 JWT 鉴权，并按租户隔离。
  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/ecosystem/connect-requests/{request_id}/status:
    patch:
      tags:
        - 生态资源 / Ecosystem
      summary: Update Connect Request Status
      operationId: >-
        update_connect_request_status_api_ecosystem_connect_requests__request_id__status_patch
      parameters:
        - name: request_id
          in: path
          required: true
          schema:
            type: string
            title: Request Id
        - name: tenant_id
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            description: 管理员可选租户范围
            title: Tenant Id
          description: 管理员可选租户范围
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/EcosystemConnectStatusUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/SuccessResponse_EcosystemConnectRequestResponse_
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    EcosystemConnectStatusUpdate:
      properties:
        status:
          $ref: '#/components/schemas/EcosystemConnectStatus'
          description: 目标状态
        remark:
          anyOf:
            - type: string
              maxLength: 500
            - type: 'null'
          title: Remark
          description: 状态变更备注
      type: object
      required:
        - status
      title: EcosystemConnectStatusUpdate
    SuccessResponse_EcosystemConnectRequestResponse_:
      properties:
        code:
          type: integer
          title: Code
          description: 响应码，成功时为0
          default: 0
        message:
          type: string
          title: Message
          description: 成功消息
          default: 操作成功
        data:
          $ref: '#/components/schemas/EcosystemConnectRequestResponse'
          description: 响应数据
        timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: Timestamp
          description: 响应时间戳（可选）
      type: object
      title: SuccessResponse[EcosystemConnectRequestResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EcosystemConnectStatus:
      type: string
      enum:
        - pending
        - in_progress
        - completed
        - canceled
      title: EcosystemConnectStatus
      description: 生态对接需求状态枚举。
    EcosystemConnectRequestResponse:
      properties:
        project_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Project Id
          description: 关联项目ID
        company_name:
          type: string
          maxLength: 100
          title: Company Name
          description: 企业名称
        service_type:
          $ref: '#/components/schemas/EcosystemServiceType'
          description: 服务类型
        requirement_details:
          type: string
          title: Requirement Details
          description: 需求明细
        partner_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Partner Id
          description: 匹配资源方ID
        potential_partner:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Potential Partner
          description: 潜在匹配方
        service_amount:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Service Amount
          description: 服务金额（分）
        profit_share:
          anyOf:
            - type: integer
              minimum: 0
            - type: 'null'
          title: Profit Share
          description: 分润金额（分）
        profit_rate:
          type: string
          title: Profit Rate
          description: 分润比例
          default: '0.1500'
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        status:
          $ref: '#/components/schemas/EcosystemConnectStatus'
        status_history:
          items:
            $ref: '#/components/schemas/EcosystemStatusHistoryEntry'
          type: array
          title: Status History
          description: 状态变更历史
        match_follow_up_statuses:
          additionalProperties:
            $ref: '#/components/schemas/EcosystemMatchFollowUpStatus'
          type: object
          title: Match Follow Up Statuses
          description: 匹配企业跟进状态
        completed_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed At
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        created_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Created By
        updated_by:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated By
        status_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Label
          description: 状态中文
        service_type_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Type Label
          description: 服务类型中文
        partner_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Partner Name
          description: 已匹配资源方名称
      type: object
      required:
        - company_name
        - service_type
        - requirement_details
        - id
        - tenant_id
        - status
        - created_at
        - updated_at
      title: EcosystemConnectRequestResponse
    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
    EcosystemServiceType:
      type: string
      enum:
        - legal
        - finance_tax
        - policy
        - intellectual
        - order_match
        - fa_consultant
        - brand_pr
        - talent
        - data
        - cloud
      title: EcosystemServiceType
      description: 生态服务类型枚举。
    EcosystemStatusHistoryEntry:
      properties:
        from:
          anyOf:
            - $ref: '#/components/schemas/EcosystemConnectStatus'
            - type: 'null'
          description: 旧状态
        to:
          $ref: '#/components/schemas/EcosystemConnectStatus'
          description: 新状态
        at:
          type: string
          format: date-time
          title: At
          description: 变更时间
        by:
          anyOf:
            - type: string
            - type: 'null'
          title: By
          description: 操作人ID
        remark:
          anyOf:
            - type: string
            - type: 'null'
          title: Remark
          description: 备注
      type: object
      required:
        - to
        - at
      title: EcosystemStatusHistoryEntry
    EcosystemMatchFollowUpStatus:
      type: string
      enum:
        - unfollowed
        - contacted
        - interested
        - won
        - closed
      title: EcosystemMatchFollowUpStatus
      description: 生态匹配企业的跟进状态。
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.