---
title: "PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}"
method: PATCH
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}"
tags: ["EHNamespaces"]
---

# PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}

`PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.EventHub/namespaces/{namespaceName}`

Creates or updates a namespace. Once created, this namespace's resource manifest is immutable. This operation is idempotent.

## Path parameters

- `namespaceName` string, required

## Parameters

- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ApiVersionParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/SubscriptionIdParameter` — unresolved $ref
- `../../../../../../common-types/resource-management/v3/types.json#/components/parameters/ResourceGroupNameParameter` — unresolved $ref

## Request body

- EHNamespace — unresolved $ref

## Response `200`

Azure operation completed successfully.

- EHNamespace — unresolved $ref

## Other responses

- `201` — The request has succeeded and a new resource has been created as a result.
- `202` — The request has been accepted for processing, but processing has not yet completed.
- `default` — An unexpected error response.

## Changes

- **2026-05-21** (2026-01-01) `945b239a2b00` — 3 warning, 1 info
  - the optional response header `Azure-AsyncOperation` removed for the status `202`
  - the optional response header `Location` removed for the status `202`
  - the optional response header `Retry-After` removed for the status `202`
  - added the success response with the status `201`
- **2026-04-27** (2026-01-01) `52de2a16ac18` — 1 breaking
  - removed the success response with the status `201`

[Change history](https://skmtc.dev/azure/apis/eventhubmanagementclient/changes/subscriptions/:subscriptionId/resourceGroups/:resourceGroupName/providers/Microsoft.EventHub/namespaces/:namespaceName/patch.md)

---

[API](https://skmtc.dev/azure/apis/eventhubmanagementclient.md) · [All operations](https://skmtc.dev/azure/apis/eventhubmanagementclient/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/azure/eventhubmanagementclient/revisions/122d63fca4a7/schema)
