Render draft slides
- OpenAPI 3.1.0 document: https://api.rollstack.com/public/v1/openapi.json
- The whole reference in Markdown: https://docs.rollstack.com/llms-full.txt
- An index of the reference: https://docs.rollstack.com/llms.txt
POST https://api.rollstack.com/public/v1/reports/{id}/slides/render
Renders slides you wrote as HTML on a slide deck's template, so you can design slides yourself instead of asking the slides agent. It saves nothing. Each draft answers its image, the issues to fix and notes to check by eye: fix the issues and render again until none are left. Call getReportDesign first and follow the guide it answers. A chart or table a draft places is drawn with its datasheet's data, or with the data of datasheetChanges you tried with previewReportDatasheetChanges and have not saved yet: save them with saveReportDatasheetChanges before you save the slides. A render that carries datasheetChanges runs one at a time with your queryReportData, previewReportDatasheetChanges and saveReportDatasheetChanges calls: send it only once those have answered. Only the report's editors may. At most 10 drafts a call, and 20 renders and saves a minute per user.
Requires the slide_decks:write scope.
Operation ID: renderReportSlides.
Path parameters
id(string, required): The report to act on, by itsidfromlistReportsorcreateReport. Only reports whosetypeisSlideDeckwork here: another type, such as a Google Slides presentation, returns400. You can also copy it from the report's link in Rollstack: it's the part right after/slides/.
Headers
Idempotency-Key(string): A unique value, such as a UUID, that makes retrying this call safe. A retry with the same key within 24 hours answers the first call's result instead of running it again. Use a new key for each new call. From 1 to 255 printable ASCII characters.
Request body, required
application/json
slides(array of object, required): The draft slides to render, 1 to 10 a call, each under an id of its own.id(string, required): The id you give the slide: letters, digits,_and-, at most 64 characters. Pass an existing slide's id to redraw that slide.html(string, required): The slide as one<section>of HTML, as large as the report's canvas. No scripts, embedded pages, event attributes or anything loaded from outside it.
datasheetChanges(array of object): Changes to the report's datasheets that aren't saved yet, the ones you tried withpreviewReportDatasheetChanges: the drafts draw their charts and tables with the data they give, and a new datasheet is placed by the id the preview answered. Save them withsaveReportDatasheetChangesbefore you save the slides.- When
typeiscreatetype(create, required)temporaryId(string, required): A stable id for the new datasheet, which later changes in this patch reference it byname(string, required): The datasheet's namereads(array of object, required): The elements it reads, each once: the one a query reads, or those a join readsalias(string, required): The name SQL reads this element by in FROM/JOIN, and ops name it by as a refdatasheetRef(string (uuid), required): An existing datasheet that reads one element: the new datasheet reads that element, with its filtersreadType(string or null): Omit to read it as that datasheet does One ofaggregated,raw.
parameters(array of object, required): User-controlled periods, limits, thresholds and selections: SQL reads them as columns of the params input, a step as {"type":"parameter","key":"<key>"}key(string, required)parameter(object, required)- When
typeisstringlabel(string, required)type(string, required)value(string or null, required)
- When
typeisintegerlabel(string, required)type(integer, required)value(integer or null, required)
- When
typeisnumberlabel(string, required)type(number, required)value(number or null, required)
- When
typeisbooleanlabel(string, required)type(boolean, required)value(boolean or null, required)
- When
typeisdatelabel(string, required)type(date, required)value(string (date) or null, required)
- When
typeistimestamplabel(string, required)type(timestamp, required)value(string (date-time) or null, required)
- When
query(object or null): The data as the Edit data editor builds it, over the one read; give query, or ops over several readscustomFields(array of object): Columns worked out on each source row before the filters and the grouping, which filters, dimensions, splits and measures can then name like a source column. A formula reads one row only and may name an earlier custom field. Examples: price times quantity, summed by region; deal-size bands with if(); diffdays between two dates, then averagedformula(string, required): A formula over one source row: ${Column} names a source column or an earlier custom field. No sum(), mean(), min(), max(), median(), count(), offset(), index() or running
as(string, required): The column's name
dimensions(array of object, required): The columns to group bycolumn(string, required): A column name, exact and case-sensitivebucket(string or null, required): A date unit to group a date or timestamp column by (month: each month of each year), a part of the date over every year (monthofyear: Jan to Dec, quarterofyear: 1 to 4, dayofweek: Mon to Sun), else null. This year beside last year by month is monthofyear split by the year One ofday,week,month,quarter,year,month_of_year,quarter_of_year,day_of_week.as(string): Omit for the default namegroups(array of object): A text column only: values shown under one name, e.g. Email and Telephone as "Email & Tel"; the others keep theirsfill(boolean): A date grouped by a unit or a part only, one key at most: every period between the first and the last (every month, quarter or weekday of a part), for each combination of the other keys, a count or sum of no rows as 0. Omit to show only the periods the rows have
measures(array of object, required)fn(string, required): One ofsum,avg,min,max,median,count,count_distinct,first,last.column(string or null, required): null only with count, which counts rowsas(string): Omit for the default name, such as "Sum of Sales"filters(array of object): Only the rows these all match, beside measures of every row: e.g. a count of the mortgages that are Buy to Let. Omit for every row
pivots(array of object, required): Dimensions whose values become columns, outer first: each level splits the one above; empty for nonecolumn(string, required): A column name, exact and case-sensitivebucket(string or null, required): A date unit to group a date or timestamp column by (month: each month of each year), a part of the date over every year (monthofyear: Jan to Dec, quarterofyear: 1 to 4, dayofweek: Mon to Sun), else null. This year beside last year by month is monthofyear split by the year One ofday,week,month,quarter,year,month_of_year,quarter_of_year,day_of_week.as(string): Omit for the default namegroups(array of object): A text column only: values shown under one name, e.g. Email and Telephone as "Email & Tel"; the others keep theirsfill(boolean): A date grouped by a unit or a part only, one key at most: every period between the first and the last (every month, quarter or weekday of a part), for each combination of the other keys, a count or sum of no rows as 0. Omit to show only the periods the rows have
calculations(array of object): Columns beside each row over every row the aggregate gives: a rank, a percent of total, a difference or percent difference from the previous row ordered by the only dimension, a total/average/min/max of a measure, or a formula over the row's dimensions and measures, such as a rate. A formula with sum(), mean(), min() or max() reads only the rows the limit keeps, such as each top 10 row's share of the 10. Need a dimension or measure and no split- When
fnisrankfn(rank, required)column(string, required): A measure, by its name before renamesdirection(string, required): desc: the largest ranks 1 One ofasc,desc.as(string): The new column's name. Omit for the default name
- When
fnispercent_of_totalfn(percent_of_total, required)column(string, required): A measure, by its name before renamesas(string): The new column's name. Omit for the default name
- Option 3
fn(string, required): One ofdifference,percent_difference.column(string, required): A measure, by its name before renamesorderBy(string, required): The query's only dimension, such as a month, by its name before renames: the rows are ordered by it, oldest firstoffset(integer): How many rows back to compare with; omit for 1, the previous rowas(string): The new column's name. Omit for the default name
- Option 4
fn(string, required): One ofsum,avg,min,max.column(string, required): A measure, by its name before renamesas(string): The new column's name. Omit for the default name
- When
fnisformulafn(formula, required)formula(string, required): A formula: ${Column} names a dimension or measure by its name before renames; numbers, "text", yes, no, null; + - * / (dividing by 0 gives empty); = != < <= > >=; AND, OR, NOT; if(condition, then, else), coalesce(a, b), round(x, digits), abs(x), concat(a, b), isnull(x), tostring(x); sum(x), mean(x), min(x) and max(x) of a column over the rows shown, after the row limit, such as ${Sales} / sum(${Sales}) for each row's share of the rows shown; offset(x, n), the value n rows below in the rows shown (-1 the row above, empty past the first or last), and index(x, n), the value in row n of the rows shown (counting from 1), such as ${Sales} - offset(${Sales}, 1) for the lead over the next row; median(x), and count(x) of its values that aren't empty, over the rows shown; runningtotal(x), the sum of x from the first row shown down to this one, in the rows' order; power(x, y), x to the power y (empty for a negative x with a fractional y); diffdays(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is emptyas(string, required): The column's name
- When
columnOrder(array of string): Every column once, by its name before renames, in the order to show them, removed columns optional; omit for dimensions, measures, then calculationspivotLayout(object): Omit for the default: columns in the order their values first appearcolumns(object, required)- When
modeisfixedmode(fixed, required)values(array of object, required): One column per value, each under its own name: two values never share a column
- When
modeisdiscovermode(discover, required)order(string, required): One ofasc,desc,first_seen.limit(integer, required)
- When
nullLabel(string or null, required): Column name for NULL values; null drops themfill(number or null, required): Value for empty cells; null leaves them empty
filters(array of object, required): All must hold- When
kindiscomparekind(compare, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofeq,neq,gt,gte,lt,lte.value(object, required)
- When
kindisinkind(in, required)column(string, required): A column name, exact and case-sensitivevalues(array of object, required)negate(boolean, required)
- When
kindisbetweenkind(between, required)column(string, required): A column name, exact and case-sensitivefrom(object, required)to(object, required)
- When
kindistextkind(text, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofequals,contains,starts_with,ends_with.value(object, required)caseSensitive(boolean, required)negate(boolean, required)
- When
kindisis_blankkind(is_blank, required)column(string, required): A column name, exact and case-sensitivenegate(boolean, required)
- When
kindisrelative_datekind(relative_date, required)column(string, required): A column name, exact and case-sensitiverange(string, required): One ofcurrent,last,next.count(integer or null, required)unit(string, required): One ofday,week,month,quarter,year.complete(boolean): last/next only: whole units, leaving out the current one, e.g. the last 3 complete months on Oct 21 are Jul, Aug and Sep. Omit for the window through todayincludeCurrent(boolean): With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Omit to leave it outtoDate(boolean): current only: the unit so far, through today, e.g. this year to date. Omit for the whole unitearlier(object): current/last only: the same window, this many units earlier: this year to date 1 year earlier is the same dates last year, and the last 3 complete months 3 months earlier are the 3 months before them. Omit for the window itself
- When
renames(array of object): Output columns under another namefrom(string, required): A column name, exact and case-sensitiveto(string, required): The column's new name
sorts(array of object, required): Columns to sort by, the first first, each next one breaking ties; empty for nonecolumn(string, required): A column, by its name before renames; a split's cell by its valuesdirection(string, required): One ofasc,desc.nulls(string): One offirst,last.
limit(integer or object or null, required): Rows to keep: a number, an integer parameter, or null for alltype(parameter, required)key(string, required)
limitFrom(string): One ofstart,end.totals(object): A table's total row, its subtotal rows and, with a split, its Total column, each measure over the rows shown (under a limit, only those). Omit for nonerow(boolean, required): A last row with the total of each column; charts leave it outcolumn(boolean, required): With a pivot after the aggregate: a Total column with each row across the pivotsubtotals(boolean): Grouped by two or more columns: a subtotal row above each group of every group-by column but the last, as a pivot table's subtotals, with each measure over the group's rows; charts leave them out
formats(array of object): numfmt patterns by output columncolumn(string, required): An output column, by the name it is shown under, after any renameformat(string, required): numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd
removedColumns(array of string): Columns, by their name before renames, to leave out of the rows while keeping the grouping, e.g. group by region and month but show no region column; a split's column is named by its valueskeepGroupsWhere(array of object): Conditions on the grouped rows' dimensions and measures (by their name before renames), all of which must hold, right after the grouping and before the calculations, the sort and the limit, as SQL's HAVING does, so the calculations and the limit only see the rows kept: each region's share among the regions with more than 20 deals. To keep rows by a measure or a calculation while the calculations still cover every group, as for the top 10 of the customers over 1,000,000, use keepRowsBeforeLimit. Needs a dimension or measure and no split- When
kindiscomparekind(compare, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofeq,neq,gt,gte,lt,lte.value(object, required)
- When
kindisinkind(in, required)column(string, required): A column name, exact and case-sensitivevalues(array of object, required)negate(boolean, required)
- When
kindisbetweenkind(between, required)column(string, required): A column name, exact and case-sensitivefrom(object, required)to(object, required)
- When
kindistextkind(text, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofequals,contains,starts_with,ends_with.value(object, required)caseSensitive(boolean, required)negate(boolean, required)
- When
kindisis_blankkind(is_blank, required)column(string, required): A column name, exact and case-sensitivenegate(boolean, required)
- When
kindisrelative_datekind(relative_date, required)column(string, required): A column name, exact and case-sensitiverange(string, required): One ofcurrent,last,next.count(integer or null, required)unit(string, required): One ofday,week,month,quarter,year.complete(boolean): last/next only: whole units, leaving out the current one, e.g. the last 3 complete months on Oct 21 are Jul, Aug and Sep. Omit for the window through todayincludeCurrent(boolean): With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Omit to leave it outtoDate(boolean): current only: the unit so far, through today, e.g. this year to date. Omit for the whole unitearlier(object): current/last only: the same window, this many units earlier: this year to date 1 year earlier is the same dates last year, and the last 3 complete months 3 months earlier are the 3 months before them. Omit for the window itself
- When
keepRowsBeforeLimit(array of object): Conditions on the grouped rows' dimensions, measures and before-limit calculations (by their name before renames), all of which must hold, after the calculations and before the column order, the sort and the limit, so the limit counts only the rows kept while the calculations still cover every group: the top 10 customers of those over 1,000,000, the regions with over 5% of the total. A condition on a calculation that reads the rows the limit keeps (sum(), offset()) goes in keepRowsWhere. Needs a dimension or measure and no split- When
kindiscomparekind(compare, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofeq,neq,gt,gte,lt,lte.value(object, required)
- When
kindisinkind(in, required)column(string, required): A column name, exact and case-sensitivevalues(array of object, required)negate(boolean, required)
- When
kindisbetweenkind(between, required)column(string, required): A column name, exact and case-sensitivefrom(object, required)to(object, required)
- When
kindistextkind(text, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofequals,contains,starts_with,ends_with.value(object, required)caseSensitive(boolean, required)negate(boolean, required)
- When
kindisis_blankkind(is_blank, required)column(string, required): A column name, exact and case-sensitivenegate(boolean, required)
- When
kindisrelative_datekind(relative_date, required)column(string, required): A column name, exact and case-sensitiverange(string, required): One ofcurrent,last,next.count(integer or null, required)unit(string, required): One ofday,week,month,quarter,year.complete(boolean): last/next only: whole units, leaving out the current one, e.g. the last 3 complete months on Oct 21 are Jul, Aug and Sep. Omit for the window through todayincludeCurrent(boolean): With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Omit to leave it outtoDate(boolean): current only: the unit so far, through today, e.g. this year to date. Omit for the whole unitearlier(object): current/last only: the same window, this many units earlier: this year to date 1 year earlier is the same dates last year, and the last 3 complete months 3 months earlier are the 3 months before them. Omit for the window itself
- When
keepRowsWhere(array of object): Conditions on the rows' own columns (dimensions, measures and calculations by their name before renames), all of which must hold, after the sort, the limit and every calculation: keep the rank 1 row of the top 10, with its share of the 10. To keep rows before the limit, use keepRowsBeforeLimit. Needs a dimension or measure and no split- When
kindiscomparekind(compare, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofeq,neq,gt,gte,lt,lte.value(object, required)
- When
kindisinkind(in, required)column(string, required): A column name, exact and case-sensitivevalues(array of object, required)negate(boolean, required)
- When
kindisbetweenkind(between, required)column(string, required): A column name, exact and case-sensitivefrom(object, required)to(object, required)
- When
kindistextkind(text, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofequals,contains,starts_with,ends_with.value(object, required)caseSensitive(boolean, required)negate(boolean, required)
- When
kindisis_blankkind(is_blank, required)column(string, required): A column name, exact and case-sensitivenegate(boolean, required)
- When
kindisrelative_datekind(relative_date, required)column(string, required): A column name, exact and case-sensitiverange(string, required): One ofcurrent,last,next.count(integer or null, required)unit(string, required): One ofday,week,month,quarter,year.complete(boolean): last/next only: whole units, leaving out the current one, e.g. the last 3 complete months on Oct 21 are Jul, Aug and Sep. Omit for the window through todayincludeCurrent(boolean): With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Omit to leave it outtoDate(boolean): current only: the unit so far, through today, e.g. this year to date. Omit for the whole unitearlier(object): current/last only: the same window, this many units earlier: this year to date 1 year earlier is the same dates last year, and the last 3 complete months 3 months earlier are the 3 months before them. Omit for the window itself
- When
ops(array of object or null): Only over several reads: a join step over every read first, naming each read in its inputs (from op, ref the read alias), then stepsref(string, required): An existing op id to keep that op, or a new short nametitle(string or null): Omit to keep a kept op's title; a step op without one shows its step summaryinputs(array of object or null): Omit to keep a kept op wired as it is (one that read the op above reads its new op above). A new op reads the op above, which SQL reads asinput; a new first op reads the datasheet's one read, assourceor the read's aliasstep(object or null): A step op's call; on a kept op, send it only to change itfn(string, required): One ofselect,rename,filter,sort,limit,aggregate,pivot,window,join.params(object, required): The params of its fn, whose exact JSON Schema getReportDataGuide answers when you name the fn in stepFunctions
formats(array of object or null): With ops; a query has its own formatscolumn(string, required): An output column, by the name it is shown under, after any renameformat(string, required): numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd
sql(string or null): In place of a query or ops: one DuckDB SELECT over the reads, each a table named by its alias, with its formats in formats. Only for what a query can't do, such as a date stored as text (CAST("Month" AS DATE) AS "Month") or a figure from two datasheets that read one row each (SELECT won."Revenue" / goal."Goal" AS "Share of goal" FROM won, goal)
- When
typeisset-querytype(set-query, required)datasheetRef(string, required): An existing datasheet id, or the temporaryId of a datasheet created earlier in this patchparameters(array of object or null): Replaces the datasheet's complete parameter set; omit to keep itkey(string, required)parameter(object, required)- When
typeisstringlabel(string, required)type(string, required)value(string or null, required)
- When
typeisintegerlabel(string, required)type(integer, required)value(integer or null, required)
- When
typeisnumberlabel(string, required)type(number, required)value(number or null, required)
- When
typeisbooleanlabel(string, required)type(boolean, required)value(boolean or null, required)
- When
typeisdatelabel(string, required)type(date, required)value(string (date) or null, required)
- When
typeistimestamplabel(string, required)type(timestamp, required)value(string (date-time) or null, required)
- When
query(object, required): The data as the Edit data editor builds it, replacing all the datasheet's ops but its read: getReportDatasheet gives its current query to start fromcustomFields(array of object): Columns worked out on each source row before the filters and the grouping, which filters, dimensions, splits and measures can then name like a source column. A formula reads one row only and may name an earlier custom field. Examples: price times quantity, summed by region; deal-size bands with if(); diffdays between two dates, then averagedformula(string, required): A formula over one source row: ${Column} names a source column or an earlier custom field. No sum(), mean(), min(), max(), median(), count(), offset(), index() or running
as(string, required): The column's name
dimensions(array of object, required): The columns to group bycolumn(string, required): A column name, exact and case-sensitivebucket(string or null, required): A date unit to group a date or timestamp column by (month: each month of each year), a part of the date over every year (monthofyear: Jan to Dec, quarterofyear: 1 to 4, dayofweek: Mon to Sun), else null. This year beside last year by month is monthofyear split by the year One ofday,week,month,quarter,year,month_of_year,quarter_of_year,day_of_week.as(string): Omit for the default namegroups(array of object): A text column only: values shown under one name, e.g. Email and Telephone as "Email & Tel"; the others keep theirsname(string, required)values(array of string, required)
fill(boolean): A date grouped by a unit or a part only, one key at most: every period between the first and the last (every month, quarter or weekday of a part), for each combination of the other keys, a count or sum of no rows as 0. Omit to show only the periods the rows have
measures(array of object, required)fn(string, required): One ofsum,avg,min,max,median,count,count_distinct,first,last.column(string or null, required): null only with count, which counts rowsas(string): Omit for the default name, such as "Sum of Sales"filters(array of object): Only the rows these all match, beside measures of every row: e.g. a count of the mortgages that are Buy to Let. Omit for every row
pivots(array of object, required): Dimensions whose values become columns, outer first: each level splits the one above; empty for nonecolumn(string, required): A column name, exact and case-sensitivebucket(string or null, required): A date unit to group a date or timestamp column by (month: each month of each year), a part of the date over every year (monthofyear: Jan to Dec, quarterofyear: 1 to 4, dayofweek: Mon to Sun), else null. This year beside last year by month is monthofyear split by the year One ofday,week,month,quarter,year,month_of_year,quarter_of_year,day_of_week.as(string): Omit for the default namegroups(array of object): A text column only: values shown under one name, e.g. Email and Telephone as "Email & Tel"; the others keep theirsname(string, required)values(array of string, required)
fill(boolean): A date grouped by a unit or a part only, one key at most: every period between the first and the last (every month, quarter or weekday of a part), for each combination of the other keys, a count or sum of no rows as 0. Omit to show only the periods the rows have
calculations(array of object): Columns beside each row over every row the aggregate gives: a rank, a percent of total, a difference or percent difference from the previous row ordered by the only dimension, a total/average/min/max of a measure, or a formula over the row's dimensions and measures, such as a rate. A formula with sum(), mean(), min() or max() reads only the rows the limit keeps, such as each top 10 row's share of the 10. Need a dimension or measure and no split- When
fnisrankfn(rank, required)column(string, required): A measure, by its name before renamesdirection(string, required): desc: the largest ranks 1 One ofasc,desc.as(string): The new column's name. Omit for the default name
- When
fnispercent_of_totalfn(percent_of_total, required)column(string, required): A measure, by its name before renamesas(string): The new column's name. Omit for the default name
- Option 3
fn(string, required): One ofdifference,percent_difference.column(string, required): A measure, by its name before renamesorderBy(string, required): The query's only dimension, such as a month, by its name before renames: the rows are ordered by it, oldest firstoffset(integer): How many rows back to compare with; omit for 1, the previous rowas(string): The new column's name. Omit for the default name
- Option 4
fn(string, required): One ofsum,avg,min,max.column(string, required): A measure, by its name before renamesas(string): The new column's name. Omit for the default name
- When
fnisformulafn(formula, required)formula(string, required): A formula: ${Column} names a dimension or measure by its name before renames; numbers, "text", yes, no, null; + - * / (dividing by 0 gives empty); = != < <= > >=; AND, OR, NOT; if(condition, then, else), coalesce(a, b), round(x, digits), abs(x), concat(a, b), isnull(x), tostring(x); sum(x), mean(x), min(x) and max(x) of a column over the rows shown, after the row limit, such as ${Sales} / sum(${Sales}) for each row's share of the rows shown; offset(x, n), the value n rows below in the rows shown (-1 the row above, empty past the first or last), and index(x, n), the value in row n of the rows shown (counting from 1), such as ${Sales} - offset(${Sales}, 1) for the lead over the next row; median(x), and count(x) of its values that aren't empty, over the rows shown; runningtotal(x), the sum of x from the first row shown down to this one, in the rows' order; power(x, y), x to the power y (empty for a negative x with a fractional y); diffdays(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is emptyas(string, required): The column's name
- When
columnOrder(array of string): Every column once, by its name before renames, in the order to show them, removed columns optional; omit for dimensions, measures, then calculationspivotLayout(object): Omit for the default: columns in the order their values first appearcolumns(object, required)- When
modeisfixedmode(fixed, required)values(array of object, required): One column per value, each under its own name: two values never share a column
- When
modeisdiscovermode(discover, required)order(string, required): One ofasc,desc,first_seen.limit(integer, required)
- When
nullLabel(string or null, required): Column name for NULL values; null drops themfill(number or null, required): Value for empty cells; null leaves them empty
filters(array of object, required): All must hold- When
kindiscomparekind(compare, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofeq,neq,gt,gte,lt,lte.value(object, required)
- When
kindisinkind(in, required)column(string, required): A column name, exact and case-sensitivevalues(array of object, required)negate(boolean, required)
- When
kindisbetweenkind(between, required)column(string, required): A column name, exact and case-sensitivefrom(object, required)to(object, required)
- When
kindistextkind(text, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofequals,contains,starts_with,ends_with.value(object, required)caseSensitive(boolean, required)negate(boolean, required)
- When
kindisis_blankkind(is_blank, required)column(string, required): A column name, exact and case-sensitivenegate(boolean, required)
- When
kindisrelative_datekind(relative_date, required)column(string, required): A column name, exact and case-sensitiverange(string, required): One ofcurrent,last,next.count(integer or null, required)unit(string, required): One ofday,week,month,quarter,year.complete(boolean): last/next only: whole units, leaving out the current one, e.g. the last 3 complete months on Oct 21 are Jul, Aug and Sep. Omit for the window through todayincludeCurrent(boolean): With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Omit to leave it outtoDate(boolean): current only: the unit so far, through today, e.g. this year to date. Omit for the whole unitearlier(object): current/last only: the same window, this many units earlier: this year to date 1 year earlier is the same dates last year, and the last 3 complete months 3 months earlier are the 3 months before them. Omit for the window itselfcount(integer, required)unit(string, required): One ofday,week,month,quarter,year.
- When
renames(array of object): Output columns under another namefrom(string, required): A column name, exact and case-sensitiveto(string, required): The column's new name
sorts(array of object, required): Columns to sort by, the first first, each next one breaking ties; empty for nonecolumn(string, required): A column, by its name before renames; a split's cell by its valuesdirection(string, required): One ofasc,desc.nulls(string): One offirst,last.
limit(integer or object or null, required): Rows to keep: a number, an integer parameter, or null for alltype(parameter, required)key(string, required)
limitFrom(string): One ofstart,end.totals(object): A table's total row, its subtotal rows and, with a split, its Total column, each measure over the rows shown (under a limit, only those). Omit for nonerow(boolean, required): A last row with the total of each column; charts leave it outcolumn(boolean, required): With a pivot after the aggregate: a Total column with each row across the pivotsubtotals(boolean): Grouped by two or more columns: a subtotal row above each group of every group-by column but the last, as a pivot table's subtotals, with each measure over the group's rows; charts leave them out
formats(array of object): numfmt patterns by output columncolumn(string, required): An output column, by the name it is shown under, after any renameformat(string, required): numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd
removedColumns(array of string): Columns, by their name before renames, to leave out of the rows while keeping the grouping, e.g. group by region and month but show no region column; a split's column is named by its valueskeepGroupsWhere(array of object): Conditions on the grouped rows' dimensions and measures (by their name before renames), all of which must hold, right after the grouping and before the calculations, the sort and the limit, as SQL's HAVING does, so the calculations and the limit only see the rows kept: each region's share among the regions with more than 20 deals. To keep rows by a measure or a calculation while the calculations still cover every group, as for the top 10 of the customers over 1,000,000, use keepRowsBeforeLimit. Needs a dimension or measure and no split- When
kindiscomparekind(compare, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofeq,neq,gt,gte,lt,lte.value(object, required)
- When
kindisinkind(in, required)column(string, required): A column name, exact and case-sensitivevalues(array of object, required)negate(boolean, required)
- When
kindisbetweenkind(between, required)column(string, required): A column name, exact and case-sensitivefrom(object, required)to(object, required)
- When
kindistextkind(text, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofequals,contains,starts_with,ends_with.value(object, required)caseSensitive(boolean, required)negate(boolean, required)
- When
kindisis_blankkind(is_blank, required)column(string, required): A column name, exact and case-sensitivenegate(boolean, required)
- When
kindisrelative_datekind(relative_date, required)column(string, required): A column name, exact and case-sensitiverange(string, required): One ofcurrent,last,next.count(integer or null, required)unit(string, required): One ofday,week,month,quarter,year.complete(boolean): last/next only: whole units, leaving out the current one, e.g. the last 3 complete months on Oct 21 are Jul, Aug and Sep. Omit for the window through todayincludeCurrent(boolean): With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Omit to leave it outtoDate(boolean): current only: the unit so far, through today, e.g. this year to date. Omit for the whole unitearlier(object): current/last only: the same window, this many units earlier: this year to date 1 year earlier is the same dates last year, and the last 3 complete months 3 months earlier are the 3 months before them. Omit for the window itselfcount(integer, required)unit(string, required): One ofday,week,month,quarter,year.
- When
keepRowsBeforeLimit(array of object): Conditions on the grouped rows' dimensions, measures and before-limit calculations (by their name before renames), all of which must hold, after the calculations and before the column order, the sort and the limit, so the limit counts only the rows kept while the calculations still cover every group: the top 10 customers of those over 1,000,000, the regions with over 5% of the total. A condition on a calculation that reads the rows the limit keeps (sum(), offset()) goes in keepRowsWhere. Needs a dimension or measure and no split- When
kindiscomparekind(compare, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofeq,neq,gt,gte,lt,lte.value(object, required)
- When
kindisinkind(in, required)column(string, required): A column name, exact and case-sensitivevalues(array of object, required)negate(boolean, required)
- When
kindisbetweenkind(between, required)column(string, required): A column name, exact and case-sensitivefrom(object, required)to(object, required)
- When
kindistextkind(text, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofequals,contains,starts_with,ends_with.value(object, required)caseSensitive(boolean, required)negate(boolean, required)
- When
kindisis_blankkind(is_blank, required)column(string, required): A column name, exact and case-sensitivenegate(boolean, required)
- When
kindisrelative_datekind(relative_date, required)column(string, required): A column name, exact and case-sensitiverange(string, required): One ofcurrent,last,next.count(integer or null, required)unit(string, required): One ofday,week,month,quarter,year.complete(boolean): last/next only: whole units, leaving out the current one, e.g. the last 3 complete months on Oct 21 are Jul, Aug and Sep. Omit for the window through todayincludeCurrent(boolean): With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Omit to leave it outtoDate(boolean): current only: the unit so far, through today, e.g. this year to date. Omit for the whole unitearlier(object): current/last only: the same window, this many units earlier: this year to date 1 year earlier is the same dates last year, and the last 3 complete months 3 months earlier are the 3 months before them. Omit for the window itselfcount(integer, required)unit(string, required): One ofday,week,month,quarter,year.
- When
keepRowsWhere(array of object): Conditions on the rows' own columns (dimensions, measures and calculations by their name before renames), all of which must hold, after the sort, the limit and every calculation: keep the rank 1 row of the top 10, with its share of the 10. To keep rows before the limit, use keepRowsBeforeLimit. Needs a dimension or measure and no split- When
kindiscomparekind(compare, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofeq,neq,gt,gte,lt,lte.value(object, required)
- When
kindisinkind(in, required)column(string, required): A column name, exact and case-sensitivevalues(array of object, required)negate(boolean, required)
- When
kindisbetweenkind(between, required)column(string, required): A column name, exact and case-sensitivefrom(object, required)to(object, required)
- When
kindistextkind(text, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofequals,contains,starts_with,ends_with.value(object, required)caseSensitive(boolean, required)negate(boolean, required)
- When
kindisis_blankkind(is_blank, required)column(string, required): A column name, exact and case-sensitivenegate(boolean, required)
- When
kindisrelative_datekind(relative_date, required)column(string, required): A column name, exact and case-sensitiverange(string, required): One ofcurrent,last,next.count(integer or null, required)unit(string, required): One ofday,week,month,quarter,year.complete(boolean): last/next only: whole units, leaving out the current one, e.g. the last 3 complete months on Oct 21 are Jul, Aug and Sep. Omit for the window through todayincludeCurrent(boolean): With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Omit to leave it outtoDate(boolean): current only: the unit so far, through today, e.g. this year to date. Omit for the whole unitearlier(object): current/last only: the same window, this many units earlier: this year to date 1 year earlier is the same dates last year, and the last 3 complete months 3 months earlier are the 3 months before them. Omit for the window itselfcount(integer, required)unit(string, required): One ofday,week,month,quarter,year.
- When
- When
typeisset-opstype(set-ops, required)datasheetRef(string, required): An existing datasheet id, or the temporaryId of a datasheet created earlier in this patchparameters(array of object or null): Replaces the datasheet's complete parameter set; omit to keep itkey(string, required)parameter(object, required)- When
typeisstringlabel(string, required)type(string, required)value(string or null, required)
- When
typeisintegerlabel(string, required)type(integer, required)value(integer or null, required)
- When
typeisnumberlabel(string, required)type(number, required)value(number or null, required)
- When
typeisbooleanlabel(string, required)type(boolean, required)value(boolean or null, required)
- When
typeisdatelabel(string, required)type(date, required)value(string (date) or null, required)
- When
typeistimestamplabel(string, required)type(timestamp, required)value(string (date-time) or null, required)
- When
ops(array of object, required): The complete op list after the reads, in run order: an op whose ref is an existing op id keeps that op, and existing ops left out are removed. Only on a datasheet with a join step: keep the join first with steps after it; on any other, use set-queryref(string, required): An existing op id to keep that op, or a new short nametitle(string or null): Omit to keep a kept op's title; a step op without one shows its step summaryinputs(array of object or null): Omit to keep a kept op wired as it is (one that read the op above reads its new op above). A new op reads the op above, which SQL reads asinput; a new first op reads the datasheet's one read, assourceor the read's aliasalias(string or null): SQL ops: the name the statement reads this input byfrom(string, required): previous: the op above (above the first op, the datasheet's one read); op: the one ref names One ofprevious,op.ref(string or null): op: the ref of an earlier op in this list, or a read's operation id or alias
step(object or null): A step op's call; on a kept op, send it only to change itfn(string, required): One ofselect,rename,filter,sort,limit,aggregate,pivot,window,join.params(object, required): The params of its fn, whose exact JSON Schema getReportDataGuide answers when you name the fn in stepFunctions
formats(array of object or null): Replaces the datasheet's formats; omit to keep themcolumn(string, required): An output column, by the name it is shown under, after any renameformat(string, required): numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd
- When
typeisset-read-typetype(set-read-type, required)datasheetRef(string, required): An existing datasheet id, or the temporaryId of a datasheet created earlier in this patchreadType(string, required): aggregated: its data, as the tool displays it; raw: its tidy read, to transform; image: its picture One ofaggregated,raw,image.
- When
typeisset-unpivottype(set-unpivot, required)datasheetRef(string, required): An existing datasheet id, or the temporaryId of a datasheet created earlier in this patchunpivot(object or null): The columns of the range this datasheet reads to turn into rows, which every datasheet reading the range raw gets, and this one then reads it raw. Null takes it out; omit to keep the range's current onerows(array of object, required): One output row per input row and entry, in this order; the input columns no entry names repeat on eachlabel(string, required): What the name column says on this row, such as the column's name or "2022"columns(array of string or null, required): The input column for each of values, in order; null leaves that value empty on this row
name(string, required): The column that holds each row's label, such as "Year"values(array of string, required): The columns the values go in: one, such as "Value", or one per measure
fillDown(object or null): Run first, as Power Query fills down: each heading row, a label with every other cell empty, becomes the value of a new column on the rows under it, and the heading row is left out. Null takes it out; omit to keep the range's current onecolumn(string, required): The column holding the row labels, headings includedinto(string, required): The new column the headings fill, such as "Section"
removeRows(array of object or null): Run after fillDown: rows matching any of these are left out, such as the sheet's own totals that add up the rows above them. Null takes them out; omit to keep the range's current ones- When
kindiscomparekind(compare, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofeq,neq,gt,gte,lt,lte.value(object, required)
- When
kindisinkind(in, required)column(string, required): A column name, exact and case-sensitivevalues(array of object, required)negate(boolean, required)
- When
kindisbetweenkind(between, required)column(string, required): A column name, exact and case-sensitivefrom(object, required)to(object, required)
- When
kindistextkind(text, required)column(string, required): A column name, exact and case-sensitiveop(string, required): One ofequals,contains,starts_with,ends_with.value(object, required)caseSensitive(boolean, required)negate(boolean, required)
- When
kindisis_blankkind(is_blank, required)column(string, required): A column name, exact and case-sensitivenegate(boolean, required)
- When
kindisrelative_datekind(relative_date, required)column(string, required): A column name, exact and case-sensitiverange(string, required): One ofcurrent,last,next.count(integer or null, required)unit(string, required): One ofday,week,month,quarter,year.complete(boolean): last/next only: whole units, leaving out the current one, e.g. the last 3 complete months on Oct 21 are Jul, Aug and Sep. Omit for the window through todayincludeCurrent(boolean): With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Omit to leave it outtoDate(boolean): current only: the unit so far, through today, e.g. this year to date. Omit for the whole unitearlier(object): current/last only: the same window, this many units earlier: this year to date 1 year earlier is the same dates last year, and the last 3 complete months 3 months earlier are the 3 months before them. Omit for the window itselfcount(integer, required)unit(string, required): One ofday,week,month,quarter,year.
- When
- When
Response 200
Success
application/json
conversionError(string): Why the drafts could not be turned into slides, when one could not.slidesis empty then: fix it and render again.datasheetChangesError(string): Why thedatasheetChangesfailed, when they did, naming the datasheet and step.slidesis empty then: fix them withpreviewReportDatasheetChangesand render again.slides(array of object, required): The rendered drafts, in the order they were sent.id(string, required): The slide, by the id it was sent with.issues(array of string, required): What to fix before the draft can become a slide: text that overflows, elements outside the slide, styles the converter drops, colours outside the theme.notes(array of string, required): What to check by eye. These block nothing.image(string (base64) or null, required): The draft as it rendered, as a PNG image encoded in base64. Null when it could not be drawn.