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

# Update a Q&A data source

> Update an existing Q&A data source.



## OpenAPI

````yaml put /api/v2/data-sources/qa
openapi: 3.0.1
info:
  title: LiveChatAI API v2
  description: >-
    LiveChatAI API v2 - Build powerful AI-powered customer support experiences.
    This API follows REST principles with predictable, resource-oriented URLs,
    JSON responses, and standard HTTP methods.
  version: 2.0.0
servers:
  - url: https://app.livechatai.com
    description: Production server
security:
  - bearerAuth: []
paths:
  /api/v2/data-sources/qa:
    put:
      tags:
        - Data Sources
      summary: Update a Q&A data source
      description: Update an existing Q&A data source.
      requestBody:
        required: true
        description: Details for updating a Q&A data source.
        content:
          application/json:
            schema:
              type: object
              required:
                - id
                - question
                - answer
                - agentId
              properties:
                id:
                  type: string
                  example: qa_1234567890
                  description: Unique identifier of the Q&A data source
                question:
                  type: string
                  example: What are your updated business hours?
                  description: Updated question for the Q&A data source
                answer:
                  type: string
                  example: We are now open Monday to Saturday, 8 AM to 7 PM EST.
                  description: Updated answer for the Q&A data source
                agentId:
                  type: string
                  example: clx1234567890abcdef
                  description: Unique identifier of the agent
      responses:
        '200':
          description: Q&A data source updated successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  data:
                    type: object
                    properties:
                      message:
                        type: string
                        example: Updated successfully
        '401':
          description: Unauthorized access
        '403':
          description: Access denied - Invalid agent access.
        '404':
          description: Q&A data source not found.
        '500':
          description: An internal server error occurred.
      security:
        - bearerAuth: []
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````