{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/adobe/main/json-schema/adobe-add-watermark-internal-schema.json",
  "title": "Internal",
  "description": "Params for Watermark Operation",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-pdf-watermark-api-openapi.yml#/components/schemas/AddWatermarkInternal",
  "type": "object",
  "required": [
    "inputDocumentAssetID",
    "watermarkDocumentAssetID"
  ],
  "properties": {
    "inputDocumentAssetID": {
      "description": "A file assetID of a PDF document on which watermark has to be applied. For more details <a href = 'https://developer.adobe.com/document-services/docs/apis/#tag/Assets'> click here </a>.",
      "type": "string"
    },
    "watermarkDocumentAssetID": {
      "description": "A file assetID of a PDF document whose first page will be used as watermark. The output generated will retain the content and watermark of the first page. For more details <a href = 'https://developer.adobe.com/document-services/docs/apis/#tag/Assets'> click here </a>.",
      "type": "string"
    },
    "pageRanges": {
      "$ref": "#/$defs/pageRangesWatermark"
    },
    "appearance": {
      "$ref": "#/$defs/watermarkappearance"
    },
    "notifiers": {
      "$ref": "#/$defs/notifiers"
    }
  },
  "additionalProperties": false,
  "$defs": {
    "notifiers": {
      "description": "Specifies the notifiers to be invoked on the completion of job. To know more about notifiers, please see the <a href=\"https://developer.adobe.com/document-services/docs/overview/pdf-services-api/howtos/webhook-notification/\">documentation</a>.",
      "type": "array",
      "items": {
        "properties": {
          "type": {
            "description": "Specifies the notifier type. Currently supported value is \"CALLBACK\" only.",
            "type": "string"
          },
          "data": {
            "description": "Specifies the data needed to invoke the notifier.",
            "type": "object"
          }
        },
        "required": [
          "type",
          "data"
        ]
      }
    },
    "pageRangesWatermark": {
      "title": "pageRanges",
      "description": "Specifies the page ranges on which watermark has to be applied in the input PDF file.",
      "type": "array",
      "items": {
        "properties": {
          "start": {
            "description": "Start page of this page range. Page numbers are indexed from 1 to N.",
            "type": "number"
          },
          "end": {
            "description": "End page of this page range. Page numbers are indexed from 1 to N.",
            "type": "number"
          }
        }
      }
    },
    "watermarkappearance": {
      "title": "appearance",
      "type": "object",
      "description": "Specifies the appearance parameters for watermark.",
      "properties": {
        "appearOnForeground": {
          "description": "Placement of watermark on the page. Watermark will be either foreground or background on the page. Default is foreground.",
          "type": "boolean",
          "default": true
        },
        "opacity": {
          "description": "Percentage value specifying watermark opacity. Specified as an Integer value from 0 to 100.",
          "type": "number",
          "default": 100
        }
      }
    }
  }
}