> For the complete documentation index, see [llms.txt](https://docs.powerpointgeneratorapi.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.powerpointgeneratorapi.com/examples/slide/repeat-template-slides-by-index.md).

# Repeat template slides by index

1. You can repeat a template slide using the slide index to create multiple copies as needed&#x20;
2. 0-based indexing

Reference: [slides](/json-template-syntax/slides.md)

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1T6s05nUKSCv2B4KOsn6Bd9eTEaXIC6qp) | [output.pptx](https://drive.google.com/uc?export=download\&id=13k9wfKLTK5RjdMP93Hjgi6KcF1kc1vyh)&#x20;

{% columns %}
{% column width="41.66666666666667%" %}

<figure><img src="/files/kgS8tF5MF8FOg9b5rO41" alt=""><figcaption></figcaption></figure>

***

<figure><img src="/files/21kKsPNou3kzNAXLZaJj" alt=""><figcaption></figcaption></figure>

{% endcolumn %}

{% column width="58.33333333333333%" %}
{% code lineNumbers="true" %}

```json
{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "slide_index": 0,
        "tags": [
          {
            "key": "num",
            "value": "1"
          },
          {
            "key": "title",
            "value": "Product Sales"
          }
        ]
      },
      {
        "slide_index": 1,
        "shapes": [
          {
            "name": "Chart 7",
            "title": "H1 Revenue - Product 1",
            "data": [
              ["North", "South", "East", "West"],
              ["Jan-25", "Feb-25", "Mar-25", "Apr-25", "May-25", "Jun-25"],
              [11, 15, 4, 7],
              [25, 20, 77, 30],
              [40, 30, 65, 20],
              [55, 50, 80, 60], 
              [70, 60, 85, 72], 
              [85, 90, 95, 88]    
            ]
          }
        ]
      },
      {
        "slide_index": 1,
        "shapes": [
          {
            "name": "Chart 7",
            "title": "H1 Revenue - Product 2",
            "data": [
              ["North", "South"],
              ["Jan-25", "Feb-25", "Mar-25", "Apr-25", "May-25", "Jun-25"],
              [11, 25],
              [15, 30],
              [13, 40],
              [20, 60],
              [30, 80],
              [55, 83]
            ]
          }
        ]
      },
      {
        "slide_index": 0,
        "tags": [
          {
            "key": "num",
            "value": "2"
          },
          {
            "key": "title",
            "value": "Services Sales"
          }
        ]
      },
      {
        "slide_index": 1,
        "shapes": [
          {
            "name": "Chart 7",
            "title": "H1 Revenue - Services 1",
            "data": [
              ["North", "South", "East", "West"],
              ["Jan-25", "Feb-25", "Mar-25", "Apr-25", "May-25", "Jun-25"],
              [25, 20, 15, 10],
              [41, 25, 35, 25],
              [25, 36, 50, 15],
              [55, 45, 65, 35], 
              [60, 55, 50, 40], 
              [70, 80, 75, 50]    
            ]
          }
        ]
      }
    ]
  }
}
```

{% endcode %}
{% endcolumn %}
{% endcolumns %}
