阅读72 返回首页    go 阿里云


更新水印模版__水印模板接口_API使用手册_媒体转码-阿里云

描述

更新指定水印模板的名称、配置。如果有状态为“已提交”的作业引用该水印模板,则相应的水印模板不能被更新。

请求参数

名称 类型 必填项 描述
Action String 操作接口名,系统规定参数,取值:UpdateWaterMarkTemplate
WaterMarkTemplateId String 水印模板ID
Name String 模板名称,最大长度128字节
Config String 水印模板配置,JSON对象,见附录 参数WaterMark Config详情,例如:
{
"Width":"10px",
"Height":"30px",
"Dx":"10px",
"Dy":"5px",
"Type":"Image"
}

返回参数

名称 类型 描述
WaterMarkTemplate AliyunWaterMarkTemplate 水印模板

示例

请求示例

    https://mts.aliyuncs.com/?WaterMarkTemplateId=88c6ca184c0e47098a5b665e2a126797&Name=example-watermark&Config=%7B%22Width%22%3A%20%2210px%22%2C%22Height%22%3A%20%2230px%22%2C%22Dx%22%3A%20%2210px%22%2C%22Dy%22%3A%225px%22%2C%22ReferencePos%22%3A%0A%22TopRight%22%2C%22Type%22%3A%22Image%22%7D%0A&Action=UpdateWaterMarkTemplate&<公共参数>

返回示例

XML:

    <UpdateWaterMarkTemplateResponse>
    <RequestId>25818875-5F78-4A13-BEF6-D7393642CA58</RequestId>
    <WaterMarkTemplate>
        <Id>88c6ca184c0e47098a5b665e2a126797</Id>
        <Name>example-watermark</Name>
        <Width>10</Width>
        <Height>30</Height>
        <Dx>10</Dx>
        <Dy>5</Dy>
        <ReferPos>TopRight</ReferPos>
        <Type>Image</Type>
        <State>Normal</State>
    </WaterMarkTemplate>
    </UpdateWaterMarkTemplateResponse>

Json:

    {
     "RequestId":"25818875-5F78-4A13-BEF6-D7393642CA58",
     "WaterMarkTemplate": {
            "Id": "88c6ca184c0e47098a5b665e2a126797",
            "Name": "example-watermark",
            "Width": "10",
            "Height": "30",
            "Dx": "10",
            "Dy": "5",
            "ReferPos": "TopRight",
            "Type": "Image",
            "State": "Normal"
          }
    }

最后更新:2016-11-24 11:23:48

  上一篇:go 新增水印模版__水印模板接口_API使用手册_媒体转码-阿里云
  下一篇:go 查询水印模板__水印模板接口_API使用手册_媒体转码-阿里云