update_metadata(
self,
dataset_id: str,
*,
example_ids: SequenceNotStr[str],
| Name | Type | Description |
|---|---|---|
example_ids* | SequenceNotStr[str] | The IDs of the examples to change; at most 10000. IDs of examples that are not in the dataset, or were deleted, are skipped and reported as NOT_FOUND. |
operations* | Iterable[example_update_metadata_params.Operation] | The metadata changes to apply, in order; at most 50, of which at most 10 are array operations. |
extra_headers | Headers | None | Default: None |
extra_query | Query | None | Default: None |
extra_body | Body | None | Default: None |
timeout | float | httpx.Timeout | None | NotGiven | Default: not_given |
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.
Send extra headers
Add additional query parameters to the request
Add additional JSON properties to the request
Override the client-level default timeout for this request, in seconds