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

# Update a webchat widget



## OpenAPI

````yaml /api-reference/openapi.json patch /v1/webchat/widgets/{widget_id}
openapi: 3.1.0
info:
  title: Feather API
  description: >-
    Unified customer experience platform API. Manages identity, conversations,
    memory, agents, procedures, policies, model routing, knowledge bases,
    integrations, and runtime execution.
  version: 1.87.0
servers:
  - url: https://api-sandbox.featherhq.com
    description: Sandbox
  - url: http://localhost:8000
    description: Local dev
security: []
paths:
  /v1/webchat/widgets/{widget_id}:
    patch:
      tags:
        - webchat
      summary: Update a webchat widget
      operationId: update_widget_v1_webchat_widgets__widget_id__patch
      parameters:
        - name: widget_id
          in: path
          required: true
          schema:
            type: string
            format: uuid
            title: Widget Id
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/WidgetUpdate'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WidgetResponse'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Authentication required
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Resource not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - APIKeyHeader: []
components:
  schemas:
    WidgetUpdate:
      properties:
        name:
          anyOf:
            - type: string
              maxLength: 255
              minLength: 1
            - type: 'null'
          title: Name
        is_enabled:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Is Enabled
        agent_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Id
        team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Id
        agent_revision_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Revision Id
        theme:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Theme
        copy:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Copy
        behavior:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Behavior
        limits:
          anyOf:
            - additionalProperties: true
              type: object
            - type: 'null'
          title: Limits
      type: object
      title: WidgetUpdate
    WidgetResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        organization_id:
          type: string
          format: uuid
          title: Organization Id
        name:
          type: string
          title: Name
        is_enabled:
          type: boolean
          title: Is Enabled
        agent_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Id
        team_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Team Id
        agent_revision_id:
          anyOf:
            - type: string
              format: uuid
            - type: 'null'
          title: Agent Revision Id
        public_key:
          type: string
          title: Public Key
        kill_epoch:
          type: integer
          title: Kill Epoch
        theme:
          additionalProperties: true
          type: object
          title: Theme
        copy:
          additionalProperties: true
          type: object
          title: Copy
        behavior:
          additionalProperties: true
          type: object
          title: Behavior
        limits:
          additionalProperties: true
          type: object
          title: Limits
        created_at:
          type: string
          format: date-time
          title: Created At
        updated_at:
          type: string
          format: date-time
          title: Updated At
        domains:
          items:
            $ref: '#/components/schemas/DomainResponse'
          type: array
          title: Domains
      type: object
      required:
        - id
        - organization_id
        - name
        - is_enabled
        - agent_id
        - team_id
        - agent_revision_id
        - public_key
        - kill_epoch
        - theme
        - copy
        - behavior
        - limits
        - created_at
        - updated_at
      title: WidgetResponse
    ErrorResponse:
      properties:
        error:
          type: string
          title: Error
        message:
          type: string
          title: Message
        retryable:
          anyOf:
            - type: boolean
            - type: 'null'
          title: Retryable
        retry_after:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retry After
      type: object
      required:
        - error
        - message
      title: ErrorResponse
      description: Standard error response returned by all API error handlers.
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    DomainResponse:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        hostname:
          type: string
          title: Hostname
        include_subdomains:
          type: boolean
          title: Include Subdomains
        verification_state:
          type: string
          title: Verification State
        verification_token:
          type: string
          title: Verification Token
        verified_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Verified At
        last_checked_at:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Last Checked At
        failure_reason:
          anyOf:
            - type: string
            - type: 'null'
          title: Failure Reason
      type: object
      required:
        - id
        - hostname
        - include_subdomains
        - verification_state
        - verification_token
        - verified_at
        - last_checked_at
        - failure_reason
      title: DomainResponse
    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
  securitySchemes:
    APIKeyHeader:
      type: apiKey
      in: header
      name: x-api-key

````