Documents

文書の削除

削除を受け付け、実体は裏で消す。消した文書をもう一度消すと、削除の起票が保守の GC で消えるまでは already_deleted、その後は 404

delete/knowledge/documents/{document_id}

Request

  • Base URL: https://api.leafchat.app/api/v1
  • URL: https://api.leafchat.app/api/v1/knowledge/documents/{document_id}
  • Auth: HTTP bearer

Path parameters

document_idstring required
Example:p3l8n1b6v9c2x5z7m0q4w8e1

Headers

if-matchstring
Example:"r7t2y5u8i1o4p6a9s3d0f2g5"

GET で受け取った ETag("<版の ID>")。強い比較の 1 つの値だけを受ける

Response

削除を受け付けた

document_idstring required
outcome'deleted' | 'already_deleted' required

Changes

No recorded changes to this operation across all 1 revision of this API.