younifyd
Menu

Update a namespace

Update a namespace

PUT/v1/namespaces/{namespace_id}

Use it in a workflow

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

Request

Path parameters

namespace_idstringrequired

The name of the namespace.

Request body

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

home_nodesarray<string>

Cluster nodes to place this namespace's shards on. The list replaces the namespace's home nodes for placements made after the update, and existing shards stay on their nodes. Entries must be distinct current storage candidates, at least `REPLICATION_MINIMUM_FACTOR` of them, and at least the largest replication factor among the namespace's collections. Unlike on create, an empty list does not auto-pick, so a body with neither this nor `home_node` is a 422. 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 refuse an update without it.

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 200 with a any. Read it in later steps with {{updateANamespace.response.data.<field>}}.

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