FAQ管理

更新指定的FAQ条目

put/knowledge-bases/{id}/faq/entries/{entry_id}

Request

  • Base URL
    /api/v1 (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v1/knowledge-bases/{id}/faq/entries/{entry_id}
  • Auth
    • API key in header Authorization
    • or API key in header X-API-Key

Path parameters

idstring required

知识库ID

entry_idinteger required

FAQ条目ID(seq_id)

Request body

answer_strategy'all' | 'random'
answersstring[]

Answers; one is picked by answer_strategy.

idinteger

ID 可选,用于数据迁移时指定 seq_id(必须小于自增起始值 100000000)

is_enabledboolean

Whether the entry is served; omit to keep the current or default value.

is_recommendedboolean

Whether the entry is recommended; omit to keep the current or default value.

negative_questionsstring[]

Phrasings that must not match; [] for none.

similar_questionsstring[]

Other phrasings that should match; [] for none.

standard_questionstring required

The question the entry answers.

tag_idinteger

Tag seq id (tag_seq_id from knowledge_base.list_tags); 0 for none.

tag_namestring

Response

更新成功

successboolean

Example response

{
  "success": true
}

Changes