Create a New Paragraph

Introduction

Dividing text into paragraphs makes it easier to make changes and additions. Using the following method, you can add new paragraphs, specifying formatting properties such as indents, alignment, styles, color, font size, effects, and many others.

CreateParagraph

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs POST Adds a new paragraph to a shape in a presentation saved in a storage. CreateParagraph

Request Parameters

Name Type Location Required Description
name string path true The name of a presentation file.
slideIndex integer path true The 1-based index of a slide.
shapeIndex integer path true The 1-based index of a shape.
dto Paragraph body true The data transfer object with paragraph properties.
position integer query false The position of the new paragraph in the list. Default is at the end of the list.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation file.
storage string query false The name of the storage contaning the folder.
subShape string query false The path to a child shape (e.g. “3”, “3/shapes/2”).

Examples

In the default storage, the document MyPresentation.pptx contains a text box (the first shape) on the first slide. Add a new paragraph with two text portions. Make the first text portion bold. Align the paragraph to the center.

The table

cURL Solution

SDK Solutions

The result:

Slide

SDKs

Check Available SDKs to learn how to add an SDK to your project.