Slide Settings

This page describes how to set your slide settings in the request data.

In the slide settings section you provide any information and data related to the slide itself. For example: id, question, base, rows and columns.

Slide settings fields

Name

Type

Required

Description

id

String

false

A unique slide ID

table_text

String

true

The table name. This will be replaced by the {table_name} tag in any placeholder on your pptx template.

question_text

String

true

The question text. This will be replaced by the {question} tag in any placeholder on your pptx template.

base_text

String

false

If provided, it will be inserted into the placeholder with the “{base}” placeholder tag. If not provided, generic base will be used, example: Base: {cross break name} = {corresponding value}

rows

Array

true

Defines the row values of the data

columns

Array

true

Defines the column values of the data

In v1 version of this endpoint there is a relation of 1-to-1 between a slide and a chart.

Example in JSON

{
	"body": [{
		"id": "desired-unique-id",
		"table_text": "Demo",
		"question_text": "What is Demo?",
		"base_text": "A Demo text!",
		"rows": ["Yes", "No"],
		"columns": [{
			"text": "Work in Progress",
			"items": [{
				"text": "Does it work?",
				"base": 3.0,
				"data": [2.0, 1.0]
			}]
		}],
		"view_settings": {
			"slide_master_index": 0,
			"slide_layout_index": 0,
			"placeholder_index": 0,
			"chart_type": "bar"
		}
	}]
}

Last updated