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



## OpenAPI

````yaml /specs/bp-agent-ecosystem.openapi.json patch /api/ecosystem/partners/{partner_id}
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/partners/{partner_id}:
    patch:
      tags:
        - 生态资源 / Ecosystem
      summary: Update Partner
      operationId: update_partner_api_ecosystem_partners__partner_id__patch
      parameters:
        - name: partner_id
          in: path
          required: true
          schema:
            type: string
            title: Partner 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/EcosystemPartnerUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SuccessResponse_EcosystemPartnerResponse_'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    EcosystemPartnerUpdate:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Name
        category:
          anyOf:
            - $ref: '#/components/schemas/EcosystemPartnerCategory'
            - type: 'null'
        service_type:
          anyOf:
            - $ref: '#/components/schemas/EcosystemServiceType'
            - type: 'null'
        contact_person:
          anyOf:
            - type: string
              maxLength: 50
            - type: 'null'
          title: Contact Person
        phone:
          anyOf:
            - type: string
              maxLength: 20
            - type: 'null'
          title: Phone
        email:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Email
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        cooperation_start_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Cooperation Start Date
        last_active_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Last Active Date
        status:
          anyOf:
            - $ref: '#/components/schemas/EcosystemPartnerStatus'
            - type: 'null'
        is_active:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Active
      type: object
      title: EcosystemPartnerUpdate
    SuccessResponse_EcosystemPartnerResponse_:
      properties:
        code:
          type: integer
          title: Code
          description: 响应码，成功时为0
          default: 0
        message:
          type: string
          title: Message
          description: 成功消息
          default: 操作成功
        data:
          $ref: '#/components/schemas/EcosystemPartnerResponse'
          description: 响应数据
        timestamp:
          anyOf:
            - type: integer
            - type: 'null'
          title: Timestamp
          description: 响应时间戳（可选）
      type: object
      title: SuccessResponse[EcosystemPartnerResponse]
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EcosystemPartnerCategory:
      type: string
      enum:
        - compliance
        - growth
        - infrastructure
      title: EcosystemPartnerCategory
      description: 生态资源方分类枚举。
    EcosystemServiceType:
      type: string
      enum:
        - legal
        - finance_tax
        - policy
        - intellectual
        - order_match
        - fa_consultant
        - brand_pr
        - talent
        - data
        - cloud
      title: EcosystemServiceType
      description: 生态服务类型枚举。
    EcosystemPartnerStatus:
      type: string
      enum:
        - active
        - inactive
      title: EcosystemPartnerStatus
      description: 生态资源方状态枚举。
    EcosystemPartnerResponse:
      properties:
        name:
          type: string
          maxLength: 100
          title: Name
          description: 资源方名称
        category:
          $ref: '#/components/schemas/EcosystemPartnerCategory'
          description: 资源方分类
        service_type:
          $ref: '#/components/schemas/EcosystemServiceType'
          description: 服务类型
        contact_person:
          type: string
          maxLength: 50
          title: Contact Person
          description: 联系人
        phone:
          anyOf:
            - type: string
              maxLength: 20
            - type: 'null'
          title: Phone
          description: 联系电话
        email:
          anyOf:
            - type: string
              maxLength: 100
            - type: 'null'
          title: Email
          description: 邮箱
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
          description: 简介
        cooperation_start_date:
          type: string
          format: date
          title: Cooperation Start Date
          description: 合作开始日期
        last_active_date:
          anyOf:
            - type: string
              format: date
            - type: 'null'
          title: Last Active Date
          description: 最后活跃日期
        status:
          $ref: '#/components/schemas/EcosystemPartnerStatus'
          description: 资源方状态
          default: active
        id:
          type: string
          title: Id
        tenant_id:
          type: string
          title: Tenant Id
        total_revenue:
          type: integer
          minimum: 0
          title: Total Revenue
          description: 累计营收（分）
        total_profit:
          type: integer
          minimum: 0
          title: Total Profit
          description: 累计分润（分）
        service_count:
          type: integer
          minimum: 0
          title: Service Count
          description: 服务次数
        is_active:
          type: boolean
          title: Is Active
        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
        category_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Category Label
          description: 分类中文
        service_type_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Service Type Label
          description: 服务类型中文
        status_label:
          anyOf:
            - type: string
            - type: 'null'
          title: Status Label
          description: 状态中文
      type: object
      required:
        - name
        - category
        - service_type
        - contact_person
        - cooperation_start_date
        - id
        - tenant_id
        - total_revenue
        - total_profit
        - service_count
        - is_active
        - created_at
        - updated_at
      title: EcosystemPartnerResponse
    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
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````

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