Applies the same metadata changes, in order, to every listed example in a.
func (
r *DatasetExampleService) UpdateMetadata(ctx context.Context,
datasetID string,
body DatasetExampleUpdateMetadataParams,
opts ...option.RequestOption) (res *DatasetExampleUpdateMetadataResponse,
err error
)Applies the same metadata changes, in order, to every listed example in a dataset. Examples that are not in the dataset or were deleted are skipped; the rest are updated together, so if the update fails none of them change. Answers 207 with one status per submitted example ID: UPDATED, or NOT_FOUND for a skipped example. Metadata keys the operations do not name keep their values. To add examples to a split or remove them from one, use ARRAY_ADD or ARRAY_REMOVE on the dataset_split key. Requires permission to update datasets.
| Name | Type | Description |
|---|---|---|
ctx* | context.Context | |
datasetID* | string | |
body* | DatasetExampleUpdateMetadataParams | |
opts* | ...option.RequestOption |