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

# Upload Face Avatar

> Supply your own picture for this face, instead of a generated portrait.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/faces/{face_id}/avatar/upload
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/faces/{face_id}/avatar/upload:
    post:
      tags:
        - Faces
      summary: Upload Face Avatar
      description: Supply your own picture for this face, instead of a generated portrait.
      operationId: upload_face_avatar_v1_faces__face_id__avatar_upload_put
      parameters:
        - name: face_id
          in: path
          required: true
          schema:
            type: string
            title: Face Id
        - name: authorization
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Authorization
      requestBody:
        required: true
        content:
          multipart/form-data:
            schema:
              $ref: >-
                #/components/schemas/Body_upload_face_avatar_v1_faces__face_id__avatar_upload_put
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FaceAvatarUploadResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    Body_upload_face_avatar_v1_faces__face_id__avatar_upload_put:
      properties:
        file:
          type: string
          contentMediaType: application/octet-stream
          title: File
      type: object
      required:
        - file
      title: Body_upload_face_avatar_v1_faces__face_id__avatar_upload_put
    FaceAvatarUploadResponse:
      properties:
        alias:
          type: string
          title: Alias
        source:
          type: string
          title: Source
          default: uploaded
        cols:
          type: integer
          title: Cols
        rows:
          type: integer
          title: Rows
        source_width:
          anyOf:
            - type: integer
            - type: 'null'
          title: Source Width
        source_height:
          anyOf:
            - type: integer
            - type: 'null'
          title: Source Height
        replaced:
          type: boolean
          title: Replaced
        url:
          type: string
          title: Url
      type: object
      required:
        - alias
        - cols
        - rows
        - replaced
        - url
      title: FaceAvatarUploadResponse
      description: >-
        The uploaded picture, after it has become a dot matrix and the file is
        gone.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.