Skip to main content
PATCH
/
organization
/
rag
/
sources
/
questions
/
{message_id}
Update Q&A message
curl --request PATCH \
  --url https://api.getfernand.com/organization/rag/sources/questions/{message_id} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "questions": [
    "How do I reset my password?"
  ],
  "answer": "To reset your password..."
}
'
{}
Updates an existing Q&A source that was created from a conversation message. If the source doesn’t exist yet, it will be created. This allows editing auto-generated Q&A pairs.

Authorizations

X-API-Key
string
header
required

Authenticate your account by including your secret key in API requests. You can manage your API keys in the Dashboard.

Authentication to the API is performed by using the HTTP Header X-API-Key.

Path Parameters

message_id
integer
required

ID of the message to update.

Body

application/json
questions
string[]
required
Maximum string length: 250
Example:
["How do I reset my password?"]
answer
string
required
Maximum string length: 5000
Example:

"To reset your password..."

Response

Q&A source queued for update.

The response is of type object.