TailoringInstructions

Provides instructions for creating a modified version of a .pptx template

JSON

{
"template": string,
"replaceText": [ ReplaceText ],
"insertImages": [ InsertImage ],
"setChartData": [ SetChartData ],
"updateTableData": [ SetTableCell | AddColumns | AddRows | DeleteColumns | DeleteRows | ReplaceContents ],
"hideShapes": [ HideShape ],
"showShapes": [ ShowShape ],
"deleteShapes": [ DeleteShape ],
"hideSlides": [ HideSlide ],
"showSlides": [ ShowSlide ],
"deleteSlides": [ DeleteSlide ],
}

Fields

template
URL of a .pptx template to be used as the base for modifications. It can be a file previously uploaded to your account or a publicly accessible file hosted elsewhere.
replaceText
Strings to find and replace
insertImages
Insert images into presentation in place of existing shapes
setChartData
Replace data shown in an existing chart
updateTableData
Change the data shown in a table by setting individual cells, adding or deleting rows and columns, or replacing the contents entirely.
hideShapes
Hide shapes
showShapes
Unhide hidden shapes
deleteShapes
Delete shapes from presentation
hideSlides
Hide slides
showSlides
Unhide hidden slides
deleteSlides
Delete slides from presentation

Example

This example inserts a customer name, a logo, and the lastest quarter's data into a .pptx template.

{
    "template": "https://api.slide-tailor.com.com/{accountId}/business-review-template.pptx",
    "replaceText": [ {
        "replaceText": "{customer}",
        "withText": "Acme Rocket Sled"
    } ],
    "insertPictures": [ {
        "replaceShapeNamed": "customer logo placeholder shape",
        "image": "https://me.onedrive.com/shared/acme-logo.png"
    } ],
    "updateChartData": [ {
        "action": "addDataToSeries",
        "shapeName": "$ by month, all time",
        "labels": [
            "Jul 24",
            "Aug 24",
            "Sep 24"
        ],
        "values": [
            "5404",
            "4988",
            "6130"
        ]
    } ]
}