- What's New
- Function Overview
- Service Overview
- Getting Started
-
User Guide
- Overview
- Permissions Management
- Basics of Docker
-
Image Management
- Pushing an Image Through a Container Engine Client
- Obtaining a Long-Term Valid Docker Login Command
- Obtaining a Long-Term Valid containerd Pull/Push Command
- Uploading an Image Through the SWR Console
- Pulling an Image
- Setting Image Attributes
- Sharing Private Images
- Adding a Trigger
- Adding an Image Retention Policy
- Image Center
- Organization Management
- User Permissions
- Auditing
- Best Practices
-
API Reference
- Before You Start
- API Overview
- Calling APIs
-
API
- Organization Management
- Image Repository Management
- Image Tag Management
- Shared Account Management
- API Versions
- Organization Permission Management
- Image Permission Management
- Automatic Image Synchronization Task Management
- Trigger Management
- Image Retention Policy Management
- Temporary Login Command
- Quota Management
- Example Applications
- Appendixes
- Change History
- FAQs
- Videos
- SDK Reference
Updating the Brief Information on an Image Repository
Function
Update the brief information on an image repository in an organization, including the category, is_public, and description.
URI
PATCH /v2/manage/namespaces/{namespace}/repos/{repository}
For details about parameters, see Table 1.
Request
- Request parameters
Table 2 Request body parameter description Parameter
Mandatory
Type
Description
category
No
String
Repository type.
The value can be app_server, linux, framework_app, database, lang, other, windows or arm.
description
No
String
Repository description.
is_public
Yes
Boolean
Whether the repository is a public repository. The value can be either true or false.
- Example request
PATCH https://{Endpoint}/v2/manage/namespaces/group/repos/busybox
Body:
-F "category=linux" \ -F "description=this is a busybox repository" \ -F "is_public=false"
Or
{ "category": "linux", "description": "this is a busybox repository", "is_public": false }
NOTE:
The form format will no longer be supported soon. You are advised to use the body in the JSON format to call the API.
Status Code
Status Code |
Description |
---|---|
201 |
The brief information about the image repository is successfully updated. |
400 |
Request error. Error information is returned. |
401 |
Authentication failed. |
404 |
The repository does not exist. |
500 |
Internal error. Error information is returned. |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.