Reference

Create namespace

Makes a namespace: its own folder of the store, private unless asked.

POST
/namespaces

Authorization

bearer
headerAuthorizationBearer <token>

Request Body

application/json
  1. body
name*string
Match^[A-Za-z0-9_-][A-Za-z0-9._-]*(\/[A-Za-z0-9_-][A-Za-z0-9._-]*)*$
Lengthlength <= 200
region?string

Where its data lives. It can't change later. The default region if not given.

visibility?string

private: only the organization's keys and members. public: anyone may also read it, without a key, by naming it <org>:<namespace>.

Default"private"
Value in"private""public"

Response Body

The namespace.

application/json
  1. response
name*string
region*string
visibility*Visibility

private: only the organization's keys and members. public: anyone may also read it, without a key, by naming it <org>:<namespace>.

Value in"private""public"
created*string
Formatdate-time
Example Request
curl -X POST 'https://example.com/v1/namespaces' \  -H 'Content-Type: application/json' \  -d '{  "name": "string"}'
Example Response
{  "name": "string",  "region": "string",  "visibility": "private",  "created": "2019-08-24T14:15:22Z"}