Add examples to a split, or remove them from it.
func (
r *DatasetSplitService) New(ctx context.Context,
datasetID string,
body DatasetSplitNewParams,
opts ...option.RequestOption) (res *[]string,
err error
)Add examples to a split, or remove them from it.
Deprecated: use PATCH /api/v1/platform/datasets/{dataset_id}/examples/metadata with an ARRAY_ADD or ARRAY_REMOVE operation on the dataset_split key. Will be removed after May 31, 2027.
Returns the IDs of the given examples found in the dataset. Each of them gets a new version, even when its splits do not change. An example's other splits are kept, and an example without a split counts as being in the base split. Removing an example's last split leaves it in no split.
Deprecated: Deprecated: use Datasets.Examples.UpdateMetadata instead, with an ARRAY_ADD or ARRAY_REMOVE operation on the dataset_split key. Will be removed after May 31, 2027.
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
datasetID* | string | |
body* | DatasetSplitNewParams | |
opts* | ...option.RequestOption |