---
title: "Update Data Store"
method: PUT
path: "/data_stores/{data_store_id}"
tags: ["DATA_STORE"]
deprecated: true
---

# Update Data Store

`PUT /data_stores/{data_store_id}`

> **Deprecated.**

Update the data store by the provided information
:param db: database session
:param data_store: DataStore object fetched from db. This checks if the data store exists.
:param data_store_update_request: Data Store update request
:param auth: auth token. Also gets the user_id from the token
:param id: data store id. This is the path param

## Path parameters

- `data_store_id` integer, required

## Request body

- DataStoreUpdateRequest
  - `name` string, nullable
  - `type` string, nullable
  - `description` string, nullable
  - `connection_hash` string, nullable
  - `key` string, nullable

## Response `200`

Successful Response

- DataStoreUpdateResponse
  - `id` integer, required
  - `name` string, required
  - `type` string, required
  - `description` string, nullable
  - `created_by` integer, nullable
  - `last_modified_by` integer, nullable
  - `message` string, required

## Other responses

- `400` — Not supported for public user
- `403` — Not supported for public user
- `422` — Validation Error

---

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