# Change shape size and position

1. Select the shape by `name` you want to modify. See [here](https://docs.powerpointgeneratorapi.com/knowledge-base/finding-shape-names) 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](https://docs.powerpointgeneratorapi.com/json-template-syntax/shapes "mention")

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="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2Fg0K8QTlicRF47o7SkObE%2Ftemplate.png?alt=media&#x26;token=caadf8b8-488b-4e4d-b24d-e45bfeb73b69" alt=""><figcaption></figcaption></figure>

***

<figure><img src="https://1155212587-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-Mgoqdluo05I2RXHZpTr-887967055%2Fuploads%2F0qLRyBI1acSnEehdzF4D%2Foutput.png?alt=media&#x26;token=4d49e6b9-7898-4650-99ce-789db9c9f495" 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.powerpointgeneratorapi.com/examples/shape/change-shape-position.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
