The UpdateWaterMarkTemplate API updates the name and configurations of a specified watermark template. If the watermark template to be updated is used by “Submitted” tasks, the template cannot be updated.

Request parameters

Parameters Type Required or not Description
Action String Yes API of the action, system required parameter. Value: UpdateWaterMarkTemplate
WaterMarkTemplateId String Yes Watermark template ID.
Name String Yes Template name.

Up to 128 bytes.

Config String Yes Watermark template configurations.
  • JSON object. For details, see “5. WaterMarkConfig” in Parameters” of “Appendix.”
  • Example: {"Width":"10px","Height":"30px","Dx":"10px","Dy":"5px","Type":"Image","Timeline":{"Start":"0", "Duration":"10"}}

Response parameters

Parameter Type Description
WaterMarkTemplate AliyunWaterMarkTemplate Watermark template


Request example<Public parameter>

Response example

     "WaterMarkTemplate": {
            "Id": "88c6ca184c0e47098a5b665e2a126797",
            "Name": "example-watermark",
            "Width": "10",
            "Height": "30",
            "Dx": "10",
            "Dy": "5",
            "ReferPos": "TopRight",
            "Type": "Image",
            "State": "Normal"