{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/adobe/json-schema/adobe-create-artboard-request-schema.json",
  "title": "CreateArtboardRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/adobe-photoshop-v2-openapi.yml#/components/schemas/CreateArtboardRequest",
  "type": "object",
  "properties": {
    "artboardSpacing": {
      "type": "integer",
      "format": "int32",
      "description": "Horizontal spacing in pixels between each artboard. Defaults to 50. Optional."
    },
    "images": {
      "type": "array",
      "description": "List of input images for the artboard. Each image must have a source with an external file reference (URL, Creative Cloud file ID, or Creative Cloud path). Required.",
      "items": {
        "$ref": "#/$defs/ArtboardImageInput"
      },
      "maxItems": 25,
      "minItems": 1
    },
    "outputs": {
      "type": "array",
      "description": "List of output asset details. Each output specifies destination and output options. Maximum of 25 outputs allowed.",
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/JpegOutputWithScan"
          },
          {
            "$ref": "#/$defs/JsonOutput"
          },
          {
            "$ref": "#/$defs/PngOutput"
          },
          {
            "$ref": "#/$defs/PsdOutput"
          },
          {
            "$ref": "#/$defs/PsdcOutput"
          },
          {
            "$ref": "#/$defs/TiffOutput"
          }
        ]
      },
      "maxItems": 25,
      "minItems": 1
    }
  },
  "required": [
    "images",
    "outputs"
  ],
  "$defs": {
    "ArtboardImageInput": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the artboard. Optional. Defaults to rendition dimensions (e.g. \"1920 x 1080\").",
          "maxLength": 255,
          "minLength": 1
        },
        "source": {
          "$ref": "#/$defs/FileResourceInput",
          "description": "Source of the image. Must be an external file reference (URL, Creative Cloud file ID, or Creative Cloud path). Required.",
          "oneOf": [
            {
              "$ref": "#/$defs/UrlResourceInput"
            },
            {
              "$ref": "#/$defs/CreativeCloudResourceInput"
            },
            {
              "$ref": "#/$defs/CreativeCloudFileIdResourceInput"
            }
          ]
        }
      },
      "required": [
        "source"
      ]
    },
    "CreativeCloudDestination": {
      "allOf": [
        {
          "$ref": "#/$defs/Destination"
        },
        {
          "type": "object",
          "properties": {
            "creativeCloudPath": {
              "type": "string",
              "description": "Path to Creative Cloud storage. Required.",
              "minLength": 1
            },
            "creativeCloudProjectId": {
              "type": "string",
              "description": "The Creative Cloud project ID. Optional. Must be a valid URN starting with 'urn:aaid:sc:'. Example: urn:aaid:sc:US:a21c8629-413f-55d9-...",
              "pattern": "^urn:aaid:.*"
            }
          }
        }
      ],
      "required": [
        "creativeCloudPath"
      ]
    },
    "CreativeCloudFileIdResourceInput": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceInput"
        },
        {
          "type": "object",
          "properties": {
            "creativeCloudFileId": {
              "type": "string",
              "description": "The file ID of the asset in Creative Cloud. Required. Must start with 'urn:aaid' (case-insensitive).",
              "minLength": 1,
              "pattern": "^urn:aaid:.*"
            }
          }
        }
      ],
      "description": "Creative Cloud file ID resource input. References a resource via Creative Cloud file ID (URN).",
      "required": [
        "creativeCloudFileId"
      ]
    },
    "CreativeCloudResourceInput": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceInput"
        },
        {
          "type": "object",
          "properties": {
            "creativeCloudPath": {
              "type": "string",
              "description": "The path to the asset in Creative Cloud. Required.",
              "minLength": 1
            },
            "creativeCloudProjectId": {
              "type": "string",
              "description": "The Creative Cloud project ID. Optional. Must be a valid URN starting with 'urn:aaid:sc:'. Example: urn:aaid:sc:US:a21c8629-413f-55d9-...",
              "pattern": "^urn:aaid:.*"
            }
          }
        }
      ],
      "description": "Creative Cloud resource input. References a resource via Creative Cloud path.",
      "required": [
        "creativeCloudPath"
      ]
    },
    "CustomIccProfile": {
      "allOf": [
        {
          "$ref": "#/$defs/IccProfile"
        },
        {
          "type": "object",
          "properties": {
            "imageMode": {
              "type": "string",
              "description": "Image mode for custom ICC profiles. Allowed values: rgb, grayscale, cmyk. Optional",
              "enum": [
                "rgb",
                "grayscale",
                "cmyk"
              ]
            },
            "name": {
              "type": "string",
              "description": "Custom ICC profile name. Provide a descriptive name (max 255 characters). Required.",
              "maxLength": 255,
              "minLength": 0
            },
            "source": {
              "$ref": "#/$defs/FileResourceInput",
              "description": "Resource input for custom ICC profile file. Required. Must point to a valid .icc or .icm file. Supports URL, Creative Cloud, and other resource types.",
              "oneOf": [
                {
                  "$ref": "#/$defs/UrlResourceInput"
                },
                {
                  "$ref": "#/$defs/CreativeCloudResourceInput"
                },
                {
                  "$ref": "#/$defs/CreativeCloudFileIdResourceInput"
                }
              ]
            }
          }
        }
      ],
      "description": "Custom ICC profile with user-provided profile file",
      "required": [
        "name",
        "source",
        "type"
      ]
    },
    "Destination": {
      "description": "Destination for output files. Can be either a URL with optional storage type or a Creative Cloud path."
    },
    "EmbeddedDestination": {
      "allOf": [
        {
          "$ref": "#/$defs/Destination"
        },
        {
          "type": "object",
          "properties": {
            "embedded": {
              "type": "string",
              "default": "string",
              "description": "Embedded format (string, base64, or json). Defaults to string when omitted.",
              "enum": [
                "string",
                "base64",
                "json"
              ]
            }
          }
        }
      ],
      "required": [
        "embedded"
      ]
    },
    "ExportReferenceLayer": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int64"
        },
        "name": {
          "type": "string"
        },
        "shouldIncludeChildren": {
          "type": "boolean",
          "default": true,
          "description": "When this layer is a group, whether to include its children in the export. Defaults to true. Optional."
        }
      }
    },
    "ExtendedPhotoshopOutput": {
      "description": "Export options for a single output.",
      "properties": {
        "mediaType": {
          "type": "string"
        }
      },
      "required": [
        "mediaType"
      ]
    },
    "FileResourceInput": {},
    "HostedDestination": {
      "allOf": [
        {
          "$ref": "#/$defs/Destination"
        },
        {
          "type": "object",
          "properties": {
            "validityPeriod": {
              "type": "integer",
              "format": "int32",
              "default": 3600,
              "description": "Validity period in seconds. Minimum: 60 seconds (1 minute). Maximum: 86400 seconds (1 day). Defaults to 3600 seconds (1 hour) when omitted.",
              "maximum": 86400,
              "minimum": 60
            }
          }
        }
      ],
      "required": [
        "validityPeriod"
      ]
    },
    "IccProfile": {
      "type": "object",
      "description": "ICC profile configuration for color management",
      "properties": {
        "type": {
          "type": "string",
          "default": "standard",
          "description": "Type of ICC profile. 'standard' for predefined profiles, 'custom' for user-provided profiles. Defaults to standard when omitted; explicit null is invalid.",
          "enum": [
            "standard",
            "custom"
          ]
        }
      },
      "required": [
        "type"
      ]
    },
    "JpegOutputWithScan": {
      "allOf": [
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        },
        {
          "type": "object",
          "properties": {
            "cropMode": {
              "type": "string",
              "description": "Crop mode for export output. Optional.",
              "enum": [
                "trim_to_transparency",
                "document_bounds",
                "layer_bounds"
              ]
            },
            "destination": {
              "description": "The destination details for the output file. Required. When scriptOutputPattern is used, only EmbeddedDestination and HostedDestination are supported. URL destinations (presigned URLs) and Creative Cloud destinations cannot be used with scriptOutputPattern because they require pre-knowledge of file names and counts.",
              "oneOf": [
                {
                  "$ref": "#/$defs/CreativeCloudDestination"
                },
                {
                  "$ref": "#/$defs/EmbeddedDestination"
                },
                {
                  "$ref": "#/$defs/HostedDestination"
                },
                {
                  "$ref": "#/$defs/UrlDestination"
                }
              ]
            },
            "height": {
              "type": "integer",
              "format": "int32",
              "description": "Height in pixels. Must be >= 0. Optional.",
              "minimum": 0
            },
            "iccProfile": {
              "description": "ICC profile configuration for color management. Allows specifying standard ICC profiles (e.g., sRGB, Adobe RGB) or custom ICC profile files. Supported output formats: JPEG, PNG, TIFF, PSD. Not supported for PSDC (document/vnd.adobe.cpsd+dcxucf, document/vnd.adobe.cpsd+dcx). Optional.",
              "oneOf": [
                {
                  "$ref": "#/$defs/StandardIccProfile"
                },
                {
                  "$ref": "#/$defs/CustomIccProfile"
                }
              ]
            },
            "layers": {
              "type": "array",
              "description": "Layers to export. Specify layers by id, name, or both. Optional.",
              "items": {
                "$ref": "#/$defs/ExportReferenceLayer"
              },
              "maxItems": 100,
              "minItems": 0
            },
            "maxWidth": {
              "type": "integer",
              "format": "int32",
              "description": "Maximum width constraint in pixels. Must be >= 0. If specified and (width > maxWidth OR documentWidth > maxWidth), the output will be constrained to maxWidth. Optional.",
              "minimum": 0
            },
            "mediaType": {
              "type": "string",
              "default": "image/jpeg",
              "description": "The desired output format. Supported formats: image/jpeg, image/png, image/tiff, image/vnd.adobe.photoshop, document/vnd.adobe.cpsd+dcxucf, document/vnd.adobe.cpsd+dcx and application/json. Defaults to image/jpeg when omitted.",
              "enum": [
                "image/jpeg",
                "image/png",
                "image/tiff",
                "image/vnd.adobe.photoshop",
                "document/vnd.adobe.cpsd+dcxucf",
                "document/vnd.adobe.cpsd+dcx",
                "application/json"
              ]
            },
            "quality": {
              "type": "string",
              "description": "JPEG quality setting. Optional.",
              "enum": [
                "very_poor",
                "poor",
                "low",
                "medium",
                "high",
                "maximum",
                "photoshop_max"
              ]
            },
            "resample": {
              "type": "string",
              "description": "Resampling algorithm used when resizing output to a target width. Valid values: nearest_neighbor, bilinear, bicubic, bicubic_smoother, bicubic_sharper. Defaults to bicubic_sharper when width or maxWidth is specified and this field is omitted. Optional.",
              "enum": [
                "nearest_neighbor",
                "bilinear",
                "bicubic",
                "bicubic_smoother",
                "bicubic_sharper"
              ]
            },
            "scan": {
              "$ref": "#/$defs/JpegScanOptions"
            },
            "scriptOutputPattern": {
              "type": "string",
              "description": "Pattern for matching script output files in the UXP output directory. Supports both exact filenames and glob patterns. Examples: 'output.json' (matches single specific file), '*.json' (matches all JSON files), 'result-*.png' (matches result-1.png, result-2.png, etc.). Files are filtered based on the mediaType of this output definition. Only files with extensions matching the mediaType will be included. When a pattern matches multiple files, one output entry is created per file. When present, skips normal rendering/export and uses matched files instead. Output parameters like quality, compression, width, and height are ignored when this field is present. Only applicable for /v2/execute-actions endpoint. Optional, nullable.",
              "maxLength": 255,
              "minLength": 0
            },
            "shouldOverwrite": {
              "type": "boolean",
              "description": "Whether to overwrite existing files. Optional."
            },
            "width": {
              "type": "integer",
              "format": "int32",
              "description": "Width in pixels. Must be >= 0. Optional.",
              "minimum": 0
            }
          }
        }
      ],
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "JpegScanOptions": {
      "type": "object",
      "description": "JPEG scan/encoding options (baseline vs progressive). Only supported on the create-composite, create-artboard, and generate-manifest endpoints. Optional; defaults to baseline standard encoding when omitted.",
      "properties": {
        "optimized": {
          "type": "boolean",
          "default": false,
          "description": "Whether to use baseline-optimized encoding. Only valid when type is baseline."
        },
        "scans": {
          "type": "integer",
          "format": "int32",
          "description": "Number of progressive scans. Only valid when type is progressive. Allowed values: 3, 4, 5.",
          "maximum": 5,
          "minimum": 3
        },
        "type": {
          "type": "string",
          "default": "baseline",
          "description": "JPEG scan type.",
          "enum": [
            "baseline",
            "progressive"
          ]
        }
      }
    },
    "JsonOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotoshopOutput"
        },
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        }
      ],
      "description": "JSON output configuration",
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "PhotoshopOutput": {
      "type": "object",
      "description": "Export options for a single output.",
      "properties": {
        "cropMode": {
          "type": "string",
          "description": "Crop mode for export output. Optional.",
          "enum": [
            "trim_to_transparency",
            "document_bounds",
            "layer_bounds"
          ]
        },
        "destination": {
          "description": "The destination details for the output file. Required. When scriptOutputPattern is used, only EmbeddedDestination and HostedDestination are supported. URL destinations (presigned URLs) and Creative Cloud destinations cannot be used with scriptOutputPattern because they require pre-knowledge of file names and counts.",
          "oneOf": [
            {
              "$ref": "#/$defs/CreativeCloudDestination"
            },
            {
              "$ref": "#/$defs/EmbeddedDestination"
            },
            {
              "$ref": "#/$defs/HostedDestination"
            },
            {
              "$ref": "#/$defs/UrlDestination"
            }
          ]
        },
        "height": {
          "type": "integer",
          "format": "int32",
          "description": "Height in pixels. Must be >= 0. Optional.",
          "minimum": 0
        },
        "iccProfile": {
          "description": "ICC profile configuration for color management. Allows specifying standard ICC profiles (e.g., sRGB, Adobe RGB) or custom ICC profile files. Supported output formats: JPEG, PNG, TIFF, PSD. Not supported for PSDC (document/vnd.adobe.cpsd+dcxucf, document/vnd.adobe.cpsd+dcx). Optional.",
          "oneOf": [
            {
              "$ref": "#/$defs/StandardIccProfile"
            },
            {
              "$ref": "#/$defs/CustomIccProfile"
            }
          ]
        },
        "layers": {
          "type": "array",
          "description": "Layers to export. Specify layers by id, name, or both. Optional.",
          "items": {
            "$ref": "#/$defs/ExportReferenceLayer"
          },
          "maxItems": 100,
          "minItems": 0
        },
        "maxWidth": {
          "type": "integer",
          "format": "int32",
          "description": "Maximum width constraint in pixels. Must be >= 0. If specified and (width > maxWidth OR documentWidth > maxWidth), the output will be constrained to maxWidth. Optional.",
          "minimum": 0
        },
        "mediaType": {
          "type": "string",
          "default": "image/jpeg",
          "description": "The desired output format. Supported formats: image/jpeg, image/png, image/tiff, image/vnd.adobe.photoshop, document/vnd.adobe.cpsd+dcxucf, document/vnd.adobe.cpsd+dcx and application/json. Defaults to image/jpeg when omitted.",
          "enum": [
            "image/jpeg",
            "image/png",
            "image/tiff",
            "image/vnd.adobe.photoshop",
            "document/vnd.adobe.cpsd+dcxucf",
            "document/vnd.adobe.cpsd+dcx",
            "application/json"
          ]
        },
        "resample": {
          "type": "string",
          "description": "Resampling algorithm used when resizing output to a target width. Valid values: nearest_neighbor, bilinear, bicubic, bicubic_smoother, bicubic_sharper. Defaults to bicubic_sharper when width or maxWidth is specified and this field is omitted. Optional.",
          "enum": [
            "nearest_neighbor",
            "bilinear",
            "bicubic",
            "bicubic_smoother",
            "bicubic_sharper"
          ]
        },
        "scriptOutputPattern": {
          "type": "string",
          "description": "Pattern for matching script output files in the UXP output directory. Supports both exact filenames and glob patterns. Examples: 'output.json' (matches single specific file), '*.json' (matches all JSON files), 'result-*.png' (matches result-1.png, result-2.png, etc.). Files are filtered based on the mediaType of this output definition. Only files with extensions matching the mediaType will be included. When a pattern matches multiple files, one output entry is created per file. When present, skips normal rendering/export and uses matched files instead. Output parameters like quality, compression, width, and height are ignored when this field is present. Only applicable for /v2/execute-actions endpoint. Optional, nullable.",
          "maxLength": 255,
          "minLength": 0
        },
        "shouldOverwrite": {
          "type": "boolean",
          "description": "Whether to overwrite existing files. Optional."
        },
        "width": {
          "type": "integer",
          "format": "int32",
          "description": "Width in pixels. Must be >= 0. Optional.",
          "minimum": 0
        }
      },
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "PngOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotoshopOutput"
        },
        {
          "type": "object",
          "properties": {
            "compression": {
              "type": "string",
              "description": "PNG compression level. Optional.",
              "enum": [
                "none",
                "very_low",
                "low",
                "medium_low",
                "medium",
                "medium_high",
                "default",
                "high",
                "very_high",
                "maximum"
              ]
            }
          }
        },
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        }
      ],
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "PsdOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotoshopOutput"
        },
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        }
      ],
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "PsdcOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotoshopOutput"
        },
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        }
      ],
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "ResourceInput": {},
    "StandardIccProfile": {
      "allOf": [
        {
          "$ref": "#/$defs/IccProfile"
        },
        {
          "type": "object",
          "properties": {
            "imageMode": {
              "type": "string",
              "description": "Image mode for standard ICC profiles. Allowed values: rgb, grayscale. Optional",
              "enum": [
                "rgb",
                "grayscale"
              ]
            },
            "name": {
              "type": "string",
              "default": "sRGB IEC61966-2.1",
              "description": "Standard ICC profile name. Must be one of the predefined values: Adobe RGB (1998), Apple RGB, ColorMatch RGB, sRGB IEC61966-2.1, Dot Gain 10%, Dot Gain 15%, Dot Gain 20%, Dot Gain 25%, Dot Gain 30%, Gray Gamma 1.8, Gray Gamma 2.2. Defaults to sRGB IEC61966-2.1 when omitted; explicit null is invalid.",
              "enum": [
                "Adobe RGB (1998)",
                "Apple RGB",
                "ColorMatch RGB",
                "sRGB IEC61966-2.1",
                "Dot Gain 10%",
                "Dot Gain 15%",
                "Dot Gain 20%",
                "Dot Gain 25%",
                "Dot Gain 30%",
                "Gray Gamma 1.8",
                "Gray Gamma 2.2"
              ]
            }
          }
        }
      ],
      "description": "Standard ICC profile with predefined profile names",
      "required": [
        "name",
        "type"
      ]
    },
    "TiffOutput": {
      "allOf": [
        {
          "$ref": "#/$defs/PhotoshopOutput"
        },
        {
          "$ref": "#/$defs/ExtendedPhotoshopOutput"
        }
      ],
      "required": [
        "destination",
        "mediaType"
      ]
    },
    "UrlDestination": {
      "allOf": [
        {
          "$ref": "#/$defs/Destination"
        },
        {
          "type": "object",
          "properties": {
            "storageType": {
              "type": "string",
              "description": "Storage type for the destination. Optional.",
              "enum": [
                "azure",
                "dropbox"
              ]
            },
            "url": {
              "type": "string",
              "description": "Pre-signed URL for external storage. Must be HTTPS. Required.",
              "minLength": 1
            }
          }
        }
      ],
      "required": [
        "url"
      ]
    },
    "UrlResourceInput": {
      "allOf": [
        {
          "$ref": "#/$defs/ResourceInput"
        },
        {
          "type": "object",
          "properties": {
            "url": {
              "type": "string",
              "description": "The pre-signed URL of the resource. Required.",
              "minLength": 1
            }
          }
        }
      ],
      "description": "URL resource input. References a resource via a pre-signed URL.",
      "required": [
        "url"
      ]
    }
  }
}