v1

latestOpenAPI 3.0.32026-07-26870417.2 KB
knowledge-base

Update FAQ

Update an FAQ's question and answer (regenerates embedding)

patch/knowledge-base/faq/{context_id}

Path parameters

context_idstring required

The context ID of the FAQ to update

Example:ai-context-aaauajhjdgjnomr

Request body

questionstring

The updated question

answerstring

The updated answer

embeddingnumber[]

Optional array of embedding values

Example request

[
  {
    "question": "How do I connect my WhatsApp account?",
    "answer": "You can connect your WhatsApp account by scanning the QR code in the Settings page.",
    "embedding": [
      -0.020637017,
      -0.0148050785,
      0.02985098,
      0.023778915,
      "..."
    ]
  }
]

Response

200 OK

successboolean
messagestring
faqobject

The updated FAQ object