Skip to main content
POST
/
api
/
v1
/
local
/
namespace
Create namespace
curl --request POST \
  --url https://api.coralcloud.ai/api/v1/local/namespace \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "deleteOnLastSessionExit": true,
  "annotations": {}
}
'
{
  "message": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Namespace settings

name
string
required

The name of this namespace

deleteOnLastSessionExit
boolean
required
    If this is true the namespace will be deleted when the last session in this namespace closes.  Note that this
    does not guarantee that the namespace will never be empty, because namespaces can be created without sessions
annotations
LinkedHashMap<String,String> · object
required

Response

Success