參數

參數名字 描述
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