{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-contract-create-public-page-request-payload-schema.json",
  "title": "Contract.CreatePublicPageRequestPayload",
  "description": "Settings for the public page. Every field is optional; omitted fields use their documented default.\n",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-collections-openapi.yml#/components/schemas/Contract.CreatePublicPageRequestPayload",
  "type": "object",
  "properties": {
    "name": {
      "type": [
        "string",
        "null"
      ],
      "description": "Optional display name for the public page."
    },
    "available_from": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the page becomes active. If omitted or null, the page is active immediately."
    },
    "expires_at": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time",
      "description": "When the page expires. If omitted or null, the page never expires."
    },
    "show_download_original_option": {
      "type": [
        "boolean",
        "null"
      ],
      "description": "Whether viewers can download the original asset. Omit to use the account default set by an administrator in the [Media Library Preferences](dam_admin_media_library_options#download_options_for_external_sharing).\n"
    },
    "download_transformations": {
      "type": [
        "array",
        "null"
      ],
      "maxItems": 200,
      "items": {
        "$ref": "#/$defs/Entity.DownloadTransformationInput"
      },
      "description": "Named transformations that viewers of the public page can apply when downloading assets, referenced by name (see the Admin API's [Get transformations](admin_api#get_transformations) endpoint to list the named transformations in your product environment). By default, each name must already be set as a transformation template; set `create_download_transformations` to `true` to set any listed name that isn't one yet automatically. Omit or pass null to leave the page without download transformations. At most 200 entries.\n"
    },
    "create_download_transformations": {
      "type": [
        "boolean",
        "null"
      ],
      "default": false,
      "description": "When `true`, any name in `download_transformations` that isn't yet set as a transformation template is set as one automatically. It then appears in the Console's templates list and counts toward your product environment's template limit. When `false` or omitted, the request instead fails with `download_transformation_not_available` if any listed name isn't yet set as a transformation template, and nothing is changed.\n"
    }
  },
  "$defs": {
    "Entity.DownloadTransformationInput": {
      "type": "object",
      "required": [
        "name"
      ],
      "description": "A named transformation to offer for download on a public page.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of an existing named transformation in this product environment."
        },
        "types": {
          "type": [
            "array",
            "null"
          ],
          "minItems": 1,
          "items": {
            "type": "string",
            "enum": [
              "image",
              "video"
            ]
          },
          "description": "Asset types the transformation is offered for. Restrict this to the types the transformation actually produces correct results for (for example, a duration/trim transformation only makes sense for video), to avoid download errors for the other type. This is a property of the transformation template itself, shared by every public page in the product environment, not just this one: it can only be set the first time any public page offers this name for download. Omit `types` on that first request to make it available for both `image` and `video`. If the name is already available for download (set by an earlier request on this or another public page), omit `types` to keep its existing setting, or send its exact current list; sending a different list fails with `download_transformation_types_conflict`. An empty list is rejected.\n"
        }
      }
    }
  }
}