Setting a Repository to Public or Private (Deprecated)
Function
Set a repository to public or private.
URI
PUT /v1/repositories/{repository_uuid}/template_status
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
repository_uuid |
Yes |
String |
Repository ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. The user token can be obtained by calling the corresponding IAM API. The value of X-Subject-Token in the response header is the user token. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
templateType |
Yes |
String |
Explanation: Template type Range:
|
|
codeTitle |
No |
String |
Code template name |
|
creatorName |
No |
String |
Creator name |
|
codeDescription |
No |
String |
Code template description |
|
languages |
No |
Array of strings |
Template Language |
|
plateform |
No |
Array of strings |
Template platform |
|
entertype |
No |
Array of strings |
Explanation: Template tag. Range: None |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
error |
Error object |
Response error |
|
result |
String |
Response result |
|
status |
String |
Explanation: Response status Range:
|
Request Example
PUT https://{endpoint}/v1/repositories/{repository_uuid}/template_status
{
"templateType": "SHARE",
"codeTitle": "exampleTitle",
"creatorName": "exampleName",
"codeDescription": "exampleDescription",
"languages": ['Java'],
"plateform": ['Console'],
"entertype": ['AI']
}
Response Example
Status code: 200
OK
{
"result" : null,
"error" : null,
"status" : "success"
}
Status Codes
|
Status Codes |
Description |
|---|---|
|
200 |
OK |
Error Codes
See error codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot