URI
PUT /v1/repositories/{repository_uuid}/template_status
表1 路径参数 | 参数 | 是否必选 | 参数类型 | 描述 |
| repository_uuid | 是 | String | 仓库id |
请求参数
表3 请求Body参数 | 参数 | 是否必选 | 参数类型 | 描述 |
| templateType | 是 | String | 参数解释: 模板类型 取值范围: |
| codeTitle | 否 | String | 代码模板名称 |
| creatorName | 否 | String | 创建者名称 |
| codeDescription | 否 | String | 代码模板描述 |
| languages | 否 | Array of strings | 模板语言 |
| plateform | 否 | Array of strings | 模板平台 |
| entertype | 否 | Array of strings | 参数解释: 模板标签 取值范围: 不涉及。 |
响应参数
状态码: 200
表4 响应Body参数 | 参数 | 参数类型 | 描述 |
| error | Error object | 响应错误 |
| result | String | 响应结果 |
| status | String | 参数解释: 响应状态 取值范围: - success,表示接口调用成功。
- failed,表示接口调用失败。
|
表5 Error | 参数 | 参数类型 | 描述 |
| code | String | 错误码 |
| message | String | 错误信息 |
请求示例
PUT https://{endpoint}/v1/repositories/{repository_uuid}/template_status
{
"templateType": "SHARE",
"codeTitle": "exampleTitle",
"creatorName": "exampleName",
"codeDescription": "exampleDescription",
"languages": ['Java'],
"plateform": ['Console'],
"entertype": ['AI']
} 响应示例
状态码: 200
OK
{
"result" : null,
"error" : null,
"status" : "success"
}