{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-generate-variation-request-schema.json",
  "title": "GenerateVariationRequest",
  "description": "Generate variation of a tagged document. One single variation can be generated at a time.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-express-openapi.yml#/components/schemas/GenerateVariationRequest",
  "type": "object",
  "properties": {
    "id": {
      "description": "The identifier of the tagged document.",
      "type": "string"
    },
    "variationDetails": {
      "$ref": "#/$defs/VariationDetails",
      "description": "Specify the details required to generate the requested variation."
    }
  },
  "required": [
    "id",
    "variationDetails"
  ],
  "$defs": {
    "VariationDetails": {
      "description": "Details of how the variation should be generated.",
      "type": "object",
      "properties": {
        "tagMappings": {
          "description": "A key-value pair where each key represents the unique identifier of a tag element, and the value represents the corresponding element's content. The value type varies by element type: for text elements, it is a plain string; for image or video elements, it is a pre-signed URL pointing to the image or video resource. Allowed domains for pre-signed URLs are AWS, Dropbox and Azure (windows.net). The key is obtained from the response of `/tagged-documents/{documentId}` in `documentPages` -\\> `taggedElements` -\\> `name`.",
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "pages": {
          "description": "A comma-separated string of page numbers for which the variation request is made. For example, \"1,2,3\".\nPage ranges can also be specified. For example, \"1-3\" includes pages 1, 2, and 3.\nAnother example is \"1,3-5\", which includes pages 1, 3, 4, and 5.\n\"1-\" can be used to specify all pages, while \"5-\" indicates page 5 to the last page.\nIf not provided, all pages are considered by default. Page numbers start from 1.",
          "type": "string"
        },
        "preferredDocumentName": {
          "description": "The preferred name for the generated document. If you do not provide a name or the name is already in use, the system automatically generates a unique name.",
          "type": "string"
        },
        "projectId": {
          "description": "The identifier of the project where the variation is to be stored.",
          "type": "string"
        }
      },
      "required": [
        "tagMappings"
      ]
    }
  }
}