---
title: "创建命名空间"
method: POST
path: "/api/cne/namespace/create"
tags: ["命名空间"]
---

# 创建命名空间

`POST /api/cne/namespace/create`

创建命名空间

## Headers

- `Authorization` string
- `X-Auth-Token` string

## Request body

- ModelNamespaceBase
  - `cluster` string
  - `name` string, required

## Response `201`

Created

- RouterResponse2xx
  - `data` unknown
  - `message` string
  - `pagination` unknown
  - `success` boolean

## Other responses

- `500` — Internal Server Error

---

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