younifyd
Menu

Create a new namespace

Create a new namespace

POST/v1/namespaces/{namespace_id}

Use it in a workflow

  1. Add a step and choose the Weaviate connector.
  2. Pick the Create a new namespace action (under namespaces).
  3. Fill in the fields below, then reference the result from later steps as {{createANewNamespace.response.data}}.

Request

Path parameters

namespace_idstringrequired

The name of the namespace. Must start with a lowercase letter, contain only lowercase letters and digits, length 3-36, and not be a reserved name.

Request body

Enter the body as JSON in the step's Body field.

home_nodesarray<string>

Optional cluster nodes to place this namespace's shards on. Entries must be distinct current storage candidates, at least `REPLICATION_MINIMUM_FACTOR` of them. When this and `home_node` are both omitted or empty, the cluster picks `REPLICATION_MAXIMUM_FACTOR` nodes, or every storage node when there are fewer. It refuses that create when `REPLICATION_MAXIMUM_FACTOR` is unset or 0 or below, or when there are fewer storage nodes than `REPLICATION_MINIMUM_FACTOR`. List order decides placement. A collection or tenant with replication factor N goes on the first N entries that are storage nodes, so the first of those receives every factor-1 placement. Until every node runs this release, send only home_node: older nodes ignore home_nodes on create and pick a home node themselves.

home_nodestring

Deprecated: use home_nodes. A value is taken as a one-entry `home_nodes`. Sending it with a non-empty `home_nodes` is a 422, even when it equals the first entry.

json
{
  "home_nodes": [
    "string"
  ],
  "home_node": "string"
}

Response

Returns 201 with a any. Read it in later steps with {{createANewNamespace.response.data.<field>}}.

Need more? See the Weaviate guide for connection setup and behaviour shared by every action.