Add a New Slide in a PowerPoint Presentation


This article shows you how to add new slides in PowerPoint presentations using Aspose.Slides for Cloud API in your applications. A presentation must be already saved to a storage. You can add a new slide at the end of the presentation or at a specified position. When creating a new slide, a layout can be applied immediately.


API Information

API Type Description Resource
/slides/{name}/slides POST Creates a new slide. CreateSlide

Request Parameters

Name Type Location Required Description
name string path true The file name of a presentation.
layoutAlias string query false The alias of a layout slide for a new slide. The alias may be a layout slide type, a layout slide name, or an index.
position integer query false The 1-based index for the new slide. If the position is not specified, the slide will be added to the end.
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.

In case of Amazon S3 storage folder path starts with Amazon S3 bucket name.


MyFolder/MyPresentation.pptx document saved to MyStorage is containing two slides. Add a new slide at index 2 into the presentation and use the third layout for the new slide.

cURL Solution

SDK Solutions


Using an SDK (API client) is the quickest way for a developer to speed up development. An SDK takes care of a lot of low-level details of making requests and handling responses and lets you focus on writing code specific to your particular project. Check out our GitHub repository for a complete list of Aspose.Slides Cloud SDKs along with working examples, to get you started in no time. Please check Available SDKs article to learn how to add an SDK to your project.