---
title: "Updates the namespace metadata. The path name replaces the body name."
method: PUT
path: "/api/v1/namespaces/{name}"
tags: ["Namespaces"]
---

# Updates the namespace metadata. The path name replaces the body name.

`PUT /api/v1/namespaces/{name}`

## Request

- The document declares no server URL.
- Auth: none declared

## Path parameters

- `name` string, required

## Request body

- NamespaceEntry
  - `audience` string, nullable
  - `authRequired` boolean, nullable
  - `labels` object
  - `name` string, required

## Response `200`

Namespace updated

- WanakuResponseNamespaceEntry
  - `data` object
    - `audience` string, nullable
    - `authRequired` boolean, nullable
    - `labels` object
    - `name` string, required
  - `error` string, nullable

## Other responses

- `400`: Invalid namespace name, malformed JSON, or missing body

## Changes

- **2026-10-28** `6ca472c359f9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/wanaku-ai/apis/wanaku-api/changes/api/v1/namespaces/:name/put.md)

---

[API](https://skmtc.dev/wanaku-ai/apis/wanaku-api.md) - [All operations](https://skmtc.dev/wanaku-ai/apis/wanaku-api/llms.txt) - [OpenAPI document](https://skmtc.dev/wanaku-ai/apis/wanaku-api/revisions/b09985e56872?raw)
