---
title: "Create Data Store Using Form"
method: POST
path: "/data_stores/form/"
tags: ["DATA_STORE"]
---

# Create Data Store Using Form

`POST /data_stores/form/`

Create data stores using form in frontend, 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 list of data store creation responses, one for each database processed.

## Request body

- DataStoreCreationUsingFormRequest
  - `name` string, required
  - `type` string, required
  - `description` string, required
  - `account` string, nullable
  - `user` string, nullable
  - `password` string, nullable
  - `role` string, nullable
  - `databases` string[], nullable
  - `warehouse` string, nullable
  - `key_pair` KeyPair
    - `type` 'pem' | 'der'
    - `private_key` string, nullable
    - `passphrase` string, nullable
  - `auth_type` 'password' | 'key_pair'
  - `host` string, nullable
  - `port` string, nullable
  - `pat_secret` string, nullable
  - `pat_name` string, nullable
  - `site_name` string, nullable
  - `url` string, nullable
  - `worksheet_location` string, nullable
  - `datastore_id` integer, nullable
  - `source_site_name` string, nullable
  - `instance_id` integer, 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)
