> ## 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.

# Update Face

> Update a face by ID (username).



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/faces/{face_id}
openapi: 3.1.0
info:
  title: faces
  version: 0.101.0
servers: []
security: []
paths:
  /v1/faces/{face_id}:
    patch:
      tags:
        - Faces
      summary: Update Face
      description: Update a face by ID (username).
      operationId: update_face_v1_faces__face_id__patch
      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:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateFaceRequest'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/FaceObject'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    UpdateFaceRequest:
      properties:
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        specialty:
          anyOf:
            - type: string
            - type: 'null'
          title: Specialty
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        basic_facts:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Basic Facts
        default_tools:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Default Tools
        default_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Default Model
        formula:
          anyOf:
            - type: string
            - type: 'null'
          title: Formula
        profile_addendum:
          anyOf:
            - type: string
            - type: 'null'
          title: Profile Addendum
      type: object
      title: UpdateFaceRequest
      description: Request to update a face.
    FaceObject:
      properties:
        alias:
          type: string
          title: Alias
        uid:
          anyOf:
            - type: string
            - type: 'null'
          title: Uid
        object:
          type: string
          title: Object
          default: face
        created:
          type: integer
          title: Created
        owned_by:
          type: string
          title: Owned By
        name:
          anyOf:
            - type: string
            - type: 'null'
          title: Name
        specialty:
          anyOf:
            - type: string
            - type: 'null'
          title: Specialty
        description:
          anyOf:
            - type: string
            - type: 'null'
          title: Description
        basic_facts:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Basic Facts
        default_tools:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Default Tools
        default_model:
          anyOf:
            - type: string
            - type: 'null'
          title: Default Model
        formula:
          anyOf:
            - type: string
            - type: 'null'
          title: Formula
        profile_addendum:
          anyOf:
            - type: string
            - type: 'null'
          title: Profile Addendum
        published:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Published
        via:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Via
        shared_with:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Shared With
        read_only:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Read Only
        warnings:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Warnings
        fidelity:
          anyOf:
            - type: number
            - type: 'null'
          title: Fidelity
        fidelity_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Fidelity At
        fidelity_competitor:
          anyOf:
            - type: string
            - type: 'null'
          title: Fidelity Competitor
        tags:
          anyOf:
            - items:
                type: string
              type: array
            - type: 'null'
          title: Tags
        groups:
          anyOf:
            - items:
                $ref: '#/components/schemas/FaceGroupItem'
              type: array
            - type: 'null'
          title: Groups
        component_counts:
          anyOf:
            - items:
                type: integer
              type: array
            - type: 'null'
          title: Component Counts
        compiled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Compiled
        avatar_status:
          anyOf:
            - type: string
            - type: 'null'
          title: Avatar Status
        avatar_version:
          anyOf:
            - type: integer
            - type: 'null'
          title: Avatar Version
        avatar_uploaded:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Avatar Uploaded
        owner_followed:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Owner Followed
        owner_avatar:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Owner Avatar
        usage:
          anyOf:
            - additionalProperties:
                type: integer
              type: object
            - type: 'null'
          title: Usage
        updated_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Updated At
        compile_tokens_synced:
          anyOf:
            - type: integer
            - type: 'null'
          title: Compile Tokens Synced
        last_synced_at:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Synced At
        styles:
          items:
            type: string
          type: array
          title: Styles
          description: >-
            The media this face has a built style in, for `"style": "<medium>"`
            on chat. An empty list when it has none.
          readOnly: true
      type: object
      required:
        - alias
        - created
        - owned_by
        - styles
      title: FaceObject
      description: Public representation of a face.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    FaceGroupItem:
      properties:
        id:
          type: string
          title: Id
        name:
          type: string
          title: Name
      type: object
      required:
        - id
        - name
      title: FaceGroupItem
      description: Embedded group summary on a face response.
    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.