参数

参数名字 描述
id
必填

库 id

Validations:

  • number.

upload_ids
选填

要导入的上传 id 阵列

Validations:

  • Must be an array of any type

async
选填

Do not wait for the ImportUpload action to finish. Default: false

Validations:

  • boolean

publish_repository
选填

Whether or not to regenerate the repository on disk. Default: true

Validations:

  • boolean

sync_capsule
选填

Whether or not to sync an external capsule after upload. Default: true

Validations:

  • boolean

uploads
选填

Array of uploads to import

Validations:

  • Must be an Array of nested elements

uploads[id]
必填

Validations:

  • String

uploads[size]
选填

Validations:

  • String

uploads[checksum]
选填

Validations:

  • String

uploads[name]
选填

Needs to only be set for file repositories

Validations:

  • String