跳到主要内容
Sursa Developers

对象

ArchiveUploadForm

字段

  • filestring (application/zip)必填
  • collectionstring

    默认值:"default"

  • tagsstring

    默认值:""

  • forceboolean

    默认值:false

  • owner_idinteger | null
  • verify_interval_daysinteger | null
  • categorystring | null
  • sensitiveboolean | null
  • folder_idstring | null

    存放压缩包内所有文档的 collection 中的文件夹。属于其他合集的文件夹返回 400 folders.card_collection_mismatch,不存在的文件夹返回 404 folders.not_found,对该文件夹没有 COLLECTION_EDIT_CARDS 权限时返回 403 authz.forbidden。检查在保存压缩包之前进行。已上传文件的重复项不会被移入该文件夹。

    length ≤ 64

  • collection_idinteger | null

    按 ID 指定合集。同时传入 collection 时以 collection_id 为准。组织中不存在或不可见的合集返回 404 collections.not_found。

使用方