All Products
Search
Document Center

Update the namespace information

Last Updated: May 28, 2018

Description

Update the basic information of the namespace.

Request information

Request line

  1. POST /namespace/{Namespace} HTTP/1.1

Request line parameters (URI parameters)

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

Special request header

None.

Request body

  1. {
  2. "Namespace": {
  3. "AutoCreate": Boolean,
  4. "DefaultVisibility": String
  5. }
  6. }

Request body explanation

Name Type Required Description
AutoCreate Boolean Yes Whether to create a repository automatically.
DefaultVisibility String Yes The default repository property.

Response information

Response line

  1. HTTP/1.1 200 OK

Special response header

None.

Response body

  1. {
  2. "data": {},
  3. "requestId": "string"
  4. }

Example

Request example

  1. POST /namespace/testNamespaceName HTTP/1.1
  2. <Common request header>
  3. {
  4. "Namespace": {
  5. "AutoCreate": false,
  6. "DefaultVisibility": "PUBLIC"
  7. }
  8. }

Response example

  1. HTTP/1.1 200 OK
  2. <Common request header>
  3. {
  4. "data": {},
  5. "requestId": "AL103117-2140-4A69-AC1A-BE69N040D01A"
  6. }