编辑云屏系统的标签。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求头
该接口使用公共请求头,无特殊请求头。请参见公共请求参数文档。
请求语法
POST /UpdateLabel HTTP/1.1
请求参数
名称 | 类型 | 位置 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|---|
Country | String | FormData | 否 | CN | 国家字段,CN:中国,SG:新加坡 |
LabelId | String | FormData | 是 | abcdef123 | 标签id |
Title | String | FormData | 是 | title | 标签名称 |
Label | String | FormData | 否 | test | 标签值 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
Success | Boolean | true | 成功标志 |
Message | String | success | 说明 |
Code | String | success | 状态码 |
HttpStatusCode | Integer | 200 | http状态码 |
RequestId | String | A60C309D-5631-13BB-8DA2-A9B3C5184FD9 | 请求ID |
示例
请求示例
POST /UpdateLabel HTTP/1.1
Host:cd.aliyuncs.com
Content-Type:application/json
Country=CN&LabelId=abcdef123&Title=title&Label=test
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<UpdateLabelResponse>
<Success>true</Success>
<Message>success</Message>
<Code>success</Code>
<HttpStatusCode>200</HttpStatusCode>
<RequestId>A60C309D-5631-13BB-8DA2-A9B3C5184FD9</RequestId>
</UpdateLabelResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"Success" : true,
"Message" : "success",
"Code" : "success",
"HttpStatusCode" : 200,
"RequestId" : "A60C309D-5631-13BB-8DA2-A9B3C5184FD9"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | Params.Illegal | The request parameters are invalid. | 请求入参非法 |
400 | Label.Missing | The specified label is Missing. | 指定的标签不存在 |
400 | Label.Update.Not.Allowed | Update This Label is not allowed. | 该标签不允许操作. |
401 | Unauthorized | You are not authorized to perform this operation. | 未授权的请求 |
403 | Forbidden | This request is prohibited. | 请求被禁止 |
503 | Service.Unavailable | The service is unavailable. Please try again later. | 服务当前暂不可用,请稍后重试 |
访问错误中心查看更多错误码。