Discard Analytics Page Draft
Throw away the draft and go back to the published version. The discarded changes are kept as a backup version you can restore.
Path
The page id, from List Analytics Pages.
Headers
Required. The revision you last read: the revision from its read (Get Workflow Definition for a workflow, Get Analytics Page Definition for an Analytics page, Get Analytics Data Source Table for a fixed source's table), or meta.revision from your last change to it. The ETag header of either answer is the same value, ready to send back. The change applies only if nobody changed it since: otherwise it answers 412 with the current revision in error.details.revision. Send it as a strong entity tag ("r_..."): a weak one (W/"...") never matches and answers 412. Without it the request answers 428.
Optional. The id of the organization to act in. Leave it out to act in the API key's own organization. Here a key acts in another organization only as one of its members: with "Use this key across all of your organizations" on, in an organization its creator belongs to with a role. Child organizations and MindCloud staff access do not reach this endpoint. Every response's X-Company-Id header names the organization it acted in. See Organizations.
Body
The receipt a 409 ANALYTICS_EMBED_CONFIRMATION_REQUIRED answered, to confirm the change to published embeds.
Only after a 409 ANALYTICS_EMBED_CONFIRMATION_REQUIRED for the same request: the confirmationReceipt from its error.details, confirming the change to the published embeds it lists.
Response fields
idstringThe page id.
namestringThe page title.
descriptionstringThe line under the title, or null.
typestringWhat kind of page it is.
pageAn ordinary page in the sidebar.reportA report: one written panel that fills the page.subpageA page opened from a click on another page, not listed on its own.
accessstringWhat the key's creator can do on it.
ownerThe key's creator owns the page.editShared with the creator to edit.viewShared with the creator to view.
ownerIdstringThe owner's userId, from List Members.
ownerNamestringThe owner's name.
folderIdstringThe creator's folder the page is filed in (from List Analytics Folders), or null when it is unfiled or shared with them.
iconstringThe page icon id, or null.
iconColorstringThe page icon color, or null.
isPausedbooleanWhether its data stopped refreshing, by the page itself or a folder above it.
pausedByFolderIdstringThe folder that paused it (from List Analytics Folders), or null.
hasSharesbooleanWhether anyone besides the owner can open it.
linkedFromPageIdsarray of stringThe pages whose clicks open this one, from List Analytics Pages.
createdOndateWhen it was created.
updatedOndateWhen the page or one of its panels last changed.
fullWidthbooleanWhether the page spans the whole window.
showPanelSourcesbooleanWhether each panel shows its data sources' app icons.
themeIdstringThe theme the page wears, from List Analytics Themes, or null to follow its folder or the company default.
styleobjectStyle overrides on top of the theme, by option, or null.
variablesarray of objectsThe page variables (its filters), in page order, in the shape Set Analytics Page Variables takes.
namestringThe variable name. Queries read it as $<name>.
typestringWhat it holds.
dateRangeA date window.selectOne value, or several with multiple, from a list of choices.searchFree text a viewer types.toggleAn on or off switch.
controlstringchip shows a picker on the page; none has no picker.
chipnone
labelstringThe picker label.
defaultobjectWhat the page opens with: a date preset or range, all or a choice value, or true or false for a toggle.
multiplebooleanA select that takes several choices.
labeledBystringA select set by a row click: the clicked row field that names the value.
optionsobjectA select: where its choices come from, as dataSourceId with query or valueField and labelField, or typed values.
presetsarrayA dateRange: its preset menu, in order.
showCalendarbooleanA dateRange: false allows presets only.
timeGranularitybooleanA dateRange: custom ranges carry times.
tabsarray of objectsThe page tabs in order, or empty when the page has none.
idstringThe tab id.
namestringThe tab name.
versionobjectWhich version this answer shows and where the page stands.
modestringdraft when it shows the draft, published when it shows the version viewers see.
draftpublished
publishedVersionnumberThe number of the version viewers see, or null when never published.
publishedVersionIdstringIts id, from List Analytics Page Versions, or null.
publishedOndateWhen it was published, or null.
hasUnpublishedChangesbooleanEditors only: whether the draft differs from the published version. Null for viewers and never-published pages.
panelsarray of objectsThe panels in this version, with where each sits, as Get Analytics Panel answers them (which answers one in full).
idstringThe panel id.
namestringThe panel's title, shown in its card header.
placementstringWhere the panel shows.
pageOn the page grid.drillOff the grid: it opens when a click on another panel drills into it, narrowed by the clicked row.
displayTypestringHow the panel draws its rows. One of: table, bar, line, combo, pareto, bump, scatter, bubble, quadrant, pie, treemap, heatmap, pivot, cohort, statusgrid, activity, funnel, waterfall, sankey, chord, statetimeline, timeline, stat, trend, progress, gauge, bullet, report, document, workbook, html, map, region, tabs, group.
tableDraws a table panel.barDraws a bar panel.lineDraws a line panel.comboDraws a combo panel.paretoDraws a pareto panel.bumpDraws a bump panel.scatterDraws a scatter panel.bubbleDraws a bubble panel.quadrantDraws a quadrant panel.pieDraws a pie panel.treemapDraws a treemap panel.heatmapDraws a heatmap panel.pivotDraws a pivot panel.cohortDraws a cohort panel.statusgridDraws a statusgrid panel.activityDraws a activity panel.funnelDraws a funnel panel.waterfallDraws a waterfall panel.sankeyDraws a sankey panel.chordDraws a chord panel.statetimelineDraws a statetimeline panel.timelineDraws a timeline panel.statDraws a stat panel.trendDraws a trend panel.progressDraws a progress panel.gaugeDraws a gauge panel.bulletDraws a bullet panel.reportDraws a report panel.documentDraws a document panel.workbookDraws a workbook panel.htmlDraws a html panel.mapDraws a map panel.regionDraws a region panel.tabsDraws a tabs panel.groupDraws a group panel.
layoutobjectThe panel's place on the page grid. Null when it was never placed (it then flows full width in creation order), and for a drill-down or a panel inside a container.
xnumberLeftmost column on the 12-column grid, 0-11.
ynumberTop row, from 0.
wnumberWidth in columns, 1-12.
hnumberHeight in rows (one row is about 48px). Null when the panel is as tall as what it shows.
tabIdstringThe page tab the panel sits on, from Get Analytics Page. Null on a page without tabs, and for a drill-down or a panel inside a container.
containedBystringThe container panel (tabs or group) it renders inside, or null when it sits on the grid or is a drill-down.
revisionstringThe draft revision, when this answer shows the draft to an editor: send it in If-Match with the next change to the page. Null otherwise.