---
title: "POST /v1/{+model}:updateExplanationDataset"
method: POST
path: "/v1/{+model}:updateExplanationDataset"
tags: ["projects"]
---

# POST /v1/{+model}:updateExplanationDataset

`POST /v1/{+model}:updateExplanationDataset`

Incrementally update the dataset used for an examples model.

## Path parameters

- `model` string, required

## Request body

- GoogleCloudAiplatformV1UpdateExplanationDatasetRequest — Request message for ModelService.UpdateExplanationDataset.
  - `examples` GoogleCloudAiplatformV1Examples — Example-based explainability that returns the nearest neighbors from the provided dataset.
    - `presets` GoogleCloudAiplatformV1Presets — Preset configuration for example-based explanations
      - `query` 'PRECISE' | 'FAST' — Preset option controlling parameters for speed-precision trade-off when querying for examples. If omitted, defaults to `PRECISE`.
      - `modality` 'MODALITY_UNSPECIFIED' | 'IMAGE' | 'TEXT' | 'TABULAR' — The modality of the uploaded model, which automatically configures the distance measurement and feature normalization for the underlying example index and queries. If your model does not precisely fit one of these types, it is okay to choose the closest type.
    - `neighborCount` integer — The number of neighbors to return when querying for examples.
    - `exampleGcsSource` GoogleCloudAiplatformV1ExamplesExampleGcsSource — The Cloud Storage input instances.
      - `gcsSource` GoogleCloudAiplatformV1GcsSource — The Google Cloud Storage location for the input content.
        - `uris` string[] — Required. Google Cloud Storage URI(-s) to the input file(s). May contain wildcards. For more information on wildcards, see https://cloud.google.com/storage/docs/wildcards.
      - `dataFormat` 'DATA_FORMAT_UNSPECIFIED' | 'JSONL' — The format in which instances are given, if not specified, assume it's JSONL format. Currently only JSONL format is supported.
    - `nearestNeighborSearchConfig` unknown

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/aiplatform.md) · [All operations](https://skmtc.net/google/apis/aiplatform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/aiplatform/versions/b608d71b91f0/schema)
