POST api/WatermarkTemplate/Add
Request Information
URI Parameters
None.
Body Parameters
WatermarkSetting| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | integer |
None. |
|
| TemplateName | string |
None. |
|
| FontFamily | string |
None. |
|
| FontSize | decimal number |
None. |
|
| Bold | boolean |
None. |
|
| Italic | boolean |
None. |
|
| Strikeout | boolean |
None. |
|
| Underline | boolean |
None. |
|
| Position | WatermarkPosition |
None. |
|
| Opacity | decimal number |
None. |
|
| RotateFlip | RotateFlipType |
None. |
|
| ScaleRatio | decimal number |
None. |
|
| FontColor | string |
None. |
|
| DrawText | string |
None. |
|
| DrawImageFile | string |
None. |
|
| IsDrawImage | boolean |
None. |
|
| Left | integer |
None. |
|
| Right | integer |
None. |
|
| Top | integer |
None. |
|
| Bottom | integer |
None. |
|
| CreateTime | date |
None. |
|
| ReproductionWidth | integer |
None. |
|
| ReproductionHeight | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": 1,
"TemplateName": "sample string 2",
"FontFamily": "sample string 3",
"FontSize": 4.1,
"Bold": true,
"Italic": true,
"Strikeout": true,
"Underline": true,
"Position": "Absolute",
"Opacity": 9.1,
"RotateFlip": "RotateNoneFlipNone",
"ScaleRatio": 10.1,
"FontColor": "sample string 11",
"DrawText": "sample string 12",
"DrawImageFile": "sample string 13",
"IsDrawImage": true,
"Left": 15,
"Right": 16,
"Top": 17,
"Bottom": 18,
"CreateTime": "2025-10-25 06:59:35",
"ReproductionWidth": 20,
"ReproductionHeight": 21
}
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ResponseOfBoolean| Name | Description | Type | Additional information |
|---|---|---|---|
| Data | boolean |
None. |
|
| IsSuccess | boolean |
None. |
|
| ErrorCode | string |
None. |
|
| ErrorMessage | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Data": true,
"IsSuccess": true,
"ErrorCode": "sample string 3",
"ErrorMessage": "sample string 4"
}