---
title: "Update a namespace"
method: PATCH
path: "/namespace/{id}"
tags: ["Namespace"]
---

# Update a namespace

`PATCH /namespace/{id}`

Updates information for a namespace.

## Path parameters

- `id` integer, required

## Request body

- NamespaceWrite
  - `name` string — The name of the namespace. Represents a department, team, or logical unit within your organization. > ℹ️ **Note:** Changing the namespace's name **does not change the slug**, as doing so could break connections with existing applications and services.
  - `status` 'active' | 'inactive'

## Response `200`

The operation was successful.

- Namespace
  - `id` integer, required — A system-wide unique ID for the namespace.
  - `name` string, required — The name of the namespace.
  - `status` 'active' | 'inactive', required — The status of the namespace.
  - `slug` string, required — An account-wide unique slug for the namespace.
  - `account_id` integer, required — The ID of the account that owns this namespace.
  - `metadata` ComponentsSchemasMetadataComponent — The metadata loaded via metadata catalog API.
    - `key` string — The key of the metadata.
    - `value` string — The value of the metadata.
    - `additional_properties` object — Additional properties of the metadata.
      - `schemas` unknown[] — The schemas of the metadata, in JSON format.
        - unknown
      - `tags` object[]
        - `key` string
        - `value` string

## Other responses

- `4XX` — Client error responses due to invalid input or missing parameters.
- `5XX` — Server error responses indicating an issue on the API side.

---

[API](https://skmtc.dev/nullplatform/apis/nullplatform-api.md) · [All operations](https://skmtc.dev/nullplatform/apis/nullplatform-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nullplatform/nullplatform-api/revisions/1c4ea154b159/schema)
