Create a new file under your account, either by uploading a file or by modifying an existing .pptx template.
If your Content-Type specifies a .pptx or image file type, your request body should contain the binary contents of the file.
If you send Content-Type:application/json, your request body should contain a JSON object with tailoring instructions.
If your request included an Accept header identifying a .pptx file, the response will have a corresponding Content-Type. Otherwise the response will be a JSON object with information about the newly created file.
{
"url": "https://api.slide-tailor.com/{accountId}/acme-sales-preso.pptx",
"filename": "acme-sales-preso.pptx",
"mediatype": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
"length": 241770
}
Upload a .pptx template
POST https://api.slide-tailor.com/{accountId} HTTP/1.1
X-API-Key: {apiKey}
Content-Type: application/vnd.openxmlformats-officedocument.presentationml.presentation
<binary .pptx file>
HTTP/1.1 201 Created
Content-Type: application/json
{
"url": "https://api.slide-tailor.com/{accountId}/slides-001.pptx",
"filename": "slides-001.pptx",
"mediatype": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
"length": 594228
}
Create a new presentation based on a previously uploaded template.
POST https://api.slide-tailor.com/{accountId} HTTP/1.1
X-API-Key: {apiKey}
Content-Type: application/json
Content-Disposition: attachment; filename="acme-sales-preso.pptx"
Accept: application/json
{
"url": "https://api.slide-tailor.com/{accountId}/slides-001.pptx",
"filename": "slides-001.pptx",
"mediatype": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
"length": 594228
}
HTTP/1.1 201 Created
Content-Type: application/json
{
"url": "https://api.slide-tailor.com/{accountId}/acme-sales-preso.pptx",
"filename": "acme-sales-preso.pptx",
"mediatype": "application/vnd.openxmlformats-officedocument.presentationml.presentation",
"length": 604711
}