# 修改-个人头像

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /api/avatar:
    put:
      summary: 修改-个人头像
      deprecated: false
      description: 修改-个人头像
      tags:
        - 个人信息
      parameters: []
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                avatar:
                  description: 头像-图片文件
                  example: >-
                    file://C:\Users\lenovo\Pictures\Saved
                    Pictures\Snipaste_2023-01-06_12-41-29.png
                  type: string
                  format: binary
                creator:
                  description: 外号：修改的是指定人员的头像
                  example: 老李
                  type: string
              required:
                - avatar
                - creator
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    title: 响应消息
                  data:
                    type: object
                    properties:
                      avatar:
                        type: string
                        title: 头像地址
                      creator:
                        type: string
                        title: 外号
                        description: 这个头像属于谁的
                    required:
                      - avatar
                      - creator
                    x-apifox-orders:
                      - avatar
                      - creator
                    title: 响应数据
                required:
                  - message
                  - data
                x-apifox-orders:
                  - message
                  - data
              example:
                message: 保存个人头像成功
                data:
                  avatar: >-
                    http://yjy-teach-oss.oss-cn-beijing.aliyuncs.com/ajax/16736089417970.7036970982104307.png
                  creator: 老李
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: 个人信息
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/1937884/apis/api-58280578-run
components:
  schemas: {}
  securitySchemes: {}
servers: []
security: []

```
