---
title: "Update an existing data store"
method: PATCH
path: "/v1/data-discovery/data-stores/{dataStoreId}"
tags: ["dataDiscovery"]
---

# Update an existing data store

`PATCH /v1/data-discovery/data-stores/{dataStoreId}`

## Request

- Base URL: `https://api.osano.com`
- URL: `https://api.osano.com/v1/data-discovery/data-stores/{dataStoreId}`
- Auth: API key in header `x-osano-api-key`
- TypeScript: <https://skmtc.dev/osano/apis/osano-api-reference/docs/v1/data-discovery/data-stores/:dataStoreId/patch.ts> (a function with typed inputs; its response is checked against the schema)

Update specific properties about a Data Store by ID.

## Path parameters

- `dataStoreId` string, required

## Request body

- DataStoreUpdate
  - `name` string
  - `description` string, nullable
  - `alias` string, nullable
  - `countryIso` string, nullable: ISO 3166-1 alpha-2 code
  - `owners` DataStoreOwner[]
    - `email` string, email, required
    - `primary` boolean
  - `purposesOfProcessing` DataStorePurposesOfProcessing[], nullable
    - `name` string, required
    - `processingPurposeId` string, uuid, nullable
  - `labels` DataStoreLabels[], nullable: Full replacement of the labels associated with this data store. Send the complete desired list of labels. Omit this field to leave labels unchanged. Send an empty array or null to remove all labels. Orphaned labels (not associated with any data store) are automatically deleted; labels still in use by other data stores are preserved.
    - `name` string, required
    - `labelId` string, uuid, nullable
  - `metadata` object, nullable

## Response `204`

Success

## Other responses

- `400`: Bad Request
- `404`: Not Found

## Changes

- **2026-05-12** `4fc37598750d`: 4 breaking, 4 warning, 3 info
  - the `alias` request property's minLength was increased from `0` to `3`
  - the `description` request property's minLength was increased from `0` to `3`
  - the `name` request property's minLength was increased from `0` to `3`
  - the `owners/items/email` request property's minLength was increased from `0` to `5`
  - …7 more
- **2025-10-11** `5ab36f60b5d0`: 3 info
  - added the new optional request property `countryIso`
  - added the new optional request property `labels`
  - added the new optional request property `purposesOfProcessing`

[Operation history](https://skmtc.dev/osano/apis/osano-api-reference/changes/v1/data-discovery/data-stores/:dataStoreId/patch.md)

---

[API](https://skmtc.dev/osano/apis/osano-api-reference.md) - [All operations](https://skmtc.dev/osano/apis/osano-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/osano/apis/osano-api-reference/revisions/ac31099cf83e?raw)
