Skip to content

Edit Presentation

POST https://api.slidespeak.co/api/v1/presentation/edit

Edits an existing PowerPoint presentation by replacing the content of specified shapes. Upload a .pptx file and provide a configuration object detailing which shapes to update and their new content. This endpoint is useful for personalizing presentations, or programmatically modifying slides at scale. The response includes a URL to download the edited presentation.


Content-Type: string

multipart/form-data

X-API-Key: string

The API key to use for the request.


<YOUR_API_KEY>


pptx_file: file

The PowerPoint you wish to edit.

config: json

A JSON object containing the values to change. Expects a replacements key with a list of dictionaries.


Replacement items keys:

shape_name: string

The name of the shape to replace.

content: string

The new content for the shape.


Terminal window
curl -X POST "https://api.slidespeak.co/api/v1/presentation/edit" -H "x-api-key: YOUR_API_KEY" -F "pptx_file=@path/to/your-presentation.pptx" -F "config={
"replacements": [
{
"shape_name": "TARGET_TITLE",
"content": "Your new title"
},
{
"shape_name": "TARGET_SUBTITLE",
"content": "A new fancy subtitle"
},
{
"shape_name": "TARGET_CONTENT",
"content": "Some new content"
}
]
}"

{
"replacements": [
{
"shape_name": "TARGET_TITLE",
"content": "Your new title"
},
{
"shape_name": "TARGET_SUBTITLE",
"content": "A new fancy subtitle"
},
{
"shape_name": "TARGET_CONTENT",
"content": "Some new content"
}
]
}

{
"url": "https://slidespeak-pptx-writer.s3.amazonaws.com/02776182-b4d2-46d9-90c4-f40dbcbb3cfe.pptx"
}