Working with Shapes

Introduction

Aspose.Slides Cloud API allows you to read, add, modify, and delete shapes on special slides (Master, Layout, or Notes) in a PowerPoint presentation. To do this, you can use the following set of methods, identical to those that work with regular slides.

API Information

API Type Description Resource
/slides/{name}/slides/{slideIndex}/{slideType}/shapes GET Reads information about shapes on a special slide. GetSpecialSlideShapes
/slides/{name}/slides/{slideIndex}/{slideType}/shapes/{shapeIndex} GET Reads information about a shape on a special slide. GetSpecialSlideShape
/slides/{name}/slides/{slideIndex}/{slideType}/shapes POST Adds a new shape to a special slide. CreateSpecialSlideShape
/slides/{name}/slides/{slideIndex}/{slideType}/shapes/{shapeIndex} PUT Updates a shape on a special slide. UpdateSpecialSlideShape
/slides/{name}/slides/{slideIndex}/{slideType}/shapes DELETE Deletes a shape from a special slide. DeleteSpecialSlideShape
/slides/{name}/slides/{slideIndex}/{slideType}/shapes DELETE Deletes shapes from a special slide. DeleteSpecialSlideShapes
GetSpecialSlideShapes Request Parameters
Name Type Location Required Description
name string path true The name of a presentation file saved in a storage.
slideIndex integer path true The 1-based index of a regular slide.
slideType MasterSlide or LayoutSlide or NotesSlide path true The type of the special slide.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
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”).
GetSpecialSlideShape Request Parameters
Name Type Location Required Description
name string path true The name of a presentation file saved in a storage.
slideIndex integer path true The 1-based index of a regular slide.
slideType MasterSlide or LayoutSlide or NotesSlide path true The type of the special slide.
shapeIndex integer path true The 1-based index of the shape.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
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”).
CreateSpecialSlideShape Request Parameters
Name Type Location Required Description
name string path true The name of a presentation file saved in a storage.
slideIndex integer path true The 1-based index of a regular slide.
slideType MasterSlide or LayoutSlide or NotesSlide path true The type of the special slide.
dto object body true The data transfer object with parameters for the new shape.
shapeToClone integer query false The 1-based index for a cloning shape instead of adding a new one.
position integer query false The 1-based index for the new shape in the list. By default, the shape is added to 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.
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”).
UpdateSpecialSlideShape Request Parameters
Name Type Location Required Description
name string path true The name of a presentation file saved in a storage.
slideIndex integer path true The 1-based index of a regular slide.
slideType MasterSlide or LayoutSlide or NotesSlide path true The type of the special slide.
shapeIndex integer path true The 1-based index of the shape.
dto object body true The data transfer object with parameters to be updated.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
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”).
DeleteSpecialSlideShape Request Parameters
Name Type Location Required Description
name string path true The name of a presentation file saved in a storage.
slideIndex integer path true The 1-based index of a regular slide.
slideType MasterSlide or LayoutSlide or NotesSlide path true The type of the special slide.
shapeIndex integer path true The 1-based index of the shape.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
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”).
DeleteSpecialSlideShapes Request Parameters
Name Type Location Required Description
name string path true The name of a presentation file saved in a storage.
slideIndex integer path true The 1-based index of a regular slide.
slideType MasterSlide or LayoutSlide or NotesSlide path true The type of the special slide.
shapes string query false The indices of the shapes to be deleted. Delete all by default.
password string header false The password to open the presentation.
folder string query false The path to the folder containing the presentation.
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

The following examples demonstrate manipulating shapes on a Master slide. You can access shapes on a Layout slide or Notes slide the same way, just change the value of the slideType parameter accordingly.

cURL Examples

SDK Examples

SDKs

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