All Products
Search
Document Center

Update the repository information

Last Updated: May 28, 2018

Description

Update the basic information of the repository, including repository properties, summary and description information.

Request information

Request line

  1. POST /repos/{RepoNamespace}/{RepoName} HTTP/1.1

Request line parameters (URI parameters)

Name Type Required Description
RepoNamespace String Yes The name of the namespace that the repository belongs to.
RepoName String Yes The name of the repository.

Special request header

None.

Request body

  1. {
  2. "Repo": {
  3. "Summary": "String",
  4. "Detail": "String",
  5. "RepoType": "String"
  6. }
  7. }

Request body explanation

Name Type Required Description
Summary String Yes The summary information.
Detail String No The detailed information. Markdown syntax is supported.
RepoType String Yes The repository properties (values: private, public).

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 /repos/testNamespaceName/testRepoName HTTP/1.1
  2. <Common request header>
  3. {
  4. "Repo": {
  5. "Summary": "Test repository",
  6. "Detail": "This is a test repository",
  7. "RepoType": "PRIVATE"
  8. }
  9. }

Response example

  1. HTTP/1.1 200 OK
  2. <Common response header>
  3. {
  4. "data": {},
  5. "requestId": "F3103017-5928-4A69-AC1A-BE69A840D01A"
  6. }