knowledge-base

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

patch/knowledge-base/faq/{context_id}

Request

  • Base URL
    https://api.periskope.app/v1
  • URL
    https://api.periskope.app/v1/knowledge-base/faq/{context_id}
  • Auth
    HTTP bearer

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

is_activeboolean

Whether the FAQ is active (default: false)

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,
      "..."
    ],
    "is_active": true
  }
]

Response

200 OK

successboolean
messagestring
faqobject

The updated FAQ object

Changes