---
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}`

## Request

- Base URL: `https://api.myaltimate.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.myaltimate.com/data_stores/{data_store_id}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer

> **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.dev/myaltimate/apis/myaltimate-api.md) - [All operations](https://skmtc.dev/myaltimate/apis/myaltimate-api/llms.txt) - [OpenAPI document](https://skmtc.dev/myaltimate/apis/myaltimate-api/revisions/727657ce54e9?raw)
