> 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/shape/change-shape-position.md).

# Change shape size and position

1. Select the shape by `name` you want to modify. See [here](/knowledge-base/finding-shape-names.md) to find shape names.
2. Insert relevant size or position settings into `settings` object&#x20;
3. Set the desire shape size `height` `weight` & position `top` `left` using a JSON payload
4. Specify the unit `unit`

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

Download: [input.zip](https://drive.google.com/uc?export=download\&id=1FALMMGpypbESNdfcFz6iccnaL6tw8vC3) | [output.pptx](https://drive.google.com/uc?export=download\&id=1cG7Lu9Mx6WPUfjy_1HyJbjBFdsTiRqTq)

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

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

***

<figure><img src="/files/bqcaW8kTrtOXBCiPPBk6" alt=""><figcaption></figcaption></figure>
{% endcolumn %}

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

```json
{
  "presentation": {
    "template": "template.pptx",
    "slides": [
      {
        "type": "slide",
        "slide_index": 0,
        "shapes": [
          {
            "name": "Rectangle 1",
            "settings": {
              "height": 5,
              "width": 9,
              "top": 8.5,
              "left": 15.25,
              "unit": "cm"
            }
          }
        ]
      }
    ]
  }
}

```

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