更新集合对象。

目前只支持更新名称(name)、注释(comment)。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String UpdateMetaCollection

系统规定参数。取值:UpdateMetaCollection

QualifiedName String album.396397

集合的唯一标识

Name String myCollectionName

名称

Comment String this is a comment

集合备注

长度限制:1-64字符

更新的时候 Name 、Comment 二者至少要提供一个。

返回数据

名称 类型 示例值 描述
RequestId String 0000-ABCD-E****

请求的ID。用于定位日志,排查问题。

Status Boolean true

更新结果:

true: 成功

false: 失败

HttpStatusCode Integer 200

HTTP状态码。

ErrorMessage String The specified product does not exist.

错误信息。

ErrorCode String 9999

错误码。

Success Boolean true

调用是否成功。取值如下:

  • true:调用成功。
  • false:调用失败。

示例

请求示例

http(s)://[Endpoint]/?Action=UpdateMetaCollection
&QualifiedName=album.396397
&Name=myCollectionName
&Comment=this is a comment
&公共请求参数

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<UpdateMetaCollectionResponse>
    <RequestId>0000-ABCD-E****</RequestId>
    <Status>true</Status>
    <HttpStatusCode>200</HttpStatusCode>
    <ErrorMessage>The specified product does not exist.</ErrorMessage>
    <ErrorCode>9999</ErrorCode>
    <Success>true</Success>
</UpdateMetaCollectionResponse>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "0000-ABCD-E****",
  "Status" : true,
  "HttpStatusCode" : 200,
  "ErrorMessage" : "The specified product does not exist.",
  "ErrorCode" : "9999",
  "Success" : true
}

错误码

访问错误中心查看更多错误码。