{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/canva/json-schema/canva-get-brand-template-dataset-response-schema.json",
  "title": "GetBrandTemplateDatasetResponse",
  "description": "Successful response from a `getBrandTemplateDataset` request.",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/canva-brand-template-api-openapi.yml#/components/schemas/GetBrandTemplateDatasetResponse",
  "properties": {
    "dataset": {
      "additionalProperties": {
        "$ref": "#/$defs/DataField"
      },
      "description": "The dataset definition. It contains the data inputs available for use with the\n[Create design autofill job API](https://www.canva.dev/docs/apps/rest-apis/reference/autofills/create-design-autofill-job/).",
      "type": "object"
    }
  },
  "type": "object",
  "$defs": {
    "ChartDataField": {
      "description": "A chart data field. You can autofill it with tabular data.",
      "properties": {
        "type": {
          "enum": [
            "chart"
          ],
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "DataField": {
      "description": "A named data field that can be autofilled.",
      "oneOf": [
        {
          "$ref": "#/$defs/ImageDataField"
        },
        {
          "$ref": "#/$defs/TextDataField"
        },
        {
          "$ref": "#/$defs/ChartDataField"
        },
        {
          "$ref": "#/$defs/SheetDataField"
        }
      ],
      "type": "object"
    },
    "ImageDataField": {
      "description": "An image data field. You can autofill it with an image by providing its `asset_id`.\n\nYou can also autofill it with a video asset.",
      "properties": {
        "type": {
          "enum": [
            "image"
          ],
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "SheetDataField": {
      "description": "A sheet data field. You can autofill it with tabular sheet data.",
      "properties": {
        "type": {
          "enum": [
            "sheet"
          ],
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "TextDataField": {
      "description": "A text data field. You can autofill it with a text value.",
      "properties": {
        "type": {
          "enum": [
            "text"
          ],
          "type": "string"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    }
  }
}