{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canva/json-schema/canva-create-design-generation-job-request-v2-schema.json",
  "title": "CreateDesignGenerationJobRequestV2",
  "description": "The brief, design type, and optional presentation outline for generation.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canva-design-generation-api-openapi.yml#/components/schemas/CreateDesignGenerationJobRequestV2",
  "properties": {
    "brief": {
      "description": "A description of the design to generate, including its subject, purpose,\nrequired wording, tone, and visual direction.",
      "maxLength": 5000,
      "minLength": 1,
      "type": "string"
    },
    "design_type": {
      "allOf": [
        {
          "$ref": "#/$defs/DesignGenerationDesignTypeInputV2"
        }
      ],
      "description": "The preset Canva design type to generate. Supports `doc` and `presentation`."
    },
    "outline": {
      "allOf": [
        {
          "$ref": "#/$defs/DesignGenerationOutlineV2"
        }
      ],
      "description": "The slide structure to follow. This property is supported only when\n`design_type.name` is `presentation`."
    }
  },
  "required": [
    "brief",
    "design_type"
  ],
  "type": "object",
  "$defs": {
    "DesignGenerationDesignTypeInputV2": {
      "description": "The preset Canva design type to generate.",
      "properties": {
        "type": {
          "$ref": "#/$defs/DesignGenerationDesignTypeV2"
        },
        "name": {
          "$ref": "#/$defs/DesignGenerationDesignTypeNameV2"
        }
      },
      "required": [
        "name",
        "type"
      ],
      "type": "object"
    },
    "DesignGenerationDesignTypeNameV2": {
      "description": "The name of the design type to generate.",
      "enum": [
        "doc",
        "presentation"
      ],
      "type": "string",
      "x-enum-descriptions": [
        "A [Canva doc](https://www.canva.com/docs/); a document for Canva's online text editor.",
        "A [presentation](https://www.canva.com/presentations/); lets you create and collaborate for presenting to an audience."
      ]
    },
    "DesignGenerationDesignTypeV2": {
      "description": "The kind of design type to generate.",
      "enum": [
        "preset"
      ],
      "type": "string",
      "x-enum-descriptions": [
        "A preset Canva design type."
      ]
    },
    "DesignGenerationOutlineSectionV2": {
      "description": "One slide in a presentation outline.",
      "properties": {
        "title": {
          "description": "The slide title.",
          "maxLength": 255,
          "minLength": 1,
          "type": "string"
        },
        "description": {
          "description": "A short description of what the slide should cover.",
          "maxLength": 2000,
          "minLength": 1,
          "type": "string"
        },
        "points": {
          "description": "Optional individual points the slide should make.",
          "items": {
            "maxLength": 1000,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 50,
          "type": "array"
        }
      },
      "required": [
        "title"
      ],
      "type": "object"
    },
    "DesignGenerationOutlineV2": {
      "description": "The ordered slide structure for a generated presentation.",
      "properties": {
        "sections": {
          "items": {
            "$ref": "#/$defs/DesignGenerationOutlineSectionV2"
          },
          "maxItems": 100,
          "minItems": 1,
          "type": "array"
        }
      },
      "required": [
        "sections"
      ],
      "type": "object"
    }
  }
}