---
id: namespace-update
title: "Update a namespace"
description: "Updates information for a namespace."
sidebar_label: "Update a namespace"
hide_title: true
hide_table_of_contents: true
api: eJzdWN1u47YSfpUBb9oGiuPdTXqhiwLetEXTn22wm0ULJEEwJscyG4nUklQSr6G73p/XOX2dvsB5hYMhZUv+aTYt+gM0F4osDuf3m+EMl0KRl07XQVsjcvG2VhjIgzYz6yrkrzCzDhAMVuRrlDQSmbA1ubh4pkQu1kt5E7eLTAQsvMgvxavVkrjOhCfZOB0WIr9ciimhIzdpwlzkl9ftdSZqdFhRIOcjgWZ9agxzkUUJIhdaiUx4OacKRb4UYVHHryZQQU60mXD0rtGOlMiDayjbMu5iTnD2OdgZhDltGkQPWNUlifz5i+MTVoY5kQ8vrVqwKGlNIBP4Feu61DJaf/STZ8bLXZ3s9CeSQWSiduyroMnzarJj2YsTp25RBwvfWFPAS12W2hTsvsTFB5d+V/jwLZmCffXpeJ9ZzHjXMHhNtSNPJnhAUFSjCxWZkEEgrDKwDkpbaIklNEYHuNdhrg0sbOPAugKNfh/tHF2ZKwOfwa8///K///4HDg5e2UD5wQGcztEU2hSbcj/ySZ+DA2XJg7EBJBNSJPNlUxwcZHBlAD0oy9u9BWmbUsHUEd6CtMaQZMk+6gT0oH1gwoHzPaBR4MndaUl+dGUYAD5gaPwgEGsXkmkqRiTKoO8Yotp0r9eD8K+W2zYTQYf4aW3Xzb3TgdfaCDVfW+NTXJ+Px/xvNy7rRIF79OAbKcn7WVMy5v4wpnqUX6aUiLDKBHuWk3MQuZu47qi2XgfrFje1s3dakdv+SjP9INb+ywRKaRsTeP/1Noq12pN926icgF/4QNXhvVbE8HrXxOzjavJo+rXZOk3+pDQYCtibcI8CZ1dKot0v5/ehrItZvtw27XElJga6+Gx4l3l9wL9CRvMPb60pDqe9+YNwfzi0m3W02wphjgHsvfEQ5tr/hvxnz1+0magooMKwF9y7olbUUFpUpOBOY/9NYsDSFjA5P9sQtBS3tBC5uMOyiY7ehHBcfEqsb2mxMnQlc8TsEt8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name: "patch api-method"
info_path: docs/api/namespace
custom_edit_url: null
---

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Update a namespace"}
>
</Heading>

<MethodEndpoint
  method={"patch"}
  path={"/namespace/{id}"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Updates information for a namespace.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
  children={"Request"}
>
</Heading>

<ParamsDetails
  parameters={[{"in":"path","name":"id","schema":{"type":"integer"},"required":true,"description":"The ID of the namespace.","example":2345}]}
>
  
</ParamsDetails>

<RequestSchema
  title={"Body"}
  body={{"content":{"application/json":{"schema":{"type":"object","properties":{"name":{"example":"Crypto Kong Billing","type":"string","maxLength":60,"description":"The name of the namespace. Represents a department, team, or logical unit within your organization.\n\n > ℹ️ **Note:** Changing the namespace's name **does not change the slug**, \n as doing so could break connections with existing applications and services.\n"},"status":{"type":"string","enum":["active","inactive"],"example":"active"}},"title":"namespace_write"}}}}}
>
  
</RequestSchema>

<StatusCodes
  id={undefined}
  label={undefined}
  responses={{"200":{"description":"The operation was successful.","content":{"application/json":{"schema":{"type":"object","required":["id","name","slug","organization_id","repository_provider","repository_prefix","status","account_id"],"properties":{"id":{"type":"integer","description":"A system-wide unique ID for the namespace.","example":234},"name":{"type":"string","maxLength":60,"description":"The name of the namespace.","example":"Crypto Kong Billing"},"status":{"type":"string","description":"The status of the namespace.","enum":["active","inactive"],"example":"active"},"slug":{"maxLength":60,"type":"string","description":"An account-wide unique slug for the namespace.","example":"crypto-kong-billing"},"account_id":{"type":"integer","description":"The ID of the account that owns this namespace.","example":123},"metadata":{"type":"object","description":"The metadata loaded via metadata catalog API.","example":{"key":"value"},"properties":{"key":{"type":"string","description":"The key of the metadata."},"value":{"type":"string","description":"The value of the metadata."},"additional_properties":{"type":"object","description":"Additional properties of the metadata.","properties":{"schemas":{"type":"array","description":"The schemas of the metadata, in JSON format."},"tags":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"value":{"type":"string"}}}}}}},"title":"MetadataComponent"}},"title":"namespace"}}}},"4XX":{"description":"Client error responses due to invalid input or missing parameters.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific client error (e.g., 400, 401, 403, 404).","example":400},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"bad_request"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Bad Request\", \"Unauthorized\").","example":"Bad Request"},"message":{"type":"string","description":"Additional details about the error.","example":"The request was malformed or contained invalid parameters."}}}}}},"5XX":{"description":"Server error responses indicating an issue on the API side.","content":{"application/json":{"schema":{"type":"object","required":["statusCode","error","message"],"properties":{"statusCode":{"type":"integer","description":"HTTP status code representing the specific server error (e.g., 500, 502, 503).","example":500},"code":{"type":"string","description":"A machine-readable error code that categorizes the server failure.","example":"internal_server_error"},"error":{"type":"string","description":"A brief, human-readable description of the error type (e.g., \"Internal Server Error\", \"Service Unavailable\").","example":"Internal Server Error"},"message":{"type":"string","description":"Additional details about the error.","example":"An unexpected error occurred. Please try again later."}}}}}}}}
>
  
</StatusCodes>


      