Skip to main content
POST
Create Dataset Import

授权

Authorization
string
header
必填

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

请求体

application/json

Which repository to copy, and where to put it.

ref
string
必填

The repository, as hf:namespace/name[@revision] or ms:namespace/name[@revision]. A reference with no hub prefix names a platform dataset and is refused -- there is nothing to import.

name
string
必填

Destination dataset name.

owner
string
默认值:""

Destination owner. Defaults to the requester; writing under somebody else's namespace follows the registry's own rule.

响应

Successful Response

id
integer
必填
hub
string
必填
kind
string
必填
repo_id
string
必填
ref
string
必填
dataset
string
必填
dest_owner
string
必填
dest_name
string
必填
status
string
必填
requested_by
string
必填
revision
string
默认值:""
resolved
string
默认值:""
dest_version
string
默认值:""
files
integer
默认值:0
bytes
integer
默认值:0
error
string
默认值:""
created_at
string | null
started_at
string | null
finished_at
string | null