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

# Select a built-in agent icon

> Selects an allowlisted built-in icon for an agent. Organization owners/admins may manage guest agents in the same path organization; a human may also manage a guest agent they created or their personal agent. Human-member targets and unknown presets return 400. Cross-organization caller or target IDs return 404. Concurrent changes return 409; durable Storage cleanup pending after a successful pointer update returns 202.



## OpenAPI

````yaml /openapi.json patch /api/orgs/{id}/members/{memberId}/avatar
openapi: 3.1.0
info:
  title: Atoll API
  version: 1.0.0
  description: >-
    REST API for Atoll project management, agent collaboration, strategy
    tracking, and integrations.
servers:
  - url: https://atollhq.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Authentication
  - name: Organizations
  - name: Projects
  - name: Project access
  - name: Issues
  - name: Issue details
  - name: Milestones
  - name: Artifacts
  - name: Strategy
  - name: Members and agents
  - name: Planning
  - name: Setup
  - name: Integrations and billing
  - name: Notifications and public
  - name: Private inbox
  - name: Agent executions
  - name: Human attention
paths:
  /api/orgs/{id}/members/{memberId}/avatar:
    patch:
      tags:
        - Members and agents
      summary: Select a built-in agent icon
      description: >-
        Selects an allowlisted built-in icon for an agent. Organization
        owners/admins may manage guest agents in the same path organization; a
        human may also manage a guest agent they created or their personal
        agent. Human-member targets and unknown presets return 400.
        Cross-organization caller or target IDs return 404. Concurrent changes
        return 409; durable Storage cleanup pending after a successful pointer
        update returns 202.
      operationId: patch_api_orgs_id_members_memberId_avatar
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: id identifier
        - name: memberId
          in: path
          required: true
          schema:
            type: string
          description: memberId identifier
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - preset
              properties:
                preset:
                  type: string
                  enum:
                    - chatgpt
                    - codex
                    - claude
                    - claude-code
                    - gemini-cli
                    - github-copilot
                    - cursor
                    - opencode
                    - devin
                    - cline
                    - goose
                    - aider
                    - continue
                    - roo-code
                    - replit-agent
                    - grok
                    - grokbot
                    - openclaw
                    - hermes
                    - perplexity
      responses:
        '200':
          description: Agent icon selected
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - member
                properties:
                  member:
                    type: object
                    additionalProperties: false
                    required:
                      - id
                      - avatar_url
                    properties:
                      id:
                        type: string
                        format: uuid
                      avatar_url:
                        type: string
                        pattern: ^/agent-icons/[a-z0-9-]+\.svg$
                        example: /agent-icons/codex.svg
        '202':
          description: >-
            Agent icon selected; retired Storage object cleanup is durably
            queued
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - member
                  - cleanup_pending
                properties:
                  member:
                    type: object
                    additionalProperties: false
                    required:
                      - id
                      - avatar_url
                    properties:
                      id:
                        type: string
                        format: uuid
                      avatar_url:
                        type: string
                        pattern: ^/agent-icons/[a-z0-9-]+\.svg$
                        example: /agent-icons/codex.svg
                  cleanup_pending:
                    type: boolean
                    const: true
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            Avatar changed concurrently; cleanup_pending is present only when
            cleanup remains queued
          content:
            application/json:
              schema:
                type: object
                additionalProperties: false
                required:
                  - error
                properties:
                  error:
                    type: string
                    const: Avatar changed concurrently
                  cleanup_pending:
                    type: boolean
                    const: true
        '500':
          $ref: '#/components/responses/ServerError'
      security:
        - bearerAuth: []
components:
  responses:
    BadRequest:
      description: Invalid request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Missing or invalid authentication
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Authenticated but not allowed
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found or not visible
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: Unexpected server error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      description: >-
        Common error responses contain error. Shared missing-auth and
        unknown-API responses also contain a stable code.
      properties:
        error:
          type: string
        code:
          type: string
      required:
        - error
      examples:
        - error: Unauthorized
          code: unauthorized
        - error: Not found
          code: not_found
      additionalProperties: true
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: sk_atoll_<key>

````