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.
json
.pptx
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.
Last updated 4 years ago
Was this helpful?