Updates the basic information about a namespace.

Request information

Request line

POST /namespace/[Namespace] HTTP/1.1

Request line parameters

Parameter Type Required Description
Namespace String Yes The name of the namespace.

Operation-specific request headers

None.

Request body

{
    "Namespace": {
        "AutoCreate": Boolean,
        "DefaultVisibility": String
    }
}

Request body parameters

Parameter Type Required Description
AutoCreate Boolean Yes Specifies whether to automatically create a repository.
DefaultVisibility String Yes The default type of repository.

Response information

Response line

HTTP/1.1 200 OK

Operation-specific response headers

None.

Response body

{
    "data": {},
    "requestId": "string"
}

Examples

Sample requests

POST /namespace/[Namespace] HTTP/1.1
<Common request headers>

{
    "Namespace": {
        "AutoCreate": false,
        "DefaultVisibility": "PUBLIC"
    }
}

Sample responses

HTTP/1.1 200 OK
<Common response headers>

{
  "data": {},
    "requestId": "AL103117-2140-4A69-AC1A-BE69N040D01A"
}