Updates the basic information about an image repository, including the repository type, summary, and description.
Request information
Request line
POST /repos/[RepoNamespace]/[RepoName] HTTP/1.1
Request line parameters
Parameter | Type | Required | Description |
---|---|---|---|
RepoNamespace | String | Yes | The name of the namespace. |
RepoName | String | Yes | The name of the repository. |
Operation-specific request headers
None.
Request body
{
"Repo": {
"Summary": "String",
"Detail": "String",
"RepoType": "String"
}
}
Request body parameters
Parameter | Type | Required | Description |
---|---|---|---|
Summary | String | Yes | The summary of the repository. |
Detail | String | No | The detailed information about the repository. The Markdown syntax is supported. |
RepoType | String | Yes | The type of repository. Valid values: PRIVATE and PUBLIC. |
Response information
Response line
HTTP/1.1 200 OK
Operation-specific response headers
None.
Response body
{
"data": {},
"requestId": "String"
}
Examples
Sample requests
POST /repos/[RepoNamespace]/[RepoName] HTTP/1.1
<Common request headers>
{
"Repo": {
"Summary": "Test repository",
"Detail": "This is a test repository",
"RepoType": "PRIVATE"
}
}
Sample responses
HTTP/1.1 200 OK
<Common response headers>
{
"data": {},
"requestId": "F3103017-5928-4A69-AC1A-BE69A840D01A"
}