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

# Upload avatar

> Upload or replace avatar image. Resized to 256x256 WebP.



## OpenAPI

````yaml /openapi.yaml post /profile/avatar
openapi: 3.0.3
info:
  title: Hill90 API
  description: Hill90 platform API — agent management and lifecycle operations.
  version: 0.1.0
servers:
  - url: /
    description: Relative (behind Traefik reverse proxy)
security: []
paths:
  /profile/avatar:
    post:
      summary: Upload avatar
      description: Upload or replace avatar image. Resized to 256x256 WebP.
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              type: object
              required:
                - avatar
              properties:
                avatar:
                  type: string
                  format: binary
      responses:
        '200':
          description: Avatar uploaded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Message'
        '400':
          description: Invalid file
        '401':
          description: Not authenticated
        '403':
          description: Requires user role
      security:
        - bearerAuth: []
components:
  schemas:
    Message:
      type: object
      properties:
        message:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````