Skip to main content
POST
Error

Authorizations

X-API-Key
string
header
required

Body

application/json
target_dataset_id
string<uuid>
required

ID of the dataset in this workspace that receives the copied examples. Its current examples are kept.

source_dataset_id
string<uuid>
required

ID of the dataset in this workspace to copy examples from. It is not modified.

as_of

Only modifications made on or before this time are included. If None, the latest version of the dataset is used.

examples
string<uuid>[]

IDs of source examples to copy. Defaults to every example in the source version. When IDs are given and nothing is copied, because none match or either dataset is not found, the request fails with 404.

split

Split name, or list of split names, assigned to every copied example in place of its source splits. Defaults to keeping the source splits.

tag_value_ids
string<uuid>[] | null

List of resource tag value IDs to attach to the target dataset, up to 100. Requires the datasets:tag_on_create permission.

Maximum array length: 100

Response

Successful Response