PUT
/
api
/
v2
/
data-sources
/
qa
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.

The body is of type object.

Response

200
application/json

Q&A data source updated successfully

The response is of type object.