---
title: "Creates a namespace with a given name."
method: POST
path: "/namespaces"
tags: ["namespaces"]
---

# Creates a namespace with a given name.

`POST /namespaces`

## Request body

- Namespace
  - `id` string

## Response `201`

Succesfully created the namespace

- ApiResponse
  - `code` string
  - `message` string

## Other responses

- `409` — Namespace already exists
- `500` — Something went horribly wrong

---

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