Using multiple templates
Last updated
Last updated
You may have a scenario where you want to build a PowerPoint using slides from multiple template PowerPoints.
To do this, you have to:
Attach Files and/or Provide Template URLs:
File Attachment: Attach your template PowerPoint files as File
attachments in the POST
request, using the parameter name files
.
Template URLs: You can also use URLs for templates stored online, such as in Google Drive or OneDrive, which provide direct download access.
Define Templates in Your JSON Payload: Add a template_list
parameter in your JSON payload, as shown below. The template_list
should contain an entry for each template file, with a unique template_id
and the name of each template file. Each template
name must exactly match the filename of the corresponding "files" parameter sent in the form.
Assign Template IDs to Slides: In the JSON payload, specify a template_id
for each slide to indicate which template file to use. Each slide
object should include a slide_index
and the template_id
for the template it should follow.
You cannot use both a single template file and multiple templates together. The following example demonstrates incorrect syntax:
Sample JSON payload: