Drafts

下書きの取得

get/knowledge/drafts/{draft_id}

Request

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

Path parameters

draft_idstring required
Example:d4f7h1j3k6l9z2x5c8v0b3n6

Response

下書き

idstring required
operation'create' | 'update' | 'delete' required
state'open' | 'published' | 'discarded' required
summarystring required
rationalestring required
document_idstring nullable required

更新・削除の対象の文書。作成では null

base_revision_idstring nullable required

下書きを作ったときの、対象の文書の head の版

staleboolean required

下書きを作った後に、対象の文書が変わったか消えた。公開する人が置き換えを選ばないと公開できない

source_idstring nullable required
folder_idstring nullable required
external_idstring nullable required
filenamestring nullable required

提案のファイル名。削除では null

mimestring nullable required
sizeinteger nullable required
content_sha256string nullable required
published_document_idstring nullable required
published_revision_idstring nullable required
created_atstring date-time required
decided_atstring date-time nullable required

Example response

{
  "created_at": "2026-09-29T02:31:07.000Z",
  "decided_at": "2026-09-29T02:31:07.000Z"
}

Changes

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