Skip to main content
POST
/
v1
/
namespace
/
{id}
/
create
Error
A valid request URL is required to generate request examples
{
  "transaction_id": "<string>",
  "properties": {}
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

id
string
required

string identifier of an object in a namespace, following the Lance Namespace spec. When the value is equal to the delimiter, it represents the root namespace. For example, v1/namespace/$/list performs a ListNamespace on the root namespace.

Query Parameters

delimiter
string

An optional delimiter of the string identifier, following the Lance Namespace spec. When not specified, the $ delimiter must be used.

Body

application/json
id
string[]
mode
string

There are three modes when trying to create a namespace, to differentiate the behavior when a namespace of the same name already exists. Case insensitive, supports both PascalCase and snake_case. Valid values are:

  • Create: the operation fails with 409.
  • ExistOk: the operation succeeds and the existing namespace is kept.
  • Overwrite: the existing namespace is dropped and a new empty namespace with this name is created.
properties
object

Response

Result of creating a namespace

transaction_id
string

Optional transaction identifier

properties
object

Properties after the namespace is created.

If the server does not support namespace properties, it should return null for this field. If namespace properties are supported, but none are set, it should return an empty object.