跳到主要内容
Sursa Developers

对象

DraftCreate

字段

  • card_idstring | null
  • collectionstring | null

    新卡片所属合集的名称(不传 card_id 时必填)。

  • titlestring | null

    length ≤ 200

  • body_markdownstring | null

    length ≤ 500000

  • tagsarray of string | null

    items ≤ 30

  • revision_notestring | null

    length ≤ 1000

  • verify_on_publishboolean

    默认值:false

  • notify_followersboolean

    默认值:false

  • scheduled_publish_atstring (date-time) | null
  • author_idinteger

    API 密钥调用时草稿的作者(自 1.62.0 起):密钥所属组织的活跃用户;该用户成为 created_by 和第一位共同作者。使用密钥时必填(否则返回 422 validation.failed);其他组织的用户或未启用的用户返回 404 users.not_found。对合集和卡片的权限按密钥检查,而不是按作者检查。在会话中,作者是已登录的用户:传入不同的 author_id 返回 422 validation.failed。

    ≥ 1

使用方