---
title: "POST /api/{version}/organizations/{orgId}/projects/{projId}/databases"
method: POST
path: "/api/{version}/organizations/{orgId}/projects/{projId}/databases"
tags: ["Databases"]
---

# POST /api/{version}/organizations/{orgId}/projects/{projId}/databases

`POST /api/{version}/organizations/{orgId}/projects/{projId}/databases`

## Path parameters

- `orgId` string, required
- `projId` string, required
- `version` string, required

## Request body

- CreateDatabaseRequest
  - `name` string, nullable
  - `type` 'SqlServer' | 'MySql'
  - `environments` DatabaseEnvironmentRequest[], nullable
    - `environmentId` string, nullable
    - `infrastructureId` string, nullable

## Response `200`

OK

- DatabaseDtoItemResponse
  - `item` DatabaseDto
    - `id` string, nullable
    - `name` string, nullable
    - `type` 'SqlServer' | 'MySql'
    - `environments` DatabaseEnvironmentDto[], nullable
      - `environmentId` string, nullable
      - `infrastructureId` string, nullable
  - `links` HateoasLink[], nullable
    - `relation` string, nullable
    - `uri` string, nullable
    - `method` string, nullable

## Other responses

- `400` — Validation failed

---

[API](https://skmtc.net/data-grapes/apis/grapes-api.md) · [All operations](https://skmtc.net/data-grapes/apis/grapes-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/data-grapes/grapes-api/revisions/8ff77fe45bba/schema)
