---
title: "Create Data Store"
method: POST
path: "/data_stores/"
tags: ["DATA_STORE"]
deprecated: true
---

# Create Data Store

`POST /data_stores/`

> **Deprecated.**

Create a data store in the database.
:param db: The database session for accessing the database.
:param data_store_creation_request: The data store creation request containing the data store definition and other
metadata.
:param auth: The authorization token for the request.
:return: A data store creation response containing the data store ID, and a message.

## Request body

- DataStoreCreationRequest
  - `name` string, required
  - `type` string, required
  - `description` string, required
  - `connection_hash` string, required
  - `connection_info` string, required
  - `key` string, nullable
  - `jump_info` object, nullable
  - `auth_type` 'password' | 'key_pair'
  - `key_pair` KeyPair
    - `type` 'pem' | 'der'
    - `private_key` string, nullable
    - `passphrase` string, nullable

## Response `200`

Successful Response

- DataStoreCreationResponse
  - `id` integer, nullable
  - `name` string, nullable
  - `type` string, nullable
  - `description` string, 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)
