Copy examples from a source dataset into an existing target dataset.
func (
r *DatasetService) Clone(ctx context.Context,
body DatasetCloneParams,
opts ...option.RequestOption) (res *[]DatasetCloneResponse,
err error
)Copy examples from a source dataset into an existing target dataset.
Each copied example gets a new ID and keeps the inputs, outputs, metadata, and source run ID of its source example. Attachments are copied when blob storage is enabled. Copying the same examples twice adds them twice. Requires the datasets:clone permission on both datasets. Returns the ID, dataset ID, creation and modification times, and source run ID of each new example. Without example IDs, a source or target that is not found can return an empty list instead of an error.
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
body* | DatasetCloneParams | |
opts* | ...option.RequestOption |