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

# Upload agent icon

> Upload or update an icon for an agent. Maximum file size: 5MB. Access control: Users can upload icons for agents in their personal groups. Company admins can upload icons for agents in any group within their company. Sys-admin users can upload icons for any agent.



## OpenAPI

````yaml /api-reference/openapi-v3.yaml put /api/v3/agents/{id}/icon
openapi: 3.0.3
info:
  title: Paradigm API
  version: xenial-xerus (v3)
  description: >-
    A versatile and adaptable tool designed to integrate Generative AI into your
    applications
servers:
  - url: https://paradigm.lighton.ai
security: []
tags:
  - name: Agents
    description: Operations about agents
  - name: Threads
    description: Operations about agents conversation threads
  - name: Tools
    description: Operations about native tools
  - name: Models
    description: Operations about AI models
  - name: MCP
    description: Operations about MCP servers
  - name: Sources
    description: Operations about sources used by agents conversation threads
  - name: Artifacts
    description: Operations about artifacts generated by agents conversation threads
  - name: Agent
    description: >-
      Operations about agents (deprecated). Please use the 'Agents' API
      component instead.
  - name: Files
    description: Operations about files
  - name: Files Processing
    description: Operations about files processing
  - name: Tags
    description: Operations about tags
  - name: Workspaces
    description: Operations about workspaces
  - name: Users
    description: Operations about users
  - name: User Groups
    description: Operations about user groups
  - name: Companies
    description: Operations about companies
  - name: SCIM
    description: Operations about SCIM
paths:
  /api/v3/agents/{id}/icon:
    put:
      tags:
        - Agents
      summary: Upload agent icon
      description: >-
        Upload or update an icon for an agent. Maximum file size: 5MB. Access
        control: Users can upload icons for agents in their personal groups.
        Company admins can upload icons for agents in any group within their
        company. Sys-admin users can upload icons for any agent.
      operationId: api_v3_agents_icon_update
      parameters:
        - in: path
          name: id
          schema:
            type: integer
          description: ID of the agent
          required: true
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                icon:
                  type: string
                  format: binary
                  description: Image file to upload as agent icon (max 5MB)
              required:
                - icon
      responses:
        '200':
          content:
            application/json:
              schema:
                description: Icon uploaded successfully
          description: ''
        '400':
          content:
            application/json:
              schema:
                description: Invalid file, missing icon, or file size exceeds 5MB
          description: ''
        '403':
          content:
            application/json:
              schema:
                description: Permission denied
          description: ''
        '404':
          content:
            application/json:
              schema:
                description: Agent not found
          description: ''
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Bearer authentication header of the form `Bearer <token>`, where
        `<token>` is your auth token.

````