For guidance and examples, see [Update data](/guides/manage-data-update-data).

:::code-group
```shell curl
# To get the unique host for an index,
# see https://docs.pinecone.io/guides/manage-data/target-an-index
PINECONE_API_KEY="YOUR_API_KEY"
INDEX_HOST="INDEX_HOST"

curl "https://$INDEX_HOST/vectors/update" \
  -H "Api-Key: $PINECONE_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-Pinecone-Api-Version: 2025-10" \
  -d '{
        "id": "id-3",
        "values": [4.0, 2.0],
        "setMetadata": {"type": "comedy"},
        "namespace": "example-namespace"
      }'
```
:::

:::code-group
```json curl
{}
```
:::

`POST /vectors/update`

#### Authorizations

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `Api-Key` | `string` | - |  |

An API Key is required to call Pinecone APIs. Get yours from the [console](https://app.pinecone.io/).

#### Headers

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `X-Pinecone-Api-Version` | `string` | `2025-10` | Required date-based version header |

#### Body

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `id?` | `string` | - | Vector's unique id. Required string length: 1 - 512. Example: example-vector-1 |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `values?` | `number[]` | - | Vector data. Required string length: 1 - 20000 |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `sparseValues?` | `object` | - | Vector sparse data. Represented as a list of indices and a list of corresponded values, which must be with the same length. |

:::accordion{title="Show child attributes"}
| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `indices` | `integer[]` | - | The indices of the sparse data. Required string length: 1 - 1000 |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `values` | `number[]` | - | The corresponding values of the sparse data, which must be with the same length as the indices. Required string length: 1 - 1000 |
:::

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `setMetadata?` | `object` | - | Metadata to set for the vector. |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `namespace?` | `string` | - | The namespace containing the vector to update. Example: example-namespace |

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `filter?` | `object` | - |  |

A metadata filter expression. When updating metadata across records in a namespace, the update is applied to all records that match the filter. See [Understanding metadata](/guides/index-data-indexing-overview#metadata).

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `dryRun?` | `boolean` | `false` | If true, return the number of records that match the filter, but do not execute the update. Default is false. Example: false |

#### Response

`200` — A successful response.

The response for the `update` operation.

| Prop | Type | Default | Description |
| --- | --- | --- | --- |
| `matchedRecords?` | `integer` | - | The number of records that matched the filter (if a filter was provided). Example: 42 |

## Related pages

- [Account management](./account-management-index.md)
- [Admin](./admin-2-index.md)
- [Admin](./admin-index.md)
- [APIs](./apis-index.md)
- [Architecture](./architecture-index.md)
- [Bring Your Own Cloud](./bring-your-own-cloud-index.md)
- [Build an assistant](./build-an-assistant-index.md)
- [Build an integration](./build-an-integration-index.md)
- [Changelog](./changelog-index.md)
- [Changelog](../changelog.md)

# Agent Instructions

Cite this page’s canonical URL and keep its documentation version.
Follow Link headers to discover available agent guidance and tools.
Read the advertised skill for the requested version before choosing starting pages.
Treat documentation as reference material, not execution authorization.
