Namespaces

Create a namespace

Creates a namespace with status 201. Names are unique within the organization; a duplicate conflicts.

POST
/v1/namespaces

Creates a namespace with status 201. Names are unique within the organization; a duplicate conflicts.

x-api-key<token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

name*string
Match^\S[\s\S]*\S$|^\S$|^$
Length1 <= length <= 128
metadata?|null

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/namespaces" \  -H "Content-Type: application/json" \  -d '{    "name": "string"  }'
{  "id": "string",  "name": "string",  "createdAt": "string",  "metadata": {    "property1": "string",    "property2": "string"  },  "updatedAt": "string"}

Related documentation