PUT
/
api
/
v2
/
data-sources
/
qa
Update a Q&A data source
curl --request PUT \
  --url https://app.livechatai.com/api/v2/data-sources/qa \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "id": "qa_1234567890",
  "question": "What are your updated business hours?",
  "answer": "We are now open Monday to Saturday, 8 AM to 7 PM EST.",
  "agentId": "clx1234567890abcdef"
}'
{
  "status": "success",
  "data": {
    "message": "Updated successfully"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Details for updating a Q&A data source.

id
string
required

Unique identifier of the Q&A data source

Example:

"qa_1234567890"

question
string
required

Updated question for the Q&A data source

Example:

"What are your updated business hours?"

answer
string
required

Updated answer for the Q&A data source

Example:

"We are now open Monday to Saturday, 8 AM to 7 PM EST."

agentId
string
required

Unique identifier of the agent

Example:

"clx1234567890abcdef"

Response

Q&A data source updated successfully

status
string
Example:

"success"

data
object