对象
TextCardRequest
字段
titlestring必填length ≥ 1, length ≤ 200
collectionstring默认值:"default"
body_markdownstringMarkdown 格式的卡片正文;
content_type对其不适用。也可以改为传入body。length ≥ 1, length ≤ 500000
tagsarray of string | nullitems ≤ 30
categorystring | nulllength ≤ 60
sensitiveboolean | nullowner_idinteger | nullasyncboolean默认值:false
bodystringcontent_type格式的卡片正文。body和body_markdown二选一;两者都传入时返回422 validation.failed。length ≥ 1, length ≤ 500000
content_typeCardTextContentTypecollection_idinteger | null按 ID 指定合集。同时传入
collection时以collection_id为准。组织中不存在或不可见的合集返回404 collections.not_found。folder_idstring | null放入卡片的合集文件夹,检查方式与上传文件时的
folder_id相同。属于其他合集的文件夹返回400 folders.card_collection_mismatch,不存在的文件夹返回404 folders.not_found,对该文件夹没有COLLECTION_EDIT_CARDS权限时返回403 authz.forbidden。length ≤ 64
external_idstring | null新卡片的
external_id。如果组织中的另一张卡片已使用该值,请求返回409 cards.external_id_taken。要按external_id创建或替换卡片,请使用PUT /v1/cards-by-external-id/{external_id}。length ≤ 512
metadataMetadataPatch