patch https://{app}.{filespin}.{io}/api/v1/user/settings/update?update_key=watermark
STEP 2: Update Watermark options and confirm new watermark file
Watermark Placement and Scaling and optionally the newly uploaded file from STEP 1 can be updated as below.
REQUEST JSON
{
"key": "watermark",
"value": {
"watermarkFileKey": watermarkFileKey,
"watermarkPlacement": watermarkPlacement,
"watermarkScale": watermarkScale
}
}REQUEST PARAMETERS
| Parameters | Type | Description |
|---|---|---|
key | string | Set to watermark |
value.watermarkFileKey | string | (optional) If a watermark image was uploaded in STEP 1, provide the value returned by the upload API call here. |
value.watermarkPlacement | string | Can be center, top-left, top-right, bottom-left or bottom-right |
value.watermarkScale | float | Value between 0 and 1, like 0.1, 0.5, 0.9, etc. A value of 0.1 would place a watermark that is not larger than 10% in width and height of the target image |