# 上传聊天机器人图标

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/v1/upload-chatbot-icon:
    post:
      summary: 上传聊天机器人图标
      deprecated: false
      description: |+
        上传聊天机器人图标 API 端点允许您更新特定聊天机器人的图标。

      tags: []
      parameters:
        - name: Authorization
          in: header
          description: 用于验证 API 请求的密钥。
          required: true
          example: Bearer <Your-Secret-Key>
          schema:
            type: string
        - name: Content-Type
          in: header
          description: ''
          required: true
          example: multipart/form-data
          schema:
            type: string
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                chatbotId:
                  description: 您要更新其图标的聊天机器人的唯一标识符（在聊天机器人设置中找到）。
                  example: '[Your Chatbot ID]'
                  type: string
                chatbotIconFile:
                  description: 要上传的图标文件。它必须是方形图像（长 = 宽）且大小必须小于 1MB。
                  example: ''
                  type: string
              required:
                - chatbotId
                - chatbotIconFile
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                required:
                  - message
                x-apifox-orders:
                  - message
              example:
                message: string
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: ''
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/4195807/apis/api-157480317-run
components:
  schemas: {}
  securitySchemes: {}
servers:
  - url: http://dev-cn.your-api-server.com
    description: 开发环境
  - url: http://test-cn.your-api-server.com
    description: 测试环境
  - url: https://www.chatbase.co
    description: 正式环境
security: []

```
