{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-content-fragment-publish-request-schema.json",
  "title": "ContentFragmentPublishRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-aem-sites-openapi.yml#/components/schemas/ContentFragmentPublishRequest",
  "type": "object",
  "properties": {
    "ids": {
      "type": "array",
      "description": "The list of content fragment IDs.",
      "items": {
        "$ref": "#/$defs/UUID"
      },
      "uniqueItems": true,
      "maxItems": 50
    },
    "paths": {
      "type": "array",
      "description": "The list of content fragment paths.",
      "items": {
        "$ref": "#/$defs/Path"
      },
      "uniqueItems": true,
      "maxItems": 50
    },
    "agentId": {
      "type": "string",
      "description": "The agent id used for publishing the content fragments.",
      "default": "publish"
    },
    "filterReferencesByStatus": {
      "type": "array",
      "description": "Provides the option to select which references should be included in the publication based on their status.\nWhen a status is selected (e.g., `DRAFT`), references with that status will be published along with the content fragment.\nMultiple statuses can be selected to include references with any of those statuses.\nIf no option is selected, no references will be published regardless of their status.\n",
      "items": {
        "enum": [
          "DRAFT",
          "UNPUBLISHED",
          "MODIFIED"
        ]
      },
      "maxItems": 3
    },
    "workflowModelId": {
      "type": "string",
      "default": "/etc/workflow/models/scheduled_activation_with_references",
      "description": "The workflow model id used for initiating the workflow instance to handle the publication. \nAEM provides the designated model `/etc/workflow/models/scheduled_activation_with_references` for publishing \ncontent fragments including their references.\n"
    },
    "workflowTitle": {
      "type": "string",
      "description": "A freely defined non-empty string used to identify the workflow when it executes."
    },
    "scheduledTime": {
      "type": "integer",
      "format": "int64",
      "description": "The scheduled time as an epoch timestamp."
    },
    "preValidationSeconds": {
      "type": "integer",
      "format": "int32",
      "description": "If this property is provided, a validation of all the fragments contained in the payload together with all their \nreferences will be attempted. \nThis validation only applies when `filterReferencesByStatus` is populated, \nas it validates the complete references tree based on the selected reference statuses. Without `filterReferencesByStatus`,\nthere are no references to validate, making this property ineffective.\nThe cutoff limit for this validation will be the provided value in seconds. \nThe fragments from the payload which will be found invalid in the allocated interval will be removed from the \npublish operation and their status will be returned as such in the response.\nIn case there are no valid fragments in the payload after the validation, the workflow will not be started.\n",
      "minimum": 1,
      "maximum": 5
    }
  },
  "$defs": {
    "Path": {
      "type": "string",
      "pattern": "^[^\\\\\\[\\]|*]*$",
      "description": "A valid path to a resource"
    },
    "UUID": {
      "description": "Resource unique identifier",
      "type": "string",
      "format": "uuid"
    }
  }
}