---
title: "Updates a namespace"
method: PATCH
path: "/apps/{app_id}/namespaces/{namespace_id}"
tags: ["namespaces"]
---

# Updates a namespace

`PATCH /apps/{app_id}/namespaces/{namespace_id}`

## Path parameters

- `app_id` string, required
- `namespace_id` string, required

## Request body

- NamespacePatch
  - `identified` boolean
  - `authenticated` boolean
  - `persisted` boolean
  - `persistLast` boolean
  - `pushEnabled` boolean
  - `tlsOnly` boolean
  - `exposeTimeserial` boolean
  - `mutableMessages` boolean
  - `populateChannelRegistry` boolean
  - `batchingEnabled` boolean, nullable
  - `batchingInterval` integer, nullable
  - `conflationEnabled` boolean, nullable
  - `conflationInterval` integer, nullable
  - `conflationKey` string, nullable

## Response `200`

Namespace updated

- NamespaceResponse
  - `appId` string
  - `identified` boolean
  - `authenticated` boolean
  - `created` integer
  - `modified` integer
  - `id` string
  - `persisted` boolean
  - `persistLast` boolean
  - `pushEnabled` boolean
  - `tlsOnly` boolean
  - `exposeTimeserial` boolean
  - `mutableMessages` boolean
  - `populateChannelRegistry` boolean
  - `batchingEnabled` boolean, nullable
  - `batchingInterval` integer, nullable
  - `conflationEnabled` boolean, nullable
  - `conflationInterval` integer, nullable
  - `conflationKey` string, nullable

## Other responses

- `400` — Bad request
- `401` — Authentication failed
- `404` — Not found
- `500` — Internal server error
- `504` — Gateway timeout

---

[API](https://skmtc.net/ably/apis/api-v1.md) · [All operations](https://skmtc.net/ably/apis/api-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ably/api-v1/revisions/2b049ae2733f/schema)
