---
title: "Create a new store on the server."
method: POST
path: "/"
tags: ["stores"]
---

# Create a new store on the server.

`POST /`

## Request body

- StoreRequest
  - `StoreName` string, required — The name for the new store.
  - `PersistenceType` integer — The persistence type for the store. 0='AppendOnly', 1= 'Rewrite'

## Response `200`

Successful response

## Other responses

- `400` — Bad Request. Either the required StoreName parameter was not provided or the PersistenceType parameter is outside the allowed range of 0-1
- `409` — Conflict. This status code indicates that the server already has a store with the specified store name.

## Changes

- **2015-05-26** `694b44600c48` — 2 info
  - api operation id `createStore` was added
  - api tag `stores` added
- **2015-05-19** `404ee72d2da6` — 2 info
  - api operation id `createStore` removed and replaced with ``
  - api tag `stores` removed

[Change history](https://skmtc.dev/brightstardb/apis/brightstardb-rest-api/changes/post.md)

---

[API](https://skmtc.dev/brightstardb/apis/brightstardb-rest-api.md) · [All operations](https://skmtc.dev/brightstardb/apis/brightstardb-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/brightstardb/brightstardb-rest-api/revisions/e94ef9356aa7/schema)
