PPTX Builder API
PPTX BuilderBook a demoAccount
v1
v1
  • Introduction
  • Guide
    • Create account
    • Get API token
    • Webhook
    • Preparing your slides
  • Concepts
    • Intro
    • Slide Masters
    • Slide Layouts
    • Placeholders
    • Slide
  • API Reference
    • Authentication
    • JSON to PPTX Builder
      • Request Payload
        • Base Settings
        • Custom Settings
        • Global Chart Settings
        • Slide Settings
        • Chart View Settings
        • Columns
        • Rows
        • Chart title
    • JSON to PPTX
      • Request Payload
        • Base settings
        • Slide Settings
        • Chart View Settings
        • Columns
        • Rows
        • Chart Title
  • Fonts
  • Chart Types
  • Data Labels
  • Chart Settings Specifics
  • Examples
    • JSON to PPTX Builder
    • JSON to PPTX
    • API Token
Powered by GitBook
On this page

Was this helpful?

  1. API Reference
  2. JSON to PPTX

Request Payload

In order to use the endpoints to convert your json data into a .pptx you need to structure your json in a certain way. Below is an example of that structure.

You can use the example below as a base for creating your own json payload.

{
  "base_settings": {
    "file_name": "test_demo",
    "company_template": ""
  },
  "body": [{
    "table_text": "Demo",
    "question_text": "What is Demo?",
    "base_text": "A Demo is something that is used for presentation!",
    "rows": ["Cardiology", "Endocrinology / Diabetology", "General Practice / Family Medicine", "Internal Medicine", "Other"],
    "columns": [{
      "text": "Total",
      "items": [{
        "text": "Total n=100",
        "base": 100,
        "data": [16, 5, 37, 42, 0]
      }]
    }, {
      "text": "Gender",
      "items": [{
        "text": "Male",
        "base": 100,
        "data": [16, 5, 37, 42, 0]
      }, {
        "text": "Female",
        "base": 100,
        "data": [20, 15, 47, 22, 10]
      }]
    }],
    "view_settings": {
      "slide_master_index": 0,
      "slide_layout_index": 0,
      "placeholder_index": 0,
      "chart_type": "bar"
    }
  }]
}

Continue to the next sections to dive into each of the sections in the request json data.

PreviousJSON to PPTXNextBase settings

Last updated 4 years ago

Was this helpful?