{"openapi":"3.1.0","info":{"title":"Rollstack API","version":"1","description":"Rollstack is the AI presentation platform for business reporting. Every Rollstack report is a slide deck built from your data, in your own template, and kept current.\n\nThe API lets your own code, scripts and AI clients do what you do in the app:\n\n- Find and create reports, import your PowerPoint and Google Slides decks, and ask the slides agent to build and change slides, on brand.\n- Add data from any data source:\n  - Data warehouses and lakehouses: Snowflake, Databricks, Google BigQuery, Amazon Redshift, Microsoft Fabric, Azure Synapse Analytics, Oracle Autonomous Data Warehouse, Teradata, ClickHouse, DuckDB and more\n  - Semantic layers: dbt Semantic Layer, LookML, Snowflake semantic views, Databricks metric views, Cube, AtScale and more\n  - BI tools: Power BI, Tableau, Qlik Sense, Looker, ThoughtSpot, Domo, Sigma, Metabase, Amazon QuickSight, Mode, Omni, Hex, Lightdash and more\n  - CRMs and business applications: Salesforce, Dynamics 365, HubSpot, SAP, NetSuite, Workday, Zendesk, Gainsight, Google Analytics and more\n  - Spreadsheets and files: Excel, Google Sheets, CSV, PDFs, Word, Google Docs, SharePoint, OneDrive, Google Drive, JSON and more\n  - Any other application or database through its API\n- Refresh reports from their sources. A refresh reruns the same deterministic queries instead of regenerating the report, and uses AI only to repair the calculations and slides the new data broke.\n- Create a version of a report for each client, region, team or product line with Bursts.\n- Export reports to PowerPoint or PDF.\n- Share and schedule reports on any schedule, hourly to yearly or a cron, and email each stakeholder their own version.\n- Owners and admins can also manage the organization, its members and its data source connections.\n\nAI assistants such as Claude and ChatGPT can also use Rollstack through its MCP server, included on every plan.\n\n## Getting started\n\n1. In Rollstack, open **Settings \u2192 Connected apps \u2192 API keys** and create a key with the scopes you need. Copy it: it starts with `rsk_` and is shown only once.\n2. Send it as a bearer token in the `Authorization` header of every request.\n3. Call `GET \/me` to check the key: it answers the user and organization it belongs to and the scopes it carries.\n\n```bash\ncurl https:\/\/api.rollstack.com\/public\/v1\/me \\\n  -H \"Authorization: Bearer rsk_...\"\n```\n\n## Authentication\n\nAn API key acts as the user who created it, in the one organization it was created in, and sees only what that user sees in the app. It never acts with more than the role its user had when they created it, and a key whose user is now a member loses the scopes only owners and admins may grant.\n\nKeys expire on the date set when they were created, if any. A user can revoke their keys in the app at any time, and deactivating a user revokes all of theirs. A missing, unknown, revoked or expired key answers 401.\n\n## Scopes\n\nMost endpoints need one scope, shown on their pages, and answer 403 with `api-key-missing-scope` when the key doesn't carry it; `GET \/me` works with any valid key. Give a key only the scopes it needs. Some endpoints are also limited to owners and admins whatever the scope.\n\n| Scope | Allows | Owners and admins only |\n| --- | --- | --- |\n| `organization:read` | Read the organization's settings and its LLM provider |  |\n| `organization:write` | Change the organization's settings and its LLM provider | Yes |\n| `users:read` | List members and pending invites | Yes |\n| `users:write` | Change members' roles, deactivate and reactivate them, invite users and delete invites | Yes |\n| `connections:read` | List connections and their users, search their dashboards and the user's spreadsheets |  |\n| `connections:write` | Create, update and delete connections, and manage their users and admins |  |\n| `credentials:write` | Replace a connection's credentials |  |\n| `smtp:read` | List SMTP connections |  |\n| `smtp:write` | Add and delete SMTP connections |  |\n| `slide_decks:read` | List folders and reports, read their content, datasheets, schedules, email settings, messages and runs, and export them |  |\n| `slide_decks:write` | Create, update, delete, share and schedule reports, add their sources and upload files |  |\n| `slide_decks:run` | Message the slides agent, and start and cancel runs |  |\n| `slide_decks:email` | Set up and send report emails |  |\n\n## Requests and responses\n\n- Bodies are JSON, except the workbook, document or PowerPoint file a file upload can take as `multipart\/form-data`. Fields an endpoint doesn't accept are rejected rather than ignored.\n- Dates are ISO 8601 strings in UTC. Ids are strings, except users', which are numbers.\n- `GET \/reports` answers pages of up to `limit` reports: pass the `nextCursor` it answers as `cursor` for the next page, until it is null. Other lists answer every item at once.\n- Work that takes a while answers `202 Accepted` with an id right away: a message to the slides agent, a run, or a batch of variants added to a burst. Follow it with its `GET`, and the runs a burst starts with `GET \/bursts\/{id}\/runs`: each waits up to `waitSeconds` (20 by default, 30 at most) for the work to finish and answers as soon as it does, so call it again while the status is `queued` or `running`.\n- A call that reads a slow source, such as a large dashboard, stops waiting after about 45 seconds with `504` `datasheet-source-still-reading` while the read goes on. Wait for it with `GET \/reports\/{id}\/datasheets` and `waitSeconds`, until no datasheet has a `readingSince`, then send the same call again.\n\n## Errors\n\nEvery error answers a JSON body with a stable, machine-readable `code` and a `message` for people, such as `{ \"code\": \"api-key-missing-scope\", \"message\": \"This call needs the slide_decks:write scope, which this API key doesn't have. Use a key with it, or connect your AI client to Rollstack again and allow it.\" }`.\n\n| Status | Means |\n| --- | --- |\n| 400 | The request is invalid. `data-validation-error` says which fields failed and why |\n| 401 | The key is missing, unknown, revoked (`api-key-invalid`) or expired (`api-key-expired`), or its user left the organization (`api-key-organization-left`). The `WWW-Authenticate` header says where to sign in with OAuth |\n| 403 | The key lacks the endpoint's scope (`api-key-missing-scope`, with the scope in the `WWW-Authenticate` header), or the user isn't an owner or admin (`require-admin-permission`) |\n| 404 | The resource or path doesn't exist |\n| 409 | A request with the same `Idempotency-Key` is still running (`idempotency-key-in-progress`) |\n| 422 | The `Idempotency-Key` was already used for a different request (`idempotency-key-reused`) |\n| 428 | A call that emails people or deletes reports (`deleteReport`, `approveReportMessageProposal`, `startReportRun`, `batchStartReportRuns`, `sendReportEmail`, `startBurstRun`, `sendBurstEmailConfig`, `sendBurstVariantEmails`, `deleteBurst`, `removeBurstVariants`), made with an OAuth token or over MCP, waits for the user to confirm it in Rollstack (`confirmation-required`), at the link in the message |\n| 429 | Too many requests (`rate-limit-exceeded`): wait the seconds in the `Retry-After` header. A data query, datasheet change preview or save, or a slide render with datasheet changes, sent while another of yours still runs (`query-already-running`): they run one at a time, so wait the seconds in the `Retry-After` header, or until that one answers, then send it again |\n| 5xx | Something failed on our side: retry later |\n\n## Idempotency\n\nA request that times out may have run or not. To retry a write safely, send an `Idempotency-Key` header with a unique value, such as a UUID, on any `POST`, `PUT`, `PATCH` or `DELETE`, and send the same value when you retry it. MCP write tools take the same value as their `idempotencyKey` argument.\n\n```bash\ncurl -X POST https:\/\/api.rollstack.com\/public\/v1\/reports \\\n  -H \"Authorization: Bearer rsk_...\" \\\n  -H \"Idempotency-Key: 6f1c2a4e-9b7d-4e2f-8a3c-1d5e7f9b0a2c\" \\\n  -H \"Content-Type: application\/json\" \\\n  -d '{\"name\": \"Weekly sales\"}'\n```\n\n- The first request with a key runs, and its response is kept for 24 hours. A retry with the same key and the same request answers that response, with its status, and runs nothing.\n- Keys belong to the API key and the endpoint, so another key or endpoint never sees them. A tool call and a REST request to the same endpoint share them.\n- A retry with the same key but a different body, path or query answers 422 `idempotency-key-reused`. Use a new key for a new request.\n- A retry while the first request is still running answers 409 `idempotency-key-in-progress`: retry it later with the same key. A request that stopped before it answered keeps answering 409 until its key expires, so check whether it took effect before you send it again with a new key.\n- A request that fails, such as with a 4xx or 5xx, keeps nothing, so retry it with the same key.\n- When keys can't be checked, a request with one answers 503 `idempotency-unavailable` and runs nothing.\n- Without the header, a request runs every time it is sent. `GET` requests ignore it.\n\n## Rate limits\n\nEach API key may make 120 requests a minute. Calls that cost far more than a read have lower limits of their own, counted per user across all their keys and AI clients:\n\n| Calls | Limit |\n| --- | --- |\n| Messages to the slides agent | 6 a minute |\n| Exports and slide images | 10 a minute |\n| Imports of a deck from a link or a file, and conversions of older reports | 10 a minute |\n| Datasheet data reads | 30 a minute |\n| Report viewer slide and template cover loads (MCP) | 60 a minute |\n| Email sends, test sends included | 5 a minute |\n| LLM provider saves | 10 a minute for the organization |\n\nResponses report how much of the key's per-minute limit is left, so a client can slow down before it gets a 429: `RateLimit-Limit`, `RateLimit-Remaining`, `RateLimit-Reset` (seconds until the minute resets) and `RateLimit-Policy`. The lower limits above aren't in these headers. Past any limit, calls answer 429 with a `Retry-After` header: wait that long before calling again, whatever `RateLimit-Remaining` says. An MCP tool call past any of these limits returns an error result instead, with the `rate-limit-exceeded` code and a message that says how long to wait.\n\n## Versioning\n\nThe version is in the path: `\/public\/v1`. Changes within v1 only add: new endpoints, new optional request fields, new response fields and new values in fields such as a status or an error `code`, so ignore fields you don't know and handle values you don't know. An endpoint or field that gets replaced keeps working, and its page says it is deprecated and what replaces it. A change that would break existing calls comes as a new version under a new path, with v1 still running alongside it.\n\n### Deprecation and sunset\n\nA deprecated endpoint or field is marked `deprecated` in the OpenAPI document and on its page, and keeps working for as long as v1 does. When a new version replaces v1, v1 keeps running for at least 12 months after it ships. Through that time, v1 responses carry a `Deprecation` header with the date v1 was deprecated (RFC 9745) and a `Sunset` header with the date it stops answering (RFC 8594), and both dates are announced in the [product updates](https:\/\/docs.rollstack.com\/changelog).\n\n## MCP server\n\nAI clients such as Claude can also use this API as an MCP server: POST JSON-RPC to `\/public\/v1\/mcp` over Streamable HTTP with the same bearer API key, or sign in with OAuth from a client that supports it. Its tools, named by operationId, find, build, edit, run, export, share, schedule and email reports, upload files and message the slides agent. It lists only the tools the key can call. Everything else, such as deleting reports or managing members or connections, is REST-only.\n\n### Connect an AI assistant\n\nUse Rollstack when someone wants a slide deck or report built or kept up to date from their company's data, such as warehouses, BI dashboards and spreadsheets, in their own template, refreshed on a schedule or emailed.\n\nAdd the MCP server, `https:\/\/api.rollstack.com\/public\/v1\/mcp`, to the assistant and sign in with Rollstack:\n\n- **Claude** (claude.ai and the desktop app): in Connectors, add a custom connector with this URL, then Connect. On Team and Enterprise plans an owner adds it in the organization's settings first.\n- **ChatGPT**: Settings \u2192 Plugins \u2192 MCPs \u2192 Add \u2192 Add MCP server, with Streamable HTTP and this URL. Save, then Authenticate. On Business and Enterprise plans an admin allows custom servers first.\n- **Claude Code**: `claude mcp add --transport http rollstack https:\/\/api.rollstack.com\/public\/v1\/mcp`, then `\/mcp` to sign in.\n- **Cursor**: add `{ \"mcpServers\": { \"rollstack\": { \"url\": \"https:\/\/api.rollstack.com\/public\/v1\/mcp\" } } }` to `~\/.cursor\/mcp.json`, then sign in when it asks.\n- **Other clients**: send an API key as a bearer token.\n\nSigning in asks the user to approve the scopes the assistant asked for. The assistant can then do what they approved, within their role: a member can't grant the scopes only owners and admins have. Each sign-in creates a key that lasts 90 days and that the assistant refreshes on its own, listed in [Settings \u2192 Connected apps](https:\/\/app.rollstack.com\/settings\/connected-apps) as a Connected app, where the user can revoke it.\n\nThings to ask it:\n\n- \"Build a quarterly business review deck from our Tableau dashboards\"\n- \"Refresh the data in my weekly sales report and email it to the team\"\n- \"Create one deck per region from this template\"\n- \"Schedule the board report to update every Monday\"\n\n| Tool | Scope | Owners and admins only |\n| --- | --- | --- |\n| `listReports` | `slide_decks:read` |  |\n| `getReport` | `slide_decks:read` |  |\n| `convertReport` | `slide_decks:write` |  |\n| `createReport` | `slide_decks:write` |  |\n| `duplicateReport` | `slide_decks:write` |  |\n| `updateReport` | `slide_decks:write` |  |\n| `batchGetReports` | `slide_decks:read` |  |\n| `listTemplates` | `slide_decks:read` |  |\n| `showTemplates` | `slide_decks:read` |  |\n| `getTemplatePickerCovers` | `slide_decks:read` |  |\n| `createTemplate` | `slide_decks:write` |  |\n| `updateTemplate` | `slide_decks:write` |  |\n| `deleteTemplate` | `slide_decks:write` |  |\n| `applyReportTemplate` | `slide_decks:write` |  |\n| `listReportVersions` | `slide_decks:read` |  |\n| `saveReportVersion` | `slide_decks:write` |  |\n| `restoreReportVersion` | `slide_decks:write` |  |\n| `getReportMessage` | `slide_decks:read` |  |\n| `getReportMessageProgress` | `slide_decks:read` |  |\n| `sendReportMessage` | `slide_decks:run` |  |\n| `approveReportMessageProposal` | `slide_decks:run` |  |\n| `cancelReportMessage` | `slide_decks:run` |  |\n| `rejectReportMessageProposal` | `slide_decks:run` |  |\n| `listMemories` | `slide_decks:read` |  |\n| `createMemory` | `slide_decks:write` |  |\n| `updateMemory` | `slide_decks:write` |  |\n| `deleteMemory` | `slide_decks:write` |  |\n| `listReportRuns` | `slide_decks:read` |  |\n| `getReportRun` | `slide_decks:read` |  |\n| `listReportSyncs` | `slide_decks:read` |  |\n| `listRuns` | `slide_decks:read` |  |\n| `getRun` | `slide_decks:read` |  |\n| `getRunsExport` | `slide_decks:read` | Yes |\n| `exportRuns` | `slide_decks:read` | Yes |\n| `startReportRun` | `slide_decks:run` |  |\n| `batchStartReportRuns` | `slide_decks:run` |  |\n| `cancelReportRun` | `slide_decks:run` |  |\n| `cancelRunsExport` | `slide_decks:read` | Yes |\n| `getReportCloudExport` | `slide_decks:read` |  |\n| `updateReportCloudExport` | `slide_decks:write` |  |\n| `exportReport` | `slide_decks:read` |  |\n| `getReportContent` | `slide_decks:read` |  |\n| `getReportDesign` | `slide_decks:read` |  |\n| `getReportSlideHtml` | `slide_decks:read` |  |\n| `getReportSlideImages` | `slide_decks:read` |  |\n| `showReport` | `slide_decks:read` |  |\n| `getReportViewerSlideImages` | `slide_decks:read` |  |\n| `arrangeReportSlides` | `slide_decks:write` |  |\n| `updateReportSlideBurst` | `slide_decks:write` |  |\n| `updateReportTheme` | `slide_decks:write` |  |\n| `renderReportSlides` | `slide_decks:write` |  |\n| `saveReportSlides` | `slide_decks:write` |  |\n| `getDataset` | `slide_decks:read` |  |\n| `createDatasetUpload` | `slide_decks:write` |  |\n| `createDocument` | `slide_decks:write` |  |\n| `createDataset` | `slide_decks:write` |  |\n| `replaceDataset` | `slide_decks:write` |  |\n| `deleteDataset` | `slide_decks:write` |  |\n| `getReportDataGuide` | `slide_decks:read` |  |\n| `listReportDatasheets` | `slide_decks:read` |  |\n| `getReportDatasheet` | `slide_decks:read` |  |\n| `getReportDatasheetData` | `slide_decks:read` |  |\n| `addReportDatasheets` | `slide_decks:write` |  |\n| `removeReportDatasheet` | `slide_decks:write` |  |\n| `addReportDashboardElements` | `slide_decks:write` |  |\n| `previewReportDatasheetChanges` | `slide_decks:write` |  |\n| `queryReportData` | `slide_decks:write` |  |\n| `saveReportDatasheetChanges` | `slide_decks:write` |  |\n| `getReportParameters` | `slide_decks:read` |  |\n| `createReportParameter` | `slide_decks:write` |  |\n| `updateReportParameter` | `slide_decks:write` |  |\n| `deleteReportParameter` | `slide_decks:write` |  |\n| `getReportViews` | `slide_decks:read` |  |\n| `shareReport` | `slide_decks:write` |  |\n| `unshareReport` | `slide_decks:write` |  |\n| `batchShareReports` | `slide_decks:write` |  |\n| `listReportComments` | `slide_decks:read` |  |\n| `createReportComment` | `slide_decks:write` |  |\n| `resolveReportComment` | `slide_decks:write` |  |\n| `getReportSchedules` | `slide_decks:read` |  |\n| `updateReportSchedules` | `slide_decks:write` |  |\n| `batchUpdateReportSchedules` | `slide_decks:write` |  |\n| `listEmails` | `slide_decks:read` |  |\n| `getReportEmailConfig` | `slide_decks:read` |  |\n| `listReportEmails` | `slide_decks:read` |  |\n| `updateReportEmailConfig` | `slide_decks:email` |  |\n| `sendReportEmail` | `slide_decks:email` |  |\n| `sendReportTestEmail` | `slide_decks:email` |  |\n| `listBursts` | `slide_decks:read` |  |\n| `getBurstConversion` | `slide_decks:read` |  |\n| `listBurstEmailConfigs` | `slide_decks:read` |  |\n| `getBurstRun` | `slide_decks:read` |  |\n| `getBurstSettings` | `slide_decks:read` |  |\n| `listBurstVariants` | `slide_decks:read` |  |\n| `getBurstVariantBatch` | `slide_decks:read` |  |\n| `listReportSyncFilters` | `slide_decks:read` |  |\n| `addBurstVariants` | `slide_decks:write` |  |\n| `convertBurst` | `slide_decks:write` |  |\n| `createBurst` | `slide_decks:write` |  |\n| `createBurstEmailConfig` | `slide_decks:email` |  |\n| `startBurstRun` | `slide_decks:run` |  |\n| `sendBurstEmailConfig` | `slide_decks:email` |  |\n| `sendBurstVariantEmails` | `slide_decks:email` |  |\n| `renameBurst` | `slide_decks:write` |  |\n| `updateBurstVariantEmailSettings` | `slide_decks:email` |  |\n| `updateBurstEmailConfig` | `slide_decks:email` |  |\n| `updateBurstSettings` | `slide_decks:write` |  |\n| `updateBurstVariantRecipients` | `slide_decks:email` |  |\n| `updateBurstFilters` | `slide_decks:write` |  |\n| `deleteBurst` | `slide_decks:write` |  |\n| `deleteBurstEmailConfig` | `slide_decks:email` |  |\n| `reapplyBurstFilters` | `slide_decks:write` |  |\n| `removeBurstVariants` | `slide_decks:write` |  |\n| `sendBurstEmailConfigTest` | `slide_decks:email` |  |\n| `listConnections` | `connections:read` |  |\n| `searchDashboards` | `connections:read` |  |\n| `getDashboard` | `connections:read` |  |\n| `searchModels` | `connections:read` |  |\n| `searchTables` | `connections:read` |  |\n| `searchSpreadsheets` | `connections:read` |  |\n| `getSpreadsheet` | `connections:read` |  |\n| `listSmtpConnections` | `smtp:read` |  |\n| `listFolders` | `slide_decks:read` |  |\n| `getFolder` | `slide_decks:read` |  |\n| `createFolder` | `slide_decks:write` |  |\n| `updateFolder` | `slide_decks:write` |  |\n| `shareFolder` | `slide_decks:write` |  |\n| `unshareFolder` | `slide_decks:write` |  |\n| `submitFeedback` | Any valid key |  |\n| `listMembers` | `users:read` | Yes |"},"servers":[{"url":"https:\/\/api.rollstack.com\/public\/v1"}],"security":[{"apiKey":[]},{"oauth2":[]}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","description":"A personal API key, starting with rsk_"},"oauth2":{"type":"oauth2","flows":{"authorizationCode":{"authorizationUrl":"https:\/\/api.rollstack.com\/authorize","tokenUrl":"https:\/\/api.rollstack.com\/token","scopes":{"organization:read":"Read the organization's settings and its LLM provider","organization:write":"Change the organization's settings and its LLM provider","users:read":"List members and pending invites","users:write":"Change members' roles, deactivate and reactivate them, invite users and delete invites","connections:read":"List connections and their users, search their dashboards and the user's spreadsheets","connections:write":"Create, update and delete connections, and manage their users and admins","credentials:write":"Replace a connection's credentials","smtp:read":"List SMTP connections","smtp:write":"Add and delete SMTP connections","slide_decks:read":"List folders and reports, read their content, datasheets, schedules, email settings, messages and runs, and export them","slide_decks:write":"Create, update, delete, share and schedule reports, add their sources and upload files","slide_decks:run":"Message the slides agent, and start and cancel runs","slide_decks:email":"Set up and send report emails"}}}}},"schemas":{"Error":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"code":{"type":"string","description":"A stable, machine-readable code for the error, such as `api-key-missing-scope` or `data-validation-error`. Use it, rather than `message`, to handle specific errors in your code."},"message":{"type":"string","description":"A human-readable explanation of what went wrong, to log or show to people. When the request's path parameters, query or body are invalid (`data-validation-error`), it lists each invalid field by its path, with the problem, such as `body.emails.0: Invalid email address`."}},"required":["code","message"],"additionalProperties":false}}},"tags":[{"name":"Reports","description":"Find, create and manage reports. A report lives in a folder, has one owner, and is shared with other members who can view or edit it. Each report answers the permission the user has on it and a link that opens it in Rollstack.\n\nTo act on many reports in one call, `batchGetReports`, `batchStartReportRuns`, `batchShareReports` and `batchUpdateReportSchedules` take up to 50 at once. Each answers one result per report, `done` or `failed` with the error the call for that report alone would answer, so you know which ones to retry.\n\nMost reports are slide decks built in Rollstack, whose `type` is `SlideDeck`. Older reports update a file in Google Drive or OneDrive, such as a Google Slides presentation, or send an email. Every report can be listed, read, renamed, moved, deleted, shared, scheduled, run and emailed, and the syncs of an older report listed. An older report that updates a Google Slides presentation or a PowerPoint file converts into a slide deck with `convertReport`, and a burst of such reports into a burst of slide decks with `convertBurst`. The other `\/reports\/{id}` endpoints take `SlideDeck` reports only, as their `id` says, and return `400` for other types.\n\nTo fill a new report, add its data in Datasheets, then ask the slides agent in Chat. To bring in an existing PowerPoint or Google Slides deck with its slides, pass its link to `createReport`. To refresh an existing report, start a run."},{"name":"Templates","description":"The look a slide deck is built in: its theme, slide masters, layouts and slide size. Members import their company's templates from PowerPoint or Google Slides in the app, keep them to themselves or share them with the organization, and every organization also has Rollstack's own.\n\nList the ones the user can use with `listTemplates`, start a new report in one with `templateId` in `createReport`, or switch an existing report to one with `applyReportTemplate`.\n\nImport a company template from a Google Slides presentation or a PowerPoint file with `createTemplate`, rename it or share it with the organization with `updateTemplate`, and delete it with `deleteTemplate`."},{"name":"Versions","description":"A slide deck's Version history, as in the app: Rollstack saves a version while the report is edited, around each run, before and after each change of the slides agent, and before a template is applied or a version restored.\n\nTake a report back to a version with `restoreReportVersion`: to undo what the slides agent did, pass its reply's `versionBeforeId`. Find others with `listReportVersions`, and save one yourself with `saveReportVersion` before a change the user may want to take back. A restore saves the report as it was first, so it can be undone too."},{"name":"Chat","description":"Ask the slides agent to build or change a report, or to answer a question about it, as in the chat of the app.\n\n1. Send a message with `sendReportMessage`. It answers at once with the message id.\n2. Call `getReportMessage` until its status is `completed` or `failed`. Each call waits up to `waitSeconds` for the agent to finish.\n3. Check the slides it changed with `getReportSlideImages` or `getReportContent`, passing the replies' `changedSlideIds`.\n4. A reply can propose a change to the report's schedules, email or parameters, or to send it by email, instead of making it. Show the user its `proposal`, then decide it as they say with `approveReportMessageProposal` or `rejectReportMessageProposal`.\n\nContinue the conversation by sending the next message with the same `chatId`. Every chat also shows in the app, with a link in `appUrl`."},{"name":"Memories","description":"What the slides agent remembers of how you like your decks, such as your fiscal year or how you name regions, as in the Slides settings of the app. It learns them in your chats and reads them while your organization has slide memories on and you have it remember your preferences. They are yours alone: another member has their own.\n\nSee them with `listMemories`, add one with `createMemory`, for all your reports or one of them, change one with `updateMemory` and forget one with `deleteMemory`."},{"name":"Runs","description":"Update a report from its sources. A run reads every datasheet again, or only the ones you pass, recalculates the report's numbers, and repairs with AI the calculations and slides the new data broke. Schedules start the same run.\n\nOn a report whose `type` isn't `SlideDeck`, a run refreshes every visualization instead, as Update in the app does. It updates the report's file, such as a Google Slides presentation; an `Email` report has no file. Recipients get the report by email when its email trigger is `all`. Its `errors` then name the visualizations it could not refresh.\n\nStart a run, then follow it with `getReportRun` until it ends. A report runs once at a time: starting a run while one is going answers that run instead. To run up to 50 whole reports in one call, use `batchStartReportRuns`.\n\n`listRuns` lists the runs that ended with the filters of the app's Update runs page, and `getRun` gives one with each visualization and insight it updated. Owners and admins can export them to CSV as that page does, and optionally each visualization and insight the runs updated: start an export with `exportRuns`, then get its files with `getRunsExport`, or stop it with `cancelRunsExport`."},{"name":"Exports","description":"Download a report as a PDF or a PowerPoint file, as viewers see it. The export answers a link to the file, valid for 15 minutes, so download it right away.\n\nExports render the whole report, so they have a lower rate limit than other calls.\n\nTo keep a copy in Google Drive, OneDrive or SharePoint that stays up to date, set the report's cloud save with `updateReportCloudExport`: its runs then save it to the folder you choose, and `getReportCloudExport` tells how the last save went."},{"name":"Content","description":"What viewers see on a report, for reading or checking it without downloading a file. `getReportContent` answers the text of each visible slide and the values in its charts and tables. `getReportSlideImages` renders slides as images, to check their layout.\n\nBoth take slide ids, so after a message to the slides agent you can look at only the slides it changed."},{"name":"Uploaded files","description":"Your own data, for the slides agent to build slides from: a CSV file sent as JSON, or an Excel workbook sent as a file, as with Upload files in the app. Uploaded files suit data that lives outside a connected BI tool or spreadsheet, such as an export from another system.\n\nUpload a CSV file with `createDataset`, add it to a report with `addReportDatasheets`, then pass the datasheet id to the slides agent. Replace its content later and the reports built on it show the new data after their next run.\n\nUpload a document, such as a brief or a report, with `createDocument`, then pass its id to the slides agent for it to read as context, as when you attach a document in the chat in the app."},{"name":"Datasheets","description":"The data behind a report's charts and tables. A datasheet reads one source, an uploaded file, a dashboard tab of a connection or a range of a spreadsheet, and keeps a copy of what it read; the report's charts and tables are drawn from those copies. A datasheet can also connect a Snowflake, Databricks or BigQuery table, or a Looker explore, Power BI semantic model or Tableau data source, which the slides agent queries in the warehouse or BI tool for each chart and table it builds.\n\nAdd sources with `addReportDatasheets`, see when each was last read and whether it failed with `listReportDatasheets`, and read the table behind a chart with `getReportDatasheetData`."},{"name":"Parameters","description":"Named values of a report, such as a region, that it writes into the filters of the dashboards its datasheets read, and as row filters into columns of its datasheets. One parameter can link differently named filters on several dashboards, and columns of several datasheets, and setting its value filters all of them the same way. A burst's variants each hold their own value of the parameters it varies by.\n\nSee a report's parameters and the filters and columns they can link with `getReportParameters`, then create one with `createReportParameter`. Change a parameter's value, name, filters or columns with `updateReportParameter`, for example to show the report for another region, or delete it with `deleteReportParameter`. A report that reads no dashboard has no filters to link, but its datasheets can have columns to link once they were read."},{"name":"Sharing","description":"Who a report is shared with. Share a report with a member of the organization to let them `view` or `edit` it; they get an email. Sharing again with another permission changes it. `batchShareReports` shares up to 50 reports with the same members in one call, and emails each member once, listing the reports newly shared with them.\n\nThe owner always has access. `getReport` lists everyone the report is shared with, and `getReportViews` who opened it and how far they read."},{"name":"Comments","description":"What reviewers say about a report's slides, as in its comments in the app. A comment starts a thread on a slide, and replies follow it until someone resolves the thread.\n\nRead the comments with `listReportComments`, make the changes they ask for, for example by asking the slides agent in Chat, then reply with `createReportComment` and resolve the thread with `resolveReportComment`."},{"name":"Schedules","description":"When a report updates on its own. Each schedule starts a run of the whole report at the times it sets, in its timezone: hourly at chosen times of day, or on a cron expression for daily, weekly, monthly, quarterly and yearly ones.\n\nA report has up to 10 schedules, replaced together. Schedules are checked every 15 minutes, so a cron expression must run at minute 0, 15, 30 or 45. To give up to 50 reports the same schedules, use `batchUpdateReportSchedules`."},{"name":"Email","description":"Who a report's email goes to and how it is sent: its recipients, the sender it goes out through, whether it carries the report as a link, a PDF or a PowerPoint file, and which successful runs send it on their own. Set it up once, then send it now or let the report's runs send it.\n\nSend a test email to yourself to check how it looks first. Every send emails all the recipients, so sends have a low rate limit."},{"name":"Bursts","description":"A burst makes one report per audience from a template report: each variant is a copy of the template that holds its own values of what the burst varies by, such as a region or an account, so it shows only its data. A Rollstack report's burst varies by report parameters, which its datasheets read; an older report's burst, such as of a Google Slides or PowerPoint file, varies by filters of its syncs, and each variant is a copy of the file in the burst's folder.\n\nMake a report the template of a burst with `createBurst`, or find one with `listBursts`, then see its variants, where their runs stand and who they are emailed to with `listBurstVariants`. Add variants by their parameter or filter values, remove them, run them all with `startBurstRun`, and set who each one is emailed to. Adding and running variants answer at once: follow the batch you added with `getBurstVariantBatch` and the variants' runs with `getBurstRun`, which wait for them to end. Each variant is also a report, so the `\/reports\/{id}` endpoints its type takes work on it: an older report's variants don't take the ones for Rollstack reports, such as `getReportContent`.\n\nChange a burst's settings with `updateBurstSettings`, an older report's burst's filters with `updateBurstFilters`, rename it with `renameBurst` and delete it with `deleteBurst`. Its email comes two ways: each variant's own email, which its runs send to its own recipients (set them with `updateBurstVariantRecipients`, its settings with `updateBurstVariantEmailSettings`, and send now with `sendBurstVariantEmails`), and the burst's email configurations, each one email to its own recipients with every variant it selects (`listBurstEmailConfigs` and the endpoints next to it)."},{"name":"Connections","description":"Data source connections: the Looker, Metabase, Omni, Lightdash, Sigma, Tableau, Power BI and Salesforce instances, and Snowflake, Databricks and BigQuery warehouses, reports read data from. Credentials are write-only and tested before they are saved; reads never answer them.\n\nUse `searchDashboards` and `getDashboard` to find a dashboard and its tabs, then add it to a report with `addReportDatasheets`. On a Salesforce connection, `searchDashboards` finds reports, which you add with `addReportDatasheets` directly. On a Snowflake, Databricks or BigQuery connection, `searchTables` finds tables and views, which you add the same way. On a Looker, Power BI or Tableau connection, `searchModels` finds its explores, semantic models and published data sources: add one the same way and the slides agent queries it in the BI tool. Snowflake, Databricks and BigQuery connections are created, and their credentials changed, only in the app."},{"name":"Connection users","description":"Who can use a connection. Each user reads data with their own access to the connection; a user without one uses the default user's, when the connection has one.\n\nWith `autoProvision` on, new members of the organization get access on their own. Removing a user also deletes the syncs that read through their access."},{"name":"Connection admins","description":"Who can manage a connection. A connection has one owner and any number of admins. Admins manage the connection's users; only the owner can add or remove admins, or delete the connection.\n\nOwnership moves only in the app."},{"name":"Spreadsheets","description":"The Google Sheets and Excel files the user added in Rollstack, read with the user's own Google or Microsoft account. Rollstack sees only the files added in the app, not the user's whole Drive or OneDrive.\n\nFind a file with `searchSpreadsheets`, list its sheets with `getSpreadsheet`, then add a range of a sheet to a report with `addReportDatasheets`."},{"name":"SMTP connections","description":"The SMTP connections report emails go out through: an SMTP login or a Google or Microsoft account. A connection is the user's own, or shared with the whole organization by an owner or admin.\n\nPick one in Email settings for a report. Credentials are write-only and checked with a test email before the connection is saved."},{"name":"Folders","description":"The folders that organize reports, as nested in the app. Each folder answers the permission the user has on it: `view`, `edit` or `manage`. Sharing a folder gives access to everything in it, including the folders nested in it.\n\nPass a folder id as `folderId` to list the reports in it, or to create or move a report into it. To file reports, create a folder with `createFolder`, then move each report into it with `updateReport`. Rename or move a folder with `updateFolder`, See who it is shared with in `getFolder`, and change it with `shareFolder` and `unshareFolder`."},{"name":"Organization","description":"The API key's organization and its settings: its name and default timezone, the email domains members may be invited from, how reports update and link to their sources, and which features are on, such as insights, memories, spreadsheets and email analytics.\n\nAnyone with `organization:read` can read the settings. Changing them needs `organization:write`, which only owners and admins can grant a key."},{"name":"Members","description":"Members of the organization, their roles and access. A member's role is `owner`, `admin` or `member`; their authentication role, `viewer` or `editor`, lets them see or change the organization's SSO settings.\n\nCall `GET \/me` first to check a key works: it answers the user the key acts as, the organization it belongs to, the role it acts with and the scopes it carries, with any valid key, whatever its scopes.\n\nOnly owners and admins may call the other endpoints, with a key carrying `users:read` or `users:write`. A key can make a member an admin or a member, never an owner. Deactivating a member removes them from the organization, revokes their API keys and deletes their invites; reactivating them brings them back, but not their keys."},{"name":"Invites","description":"Pending invites to join the organization, each with the role and authentication role the user joins with.\n\nOnly emails in the organization's allowed domains can be invited, so set its allowed domains first. Emails outside them, of existing members or already invited come back as rejected, with the reason, while the others are invited."},{"name":"LLM provider","description":"The organization's own LLM provider for the slides agent: its Anthropic, OpenAI, Azure AI Foundry, Amazon Bedrock or Google Vertex AI account, used instead of Rollstack's. Credentials are write-only: reads answer the provider's settings and status, never its keys.\n\nSetting one up is part of the Enterprise plan. Saving tests every model on the new keys first, so a provider that cannot answer is never saved."}],"x-tagGroups":[{"name":"Reports","tags":["Reports","Templates","Versions","Chat","Memories","Runs","Exports","Content","Uploaded files","Datasheets","Parameters","Sharing","Comments","Schedules","Email","Bursts"]},{"name":"Connections","tags":["Connections","Connection users","Connection admins","Spreadsheets","SMTP connections"]},{"name":"Workspace","tags":["Folders"]},{"name":"Admin","tags":["Organization","Members","Invites","LLM provider"]}],"paths":{"\/reports":{"get":{"operationId":"listReports","summary":"List reports","description":"The reports the user can see, of every type, newest first. Each report's type tells which endpoints work on it: the slides agent, exports, content, datasheets, parameters, templates, duplicating and ownership transfer take SlideDeck reports only, and syncs take the other types only. You can filter by folderId, name and type; when several are set, all must match, and name matching ignores case. Answers up to limit reports, 50 by default and 200 at most, and a nextCursor: pass it as cursor for the next page, until it is null.\n\nRequires the `slide_decks:read` scope.","tags":["Reports"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"folderId","in":"query","required":false,"description":"Only return reports directly in this folder, by its `id` from `listFolders`. Reports in its subfolders aren't included.","schema":{"description":"Only return reports directly in this folder, by its `id` from `listFolders`. Reports in its subfolders aren't included.","examples":["a3d5e7f9-1b2c-4d6e-8f0a-1b2c3d4e5f6a"],"type":"string"}},{"name":"name","in":"query","required":false,"description":"Only return reports whose name contains this text, ignoring case: `review` matches `Q3 Business Review`.","schema":{"description":"Only return reports whose name contains this text, ignoring case: `review` matches `Q3 Business Review`.","examples":["business review"],"type":"string","minLength":1}},{"name":"type","in":"query","required":false,"description":"Only return reports of this `type`, such as `SlideDeck` for the reports that the slides agent, exports and datasheets work on.","schema":{"description":"Only return reports of this `type`, such as `SlideDeck` for the reports that the slides agent, exports and datasheets work on.","examples":["SlideDeck"],"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"]}},{"name":"limit","in":"query","required":false,"description":"Maximum number of reports to return on this page, from 1 to 200. Defaults to `50`.","schema":{"default":50,"description":"Maximum number of reports to return on this page, from 1 to 200. Defaults to `50`.","type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","schema":{"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","examples":["6c1f9a2e-3b4d-4e8f-9a1b-2c3d4e5f6a7b"],"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the report. Pass it as `id` to the other `\/reports\/{id}` endpoints."},"type":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The kind of report, which decides the endpoints that work on it.\n\n- `SlideDeck`: a slide deck built in Rollstack. Every `\/reports\/{id}` endpoint works on it, except `listReportSyncs` and `convertReport`.\n- `GoogleSlides`, `GoogleDocs`, `MicrosoftPowerPoint`, `MicrosoftWord`: a file in Google Drive or OneDrive that Rollstack updates with its visualizations.\n- `UploadedPPTXFile`: a PowerPoint file uploaded to Rollstack, which it updates the same way.\n- `Email`: an email report, whose visualizations Rollstack sends in an email.\n\nOn a report that isn't a `SlideDeck`, only `getReport`, `updateReport`, `deleteReport`, `shareReport`, `unshareReport`, `getReportSchedules`, `updateReportSchedules`, `startReportRun`, `listReportRuns`, `getReportRun`, `cancelReportRun`, `listReportSyncs` and the email endpoints (`getReportEmailConfig`, `updateReportEmailConfig`, `listReportEmails`, `sendReportEmail`, `sendReportTestEmail`) work, and `convertReport` on a `GoogleSlides` or `MicrosoftPowerPoint` report. The other `\/reports\/{id}` endpoints take `SlideDeck` reports only, as their `id` says, and return `400`."},"name":{"type":"string","description":"Name of the report, as members see it in Rollstack. Change it with `updateReport`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the report is in, by its `id` in `listFolders`. `null` when the report is at the top level, outside any folder."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address. Rollstack emails this address when a scheduled run of the report fails, while `notifyOnFailure` is `true`."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the report: whoever created it, unless ownership has since been transferred, in the app or with `transferReportOwnership`. Only the owner can delete the report."},"permission":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"description":"Your access to the report, as the user the API key belongs to. `view` lets you open and export it: on a `SlideDeck`, read its slides with `getReportContent` and `getReportSlideImages`; on any other report, also see its runs, schedules and email setup. `comment` also lets you read, add, reply to and resolve comments on a `SlideDeck`'s slides. `edit` also lets you change it: rename or move it, chat with the slides agent about it, read its slide HTML, datasheets and their data, report parameters, history, runs, schedules and email setup, start runs, set its schedules and email, send its email, and share it. It's never `null` here, since the API only returns reports you can at least view."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's timezone, such as `America\/New_York`. The slides agent uses it to tell today's date, and the report's emails show the time of its last successful update (`{{last_updated_at}}`) in it. On a report that updates a file, such as a Google Slides presentation, it's also the timezone of the file's date variables, unless the organization's `timezone` replaces it. Schedules don't use it: each has its own `timezone`. `null` when the report has none, in which case the slides agent uses UTC. Reports created with `createReport` start with the organization's `timezone` from `getOrganization`, if it has one."},"notifyOnFailure":{"type":"boolean","description":"Whether Rollstack emails the report's owner when a scheduled run fails or some of its datasheets, or a file's visualizations, fail to refresh, copying everyone in `notificationMailingList`. Runs started in the app or with `startReportRun` never send this email. New reports start with `true`."},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest run ended, whatever its outcome. `null` if the report has never run."},"lastSuccessfulUpdateAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest fully successful run ended: one that refreshed every datasheet it ran on, or every visualization on a report that updates a file, with none failing. Runs with nothing to refresh don't count. The report's emails show this time as `{{last_updated_at}}`. `null` until the report has had such a run."},"lastRunStatus":{"anyOf":[{"type":"string","enum":["running","completed","failed","cancelled","timed_out"]},{"type":"null"}],"description":"How the report's latest run ended. `completed`: it finished, even if some datasheets or visualizations failed to refresh or it had none to refresh; on a `SlideDeck` report, `listReportDatasheets` shows each datasheet's `error`. `failed`: it stopped on an error, or none of its datasheets or visualizations could be refreshed. `cancelled`: it was stopped before it finished, for example with `cancelReportRun`. `null` if the report has never run. `running` and `timed_out` never appear here: check `running` to see whether a run is in progress."},"running":{"type":"boolean","description":"Whether a run of the report is in progress, whoever started it, such as you with `startReportRun`, a member in the app, or one of its schedules. While it's `true`, `startReportRun` returns that run instead of starting another."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the report in Rollstack."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link that opens the Google Slides, Google Docs, PowerPoint or Word file the report updates. `null` for a slide deck, an email report or an uploaded PowerPoint file, which have no file to open, and for a Microsoft file whose link Rollstack has not read yet."},"createdAt":{"description":"When the report was created. `listReports` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's details last changed, such as its name, folder or owner, or the outcome of its latest run.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","type","name","folderId","owner","permission","timezone","notifyOnFailure","lastSyncedAt","lastSuccessfulUpdateAt","lastRunStatus","running","appUrl","fileUrl","createdAt","updatedAt"],"additionalProperties":false},"description":"The reports on this page, of every `type`, most recently created first."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass it as `cursor` to get the next page of reports. `null` when there are no more."}},"required":["data","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createReport","summary":"Create report","description":"Creates a report of type SlideDeck, in a folder the user can see when folderId is set. It starts empty, in the look of a saved template from listTemplates when templateId is set, or of another report when templateDeckId is set: its theme, masters and layouts, without its slides. Ask the user which template to use when the organization has company templates. With link, it imports an existing deck instead, with its slides: a PowerPoint file in OneDrive or SharePoint, or a Google Slides presentation, read with the user's own Microsoft or Google account. Rollstack can open only the Google Slides presentations the user picked in Rollstack before, so a link to one they never did answers 422. Over REST, it also imports a PowerPoint (.pptx) file sent as multipart\/form-data in the file field, with name and folderId as fields beside it; a report imported from a file is named after it unless name is set. An import answers once the deck is in, which can take a minute for a large one: send an Idempotency-Key (MCP: idempotencyKey) so a retry doesn't import it twice. At most 10 imports a minute per user.\n\nRequires the `slide_decks:write` scope.","tags":["Reports"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"description":"Name for the report, as members will see it in Rollstack. Leading and trailing spaces are removed, and it can't be blank. If omitted, a report imported with `link` takes its file's name, and an empty report is named Untitled report until the slides agent names it as it builds the deck, as in the app.","examples":["Q3 business review"],"type":"string","minLength":1},"folderId":{"description":"The folder to create the report in, by its `id` from `listFolders`; it must be one you can see. Members with access to the folder can then open the report too, with the access the folder gives them. If omitted, the report is created at the top level, outside any folder.","examples":["a3d5e7f9-1b2c-4d6e-8f0a-1b2c3d4e5f6a"],"type":"string"},"templateDeckId":{"description":"An existing report whose design the new report starts with, by its `id` from `listReports`: its theme, slide masters, layouts and slide size, but none of its slides or data. Its `type` must be `SlideDeck`, and you need at least view access to it. If neither this, `templateId` nor `link` is set, the report starts with no slides and Rollstack's default theme and layouts.","examples":["6c1f9a2e-3b4d-4e8f-9a1b-2c3d4e5f6a7b"],"type":"string"},"templateId":{"description":"A saved template the new report starts with, by its `id` from `listTemplates`: a company template or Rollstack's own. The report gets its theme, slide masters, layouts and slide size, with no slides. Leave out `templateDeckId` when you set it.","examples":["rollstack-signature"],"type":"string","minLength":1},"link":{"description":"A link to an existing deck to import, as its Share or Copy link button gives it: a PowerPoint (.pptx) file in OneDrive or SharePoint, or a Google Slides presentation. The report starts with its slides and look: a PowerPoint file's charts come in as charts with their data, and a Google Slides presentation's as pictures. The file stays as it is. It is read with the user's own Microsoft or Google account, connected in the app, so they must be able to open it, and Rollstack can open only the Google Slides presentations the user picked in Rollstack before. The report keeps the deck's look, so leave out `templateId` and `templateDeckId`.","examples":["https:\/\/contoso.sharepoint.com\/:p:\/s\/Finance\/EbXqT9kLmNpQrStUvWxYz","https:\/\/docs.google.com\/presentation\/d\/1AbCdEfGhIjKlMnOpQrStUvWxYz0123456789\/edit"],"type":"string","minLength":1}},"additionalProperties":false}},"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The PowerPoint file, a `.pptx` of at most 100 MB. The endpoint says what it takes from the file and how it names what it makes."},"name":{"description":"Name for the report, as members will see it in Rollstack. If omitted, it takes the file's name without `.pptx`.","type":"string","minLength":1,"examples":["Q3 business review"]},"folderId":{"description":"The folder to create the report in, by its `id` from `listFolders`; it must be one you can see. Members with access to the folder can then open the report too, with the access the folder gives them. If omitted, the report is created at the top level, outside any folder.","examples":["a3d5e7f9-1b2c-4d6e-8f0a-1b2c3d4e5f6a"],"type":"string"}},"required":["file"]}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the report. Pass it as `id` to the other `\/reports\/{id}` endpoints."},"type":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The kind of report, which decides the endpoints that work on it.\n\n- `SlideDeck`: a slide deck built in Rollstack. Every `\/reports\/{id}` endpoint works on it, except `listReportSyncs` and `convertReport`.\n- `GoogleSlides`, `GoogleDocs`, `MicrosoftPowerPoint`, `MicrosoftWord`: a file in Google Drive or OneDrive that Rollstack updates with its visualizations.\n- `UploadedPPTXFile`: a PowerPoint file uploaded to Rollstack, which it updates the same way.\n- `Email`: an email report, whose visualizations Rollstack sends in an email.\n\nOn a report that isn't a `SlideDeck`, only `getReport`, `updateReport`, `deleteReport`, `shareReport`, `unshareReport`, `getReportSchedules`, `updateReportSchedules`, `startReportRun`, `listReportRuns`, `getReportRun`, `cancelReportRun`, `listReportSyncs` and the email endpoints (`getReportEmailConfig`, `updateReportEmailConfig`, `listReportEmails`, `sendReportEmail`, `sendReportTestEmail`) work, and `convertReport` on a `GoogleSlides` or `MicrosoftPowerPoint` report. The other `\/reports\/{id}` endpoints take `SlideDeck` reports only, as their `id` says, and return `400`."},"name":{"type":"string","description":"Name of the report, as members see it in Rollstack. Change it with `updateReport`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the report is in, by its `id` in `listFolders`. `null` when the report is at the top level, outside any folder."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address. Rollstack emails this address when a scheduled run of the report fails, while `notifyOnFailure` is `true`."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the report: whoever created it, unless ownership has since been transferred, in the app or with `transferReportOwnership`. Only the owner can delete the report."},"permission":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"description":"Your access to the report, as the user the API key belongs to. `view` lets you open and export it: on a `SlideDeck`, read its slides with `getReportContent` and `getReportSlideImages`; on any other report, also see its runs, schedules and email setup. `comment` also lets you read, add, reply to and resolve comments on a `SlideDeck`'s slides. `edit` also lets you change it: rename or move it, chat with the slides agent about it, read its slide HTML, datasheets and their data, report parameters, history, runs, schedules and email setup, start runs, set its schedules and email, send its email, and share it. It's never `null` here, since the API only returns reports you can at least view."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's timezone, such as `America\/New_York`. The slides agent uses it to tell today's date, and the report's emails show the time of its last successful update (`{{last_updated_at}}`) in it. On a report that updates a file, such as a Google Slides presentation, it's also the timezone of the file's date variables, unless the organization's `timezone` replaces it. Schedules don't use it: each has its own `timezone`. `null` when the report has none, in which case the slides agent uses UTC. Reports created with `createReport` start with the organization's `timezone` from `getOrganization`, if it has one."},"notifyOnFailure":{"type":"boolean","description":"Whether Rollstack emails the report's owner when a scheduled run fails or some of its datasheets, or a file's visualizations, fail to refresh, copying everyone in `notificationMailingList`. Runs started in the app or with `startReportRun` never send this email. New reports start with `true`."},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest run ended, whatever its outcome. `null` if the report has never run."},"lastSuccessfulUpdateAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest fully successful run ended: one that refreshed every datasheet it ran on, or every visualization on a report that updates a file, with none failing. Runs with nothing to refresh don't count. The report's emails show this time as `{{last_updated_at}}`. `null` until the report has had such a run."},"lastRunStatus":{"anyOf":[{"type":"string","enum":["running","completed","failed","cancelled","timed_out"]},{"type":"null"}],"description":"How the report's latest run ended. `completed`: it finished, even if some datasheets or visualizations failed to refresh or it had none to refresh; on a `SlideDeck` report, `listReportDatasheets` shows each datasheet's `error`. `failed`: it stopped on an error, or none of its datasheets or visualizations could be refreshed. `cancelled`: it was stopped before it finished, for example with `cancelReportRun`. `null` if the report has never run. `running` and `timed_out` never appear here: check `running` to see whether a run is in progress."},"running":{"type":"boolean","description":"Whether a run of the report is in progress, whoever started it, such as you with `startReportRun`, a member in the app, or one of its schedules. While it's `true`, `startReportRun` returns that run instead of starting another."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the report in Rollstack."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link that opens the Google Slides, Google Docs, PowerPoint or Word file the report updates. `null` for a slide deck, an email report or an uploaded PowerPoint file, which have no file to open, and for a Microsoft file whose link Rollstack has not read yet."},"createdAt":{"description":"When the report was created. `listReports` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's details last changed, such as its name, folder or owner, or the outcome of its latest run.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"notificationMailingList":{"description":"Email addresses Rollstack copies when it emails the owner about a failed scheduled run, while `notifyOnFailure` is `true`. Change the list with `updateReport`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"string"}},"schedules":{"description":"The report's schedules: when Rollstack runs the report on its own to update it with fresh data. Empty if it has none, in which case the report only runs when someone starts a run. Replace them with `updateReportSchedules`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the schedule. `updateReportSchedules` replaces every schedule, so the ids change each time you call it."},"frequency":{"type":"string","enum":["daily","weekly","monthly","quarterly","hourly","yearly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires; those made in the app run every day, on chosen weekdays, on chosen days of the month, or every three months, respectively. `yearly` can't be set through the API or the app, and also runs on `cronExpression`."},"cronExpression":{"type":"string","description":"When the schedule runs, as a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`. For an `hourly` schedule, Rollstack generates it from `selectedTimes` and runs the report at those times instead. Monthly schedules made in the app can use `L` and `#`, such as `0 9 L * *` (last day of the month) or `0 9 ? * 1#1` (first Monday)."},"selectedTimes":{"type":"array","items":{"type":"string"},"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`. Other frequencies don't use it; it's empty on those set through the API."},"startDate":{"description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule ends: it never runs the report after this date and time. `null` if the schedule never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC."},"timezone":{"type":"string","description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`."},"syncIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does."},"status":{"type":"string","enum":["active","paused"],"description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again."},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule will next run the report. `null` if it is `paused` or has no runs left before its `endDate`. Unlike `startDate` and `endDate`, this is an actual UTC time."}},"required":["id","frequency","cronExpression","selectedTimes","startDate","endDate","timezone","syncIds","status","nextRunAt"],"additionalProperties":false}},"sharedWith":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id. Pass it as `userId` to `shareReport` to change their access, or to `unshareReport` to remove it."},"email":{"type":"string","description":"The member's email address, as shown in Rollstack."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can do with the report. `view` lets them open, export and duplicate it. `comment` also lets them add, reply to and resolve comments on its slides. `edit` also lets them change its slides, data, schedules, email and other settings, run it, send its email, chat with the slides agent about it, and manage who it's shared with. Neither lets them delete the report or transfer its ownership."}},"required":["userId","email","name","permission"],"additionalProperties":false},"description":"Members the report is shared with directly, with their access. Members who can open it through its folder aren't listed. Change this list with `shareReport` and `unshareReport`."}},"required":["id","type","name","folderId","owner","permission","timezone","notifyOnFailure","lastSyncedAt","lastSuccessfulUpdateAt","lastRunStatus","running","appUrl","fileUrl","createdAt","updatedAt","sharedWith"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}":{"get":{"operationId":"getReport","summary":"Get report","description":"A report of any type with its schedules, who it is shared with and who is emailed when a run fails. lastRunStatus and running tell how its latest run went and whether one is going, and appUrl opens it in Rollstack. type tells which other endpoints work on it.\n\nRequires the `slide_decks:read` scope.","tags":["Reports"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the report. Pass it as `id` to the other `\/reports\/{id}` endpoints."},"type":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The kind of report, which decides the endpoints that work on it.\n\n- `SlideDeck`: a slide deck built in Rollstack. Every `\/reports\/{id}` endpoint works on it, except `listReportSyncs` and `convertReport`.\n- `GoogleSlides`, `GoogleDocs`, `MicrosoftPowerPoint`, `MicrosoftWord`: a file in Google Drive or OneDrive that Rollstack updates with its visualizations.\n- `UploadedPPTXFile`: a PowerPoint file uploaded to Rollstack, which it updates the same way.\n- `Email`: an email report, whose visualizations Rollstack sends in an email.\n\nOn a report that isn't a `SlideDeck`, only `getReport`, `updateReport`, `deleteReport`, `shareReport`, `unshareReport`, `getReportSchedules`, `updateReportSchedules`, `startReportRun`, `listReportRuns`, `getReportRun`, `cancelReportRun`, `listReportSyncs` and the email endpoints (`getReportEmailConfig`, `updateReportEmailConfig`, `listReportEmails`, `sendReportEmail`, `sendReportTestEmail`) work, and `convertReport` on a `GoogleSlides` or `MicrosoftPowerPoint` report. The other `\/reports\/{id}` endpoints take `SlideDeck` reports only, as their `id` says, and return `400`."},"name":{"type":"string","description":"Name of the report, as members see it in Rollstack. Change it with `updateReport`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the report is in, by its `id` in `listFolders`. `null` when the report is at the top level, outside any folder."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address. Rollstack emails this address when a scheduled run of the report fails, while `notifyOnFailure` is `true`."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the report: whoever created it, unless ownership has since been transferred, in the app or with `transferReportOwnership`. Only the owner can delete the report."},"permission":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"description":"Your access to the report, as the user the API key belongs to. `view` lets you open and export it: on a `SlideDeck`, read its slides with `getReportContent` and `getReportSlideImages`; on any other report, also see its runs, schedules and email setup. `comment` also lets you read, add, reply to and resolve comments on a `SlideDeck`'s slides. `edit` also lets you change it: rename or move it, chat with the slides agent about it, read its slide HTML, datasheets and their data, report parameters, history, runs, schedules and email setup, start runs, set its schedules and email, send its email, and share it. It's never `null` here, since the API only returns reports you can at least view."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's timezone, such as `America\/New_York`. The slides agent uses it to tell today's date, and the report's emails show the time of its last successful update (`{{last_updated_at}}`) in it. On a report that updates a file, such as a Google Slides presentation, it's also the timezone of the file's date variables, unless the organization's `timezone` replaces it. Schedules don't use it: each has its own `timezone`. `null` when the report has none, in which case the slides agent uses UTC. Reports created with `createReport` start with the organization's `timezone` from `getOrganization`, if it has one."},"notifyOnFailure":{"type":"boolean","description":"Whether Rollstack emails the report's owner when a scheduled run fails or some of its datasheets, or a file's visualizations, fail to refresh, copying everyone in `notificationMailingList`. Runs started in the app or with `startReportRun` never send this email. New reports start with `true`."},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest run ended, whatever its outcome. `null` if the report has never run."},"lastSuccessfulUpdateAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest fully successful run ended: one that refreshed every datasheet it ran on, or every visualization on a report that updates a file, with none failing. Runs with nothing to refresh don't count. The report's emails show this time as `{{last_updated_at}}`. `null` until the report has had such a run."},"lastRunStatus":{"anyOf":[{"type":"string","enum":["running","completed","failed","cancelled","timed_out"]},{"type":"null"}],"description":"How the report's latest run ended. `completed`: it finished, even if some datasheets or visualizations failed to refresh or it had none to refresh; on a `SlideDeck` report, `listReportDatasheets` shows each datasheet's `error`. `failed`: it stopped on an error, or none of its datasheets or visualizations could be refreshed. `cancelled`: it was stopped before it finished, for example with `cancelReportRun`. `null` if the report has never run. `running` and `timed_out` never appear here: check `running` to see whether a run is in progress."},"running":{"type":"boolean","description":"Whether a run of the report is in progress, whoever started it, such as you with `startReportRun`, a member in the app, or one of its schedules. While it's `true`, `startReportRun` returns that run instead of starting another."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the report in Rollstack."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link that opens the Google Slides, Google Docs, PowerPoint or Word file the report updates. `null` for a slide deck, an email report or an uploaded PowerPoint file, which have no file to open, and for a Microsoft file whose link Rollstack has not read yet."},"createdAt":{"description":"When the report was created. `listReports` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's details last changed, such as its name, folder or owner, or the outcome of its latest run.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"notificationMailingList":{"description":"Email addresses Rollstack copies when it emails the owner about a failed scheduled run, while `notifyOnFailure` is `true`. Change the list with `updateReport`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"string"}},"schedules":{"description":"The report's schedules: when Rollstack runs the report on its own to update it with fresh data. Empty if it has none, in which case the report only runs when someone starts a run. Replace them with `updateReportSchedules`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the schedule. `updateReportSchedules` replaces every schedule, so the ids change each time you call it."},"frequency":{"type":"string","enum":["daily","weekly","monthly","quarterly","hourly","yearly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires; those made in the app run every day, on chosen weekdays, on chosen days of the month, or every three months, respectively. `yearly` can't be set through the API or the app, and also runs on `cronExpression`."},"cronExpression":{"type":"string","description":"When the schedule runs, as a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`. For an `hourly` schedule, Rollstack generates it from `selectedTimes` and runs the report at those times instead. Monthly schedules made in the app can use `L` and `#`, such as `0 9 L * *` (last day of the month) or `0 9 ? * 1#1` (first Monday)."},"selectedTimes":{"type":"array","items":{"type":"string"},"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`. Other frequencies don't use it; it's empty on those set through the API."},"startDate":{"description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule ends: it never runs the report after this date and time. `null` if the schedule never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC."},"timezone":{"type":"string","description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`."},"syncIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does."},"status":{"type":"string","enum":["active","paused"],"description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again."},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule will next run the report. `null` if it is `paused` or has no runs left before its `endDate`. Unlike `startDate` and `endDate`, this is an actual UTC time."}},"required":["id","frequency","cronExpression","selectedTimes","startDate","endDate","timezone","syncIds","status","nextRunAt"],"additionalProperties":false}},"sharedWith":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id. Pass it as `userId` to `shareReport` to change their access, or to `unshareReport` to remove it."},"email":{"type":"string","description":"The member's email address, as shown in Rollstack."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can do with the report. `view` lets them open, export and duplicate it. `comment` also lets them add, reply to and resolve comments on its slides. `edit` also lets them change its slides, data, schedules, email and other settings, run it, send its email, chat with the slides agent about it, and manage who it's shared with. Neither lets them delete the report or transfer its ownership."}},"required":["userId","email","name","permission"],"additionalProperties":false},"description":"Members the report is shared with directly, with their access. Members who can open it through its folder aren't listed. Change this list with `shareReport` and `unshareReport`."}},"required":["id","type","name","folderId","owner","permission","timezone","notifyOnFailure","lastSyncedAt","lastSuccessfulUpdateAt","lastRunStatus","running","appUrl","fileUrl","createdAt","updatedAt","sharedWith"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"patch":{"operationId":"updateReport","summary":"Update report","description":"Renames a report of any type, moves it, or changes its timezone or failure notifications. Renaming a report that updates a file, such as a Google Slides presentation, also renames the file, as the app does. Only its editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Reports"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"description":"New name for the report, as members will see it in Rollstack. Leading and trailing spaces are removed, and it can't be blank.","examples":["Q3 business review"],"type":"string","minLength":1},"folderId":{"description":"The folder to move the report to, by its `id` from `listFolders`; it must be one you can see. Pass `null` to move it to the top level, outside any folder. Members then get access to the report through the new folder, and the folders it's in, instead of the old one.","examples":["a3d5e7f9-1b2c-4d6e-8f0a-1b2c3d4e5f6a"],"anyOf":[{"type":"string"},{"type":"null"}]},"timezone":{"description":"The report's new timezone. The slides agent uses it to tell today's date, and the report's emails show the time of its last successful update (`{{last_updated_at}}`) in it. On a report that updates a file, it's also the timezone of the file's date variables, unless the organization's `timezone` replaces it. It doesn't change the report's schedules, which each have their own `timezone`: change those with `updateReportSchedules`. An IANA timezone name, such as `America\/New_York`.","examples":["America\/New_York"],"type":"string","minLength":1},"notifyOnFailure":{"description":"Whether Rollstack should email the report's owner when a scheduled run fails or some of its datasheets fail to refresh, copying everyone in `notificationMailingList`. Set it to `false` to stop these emails. Runs started in the app or with `startReportRun` never send them.","type":"boolean"},"notificationMailingList":{"description":"Email addresses to copy when Rollstack emails the owner about a failed scheduled run, while `notifyOnFailure` is `true`. The list you send replaces the current one; send `[]` to clear it. Each address must belong to an active member of the organization, ignoring case. Up to 100 addresses, with no duplicates.","maxItems":100,"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the report. Pass it as `id` to the other `\/reports\/{id}` endpoints."},"type":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The kind of report, which decides the endpoints that work on it.\n\n- `SlideDeck`: a slide deck built in Rollstack. Every `\/reports\/{id}` endpoint works on it, except `listReportSyncs` and `convertReport`.\n- `GoogleSlides`, `GoogleDocs`, `MicrosoftPowerPoint`, `MicrosoftWord`: a file in Google Drive or OneDrive that Rollstack updates with its visualizations.\n- `UploadedPPTXFile`: a PowerPoint file uploaded to Rollstack, which it updates the same way.\n- `Email`: an email report, whose visualizations Rollstack sends in an email.\n\nOn a report that isn't a `SlideDeck`, only `getReport`, `updateReport`, `deleteReport`, `shareReport`, `unshareReport`, `getReportSchedules`, `updateReportSchedules`, `startReportRun`, `listReportRuns`, `getReportRun`, `cancelReportRun`, `listReportSyncs` and the email endpoints (`getReportEmailConfig`, `updateReportEmailConfig`, `listReportEmails`, `sendReportEmail`, `sendReportTestEmail`) work, and `convertReport` on a `GoogleSlides` or `MicrosoftPowerPoint` report. The other `\/reports\/{id}` endpoints take `SlideDeck` reports only, as their `id` says, and return `400`."},"name":{"type":"string","description":"Name of the report, as members see it in Rollstack. Change it with `updateReport`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the report is in, by its `id` in `listFolders`. `null` when the report is at the top level, outside any folder."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address. Rollstack emails this address when a scheduled run of the report fails, while `notifyOnFailure` is `true`."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the report: whoever created it, unless ownership has since been transferred, in the app or with `transferReportOwnership`. Only the owner can delete the report."},"permission":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"description":"Your access to the report, as the user the API key belongs to. `view` lets you open and export it: on a `SlideDeck`, read its slides with `getReportContent` and `getReportSlideImages`; on any other report, also see its runs, schedules and email setup. `comment` also lets you read, add, reply to and resolve comments on a `SlideDeck`'s slides. `edit` also lets you change it: rename or move it, chat with the slides agent about it, read its slide HTML, datasheets and their data, report parameters, history, runs, schedules and email setup, start runs, set its schedules and email, send its email, and share it. It's never `null` here, since the API only returns reports you can at least view."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's timezone, such as `America\/New_York`. The slides agent uses it to tell today's date, and the report's emails show the time of its last successful update (`{{last_updated_at}}`) in it. On a report that updates a file, such as a Google Slides presentation, it's also the timezone of the file's date variables, unless the organization's `timezone` replaces it. Schedules don't use it: each has its own `timezone`. `null` when the report has none, in which case the slides agent uses UTC. Reports created with `createReport` start with the organization's `timezone` from `getOrganization`, if it has one."},"notifyOnFailure":{"type":"boolean","description":"Whether Rollstack emails the report's owner when a scheduled run fails or some of its datasheets, or a file's visualizations, fail to refresh, copying everyone in `notificationMailingList`. Runs started in the app or with `startReportRun` never send this email. New reports start with `true`."},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest run ended, whatever its outcome. `null` if the report has never run."},"lastSuccessfulUpdateAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest fully successful run ended: one that refreshed every datasheet it ran on, or every visualization on a report that updates a file, with none failing. Runs with nothing to refresh don't count. The report's emails show this time as `{{last_updated_at}}`. `null` until the report has had such a run."},"lastRunStatus":{"anyOf":[{"type":"string","enum":["running","completed","failed","cancelled","timed_out"]},{"type":"null"}],"description":"How the report's latest run ended. `completed`: it finished, even if some datasheets or visualizations failed to refresh or it had none to refresh; on a `SlideDeck` report, `listReportDatasheets` shows each datasheet's `error`. `failed`: it stopped on an error, or none of its datasheets or visualizations could be refreshed. `cancelled`: it was stopped before it finished, for example with `cancelReportRun`. `null` if the report has never run. `running` and `timed_out` never appear here: check `running` to see whether a run is in progress."},"running":{"type":"boolean","description":"Whether a run of the report is in progress, whoever started it, such as you with `startReportRun`, a member in the app, or one of its schedules. While it's `true`, `startReportRun` returns that run instead of starting another."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the report in Rollstack."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link that opens the Google Slides, Google Docs, PowerPoint or Word file the report updates. `null` for a slide deck, an email report or an uploaded PowerPoint file, which have no file to open, and for a Microsoft file whose link Rollstack has not read yet."},"createdAt":{"description":"When the report was created. `listReports` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's details last changed, such as its name, folder or owner, or the outcome of its latest run.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"notificationMailingList":{"description":"Email addresses Rollstack copies when it emails the owner about a failed scheduled run, while `notifyOnFailure` is `true`. Change the list with `updateReport`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"string"}},"schedules":{"description":"The report's schedules: when Rollstack runs the report on its own to update it with fresh data. Empty if it has none, in which case the report only runs when someone starts a run. Replace them with `updateReportSchedules`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the schedule. `updateReportSchedules` replaces every schedule, so the ids change each time you call it."},"frequency":{"type":"string","enum":["daily","weekly","monthly","quarterly","hourly","yearly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires; those made in the app run every day, on chosen weekdays, on chosen days of the month, or every three months, respectively. `yearly` can't be set through the API or the app, and also runs on `cronExpression`."},"cronExpression":{"type":"string","description":"When the schedule runs, as a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`. For an `hourly` schedule, Rollstack generates it from `selectedTimes` and runs the report at those times instead. Monthly schedules made in the app can use `L` and `#`, such as `0 9 L * *` (last day of the month) or `0 9 ? * 1#1` (first Monday)."},"selectedTimes":{"type":"array","items":{"type":"string"},"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`. Other frequencies don't use it; it's empty on those set through the API."},"startDate":{"description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule ends: it never runs the report after this date and time. `null` if the schedule never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC."},"timezone":{"type":"string","description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`."},"syncIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does."},"status":{"type":"string","enum":["active","paused"],"description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again."},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule will next run the report. `null` if it is `paused` or has no runs left before its `endDate`. Unlike `startDate` and `endDate`, this is an actual UTC time."}},"required":["id","frequency","cronExpression","selectedTimes","startDate","endDate","timezone","syncIds","status","nextRunAt"],"additionalProperties":false}},"sharedWith":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id. Pass it as `userId` to `shareReport` to change their access, or to `unshareReport` to remove it."},"email":{"type":"string","description":"The member's email address, as shown in Rollstack."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can do with the report. `view` lets them open, export and duplicate it. `comment` also lets them add, reply to and resolve comments on its slides. `edit` also lets them change its slides, data, schedules, email and other settings, run it, send its email, chat with the slides agent about it, and manage who it's shared with. Neither lets them delete the report or transfer its ownership."}},"required":["userId","email","name","permission"],"additionalProperties":false},"description":"Members the report is shared with directly, with their access. Members who can open it through its folder aren't listed. Change this list with `shareReport` and `unshareReport`."}},"required":["id","type","name","folderId","owner","permission","timezone","notifyOnFailure","lastSyncedAt","lastSuccessfulUpdateAt","lastRunStatus","running","appUrl","fileUrl","createdAt","updatedAt","sharedWith"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"deleteReport","summary":"Delete report","description":"Deletes a report of any type, a burst's variant included, which moves it to the Trash for 30 days. An older version of a report is deleted for good instead. A report that updates a file, such as a Google Slides presentation, leaves its file where it is. Deleting a burst's template report deletes the burst with all its reports, as deleteBurst does, which only the burst's owner may. Any other report, only its owner may delete. From an AI client, deleting a burst's template report only asks the user to confirm it in Rollstack: it answers `confirmation-required` and runs once they confirm.\n\nRequires the `slide_decks:write` scope.","tags":["Reports"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/conversions":{"post":{"operationId":"convertReport","summary":"Convert report to slide deck","description":"Checks first by default: with `dryRun` (the default) it answers what converting would do and writes nothing, so show the person what it would leave out, then send `dryRun: false` to convert. Turns an older report of type GoogleSlides or MicrosoftPowerPoint, which updates a Google Slides presentation or a PowerPoint file in OneDrive or SharePoint, into a new report of type SlideDeck, as Convert to Rollstack slides in the app does. The new report gets the file's slides, and each sync that can be converted becomes a datasheet reading the same source, drawn by a tile where the sync's chart, table or picture was. By default the older report's sharing, failure notices and email settings are copied onto the new one, and its schedules aren't: the older report keeps running on them, so a copy would update and email alongside it (copySchedules). The answer's notMigrated lists what wasn't carried over. The older report and its file stay as they are. The file is read with the older report's owner's account. Answers the new report and what became of each sync, with the reason for one not converted, such as a burst variant's (convert a whole burst with convertBurst) or one of a source with no datasheets: the conversion starts the new report's update to fill its charts, unless startUpdate is false, answered as runId: follow it with getReportRun, or start one with startReportRun when runId is null. Only the older report's editors may. It answers once the conversion ends, which can take a few minutes for a large report: send an Idempotency-Key (MCP: idempotencyKey) so a retry doesn't convert it twice. Counts against the 10 imports a minute per user.\n\nRequires the `slide_decks:write` scope.","tags":["Reports"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","default":{},"type":"object","properties":{"name":{"description":"Name for the new report, as members will see it in Rollstack. Leading and trailing spaces are removed, and it can't be blank. If omitted, it takes the older report's name.","examples":["Q4 business review"],"type":"string","minLength":1},"folderId":{"description":"The folder to put the new report in, by its `id` from `listFolders`; it must be one you can add reports to. If omitted, it goes at the top level, as in the app.","examples":["a3d5e7f9-1b2c-4d6e-8f0a-1b2c3d4e5f6a"],"type":"string"},"startUpdate":{"default":true,"description":"Whether the new report's update starts right after converting, which reads the dashboards to fill its charts with their latest data: for a burst, its template's. Send false to leave it for later: the answer's `needsRun` says which charts stay empty until you start one with `startReportRun`.","examples":[false],"type":"boolean"},"copySharing":{"default":true,"description":"Share the new report, or the new burst and its reports, with the people the older ones are shared with, and tell the same people when an update fails. The older report's or burst's owner can always edit the new one.","type":"boolean"},"copyEmailSettings":{"default":true,"description":"Copy the email recipients and templates of the older report, or of the burst and its reports. A slide deck emails only after a scheduled update or when someone sends it, so they send nothing on their own.","type":"boolean"},"copySchedules":{"default":false,"description":"Copy the schedules of the older report, or of the burst and its reports. The older one keeps its own, so until it is turned off both update, read the BI tool and email the same people.","type":"boolean"},"dryRun":{"default":true,"description":"Only check what converting would do, and write nothing: which visualizations would convert and why others would not, and for a burst which filters would become report parameters and its variants. Send false to convert, once the person has seen what the check says would be left out.","type":"boolean"}},"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","anyOf":[{"type":"object","properties":{"dryRun":{"type":"boolean","const":true,"description":"Only checked: nothing was converted."},"syncs":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"syncId":{"type":"string","description":"The sync of the older report, as `listReportSyncs` lists it."},"name":{"type":"string","description":"The sync's name."},"status":{"type":"string","const":"converts","description":"It would get a datasheet reading the same source. Whether a tile draws it on a slide is only known once the file is imported."},"settings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"filter"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A filter on this column."},{"type":"object","properties":{"type":{"type":"string","const":"sort"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"Its sort by this column. Not applied when no column of the datasheet is where the sort was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A split by this column. Not applied past the first 3."},{"type":"object","properties":{"type":{"type":"string","const":"format"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"format":{"type":"string"},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","format","applied"],"additionalProperties":false,"description":"A format on this column. Not applied when no column of the datasheet is where the format was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split_order"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"The order set for the columns this column splits into. Never applied: they come in the data's order."},{"type":"object","properties":{"type":{"type":"string","const":"second_chart_category"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A combo chart's second chart's own category. Never applied: both charts share the first chart's."}]},"description":"The sync's settings, such as its filters and sort, each with whether its datasheet and tile apply it."}},"required":["syncId","name","status","settings"],"additionalProperties":false},{"type":"object","properties":{"syncId":{"type":"string","description":"The sync of the older report, as `listReportSyncs` lists it."},"name":{"type":"string","description":"The sync's name."},"status":{"type":"string","const":"unsupported","description":"No datasheet can read it, so it would stay as it is in the new report's slides."},"reason":{"type":"string","description":"Why."}},"required":["syncId","name","status","reason"],"additionalProperties":false}]},"description":"What converting would do with each of the older report's syncs."},"insights":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"gets_brief","description":"Its text box would get a brief the new report's AI updates follow, if the file's slides still have it."},"insightId":{"type":"string","description":"The AI insight's id."},"name":{"type":"string","description":"The AI insight's name."}},"required":["status","insightId","name"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"static","description":"Its text box would keep its last text."},"insightId":{"type":"string","description":"The AI insight's id."},"name":{"type":"string","description":"The AI insight's name."},"reason":{"type":"string","const":"no_prompt","description":"It has no prompt to follow."}},"required":["status","insightId","name","reason"],"additionalProperties":false}]},"description":"What converting would do with each AI insight of the older report."}},"required":["dryRun","syncs","insights"],"additionalProperties":false},{"type":"object","properties":{"dryRun":{"type":"boolean","const":false,"description":"It converted: the new report exists."},"report":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the report. Pass it as `id` to the other `\/reports\/{id}` endpoints."},"type":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The kind of report, which decides the endpoints that work on it.\n\n- `SlideDeck`: a slide deck built in Rollstack. Every `\/reports\/{id}` endpoint works on it, except `listReportSyncs` and `convertReport`.\n- `GoogleSlides`, `GoogleDocs`, `MicrosoftPowerPoint`, `MicrosoftWord`: a file in Google Drive or OneDrive that Rollstack updates with its visualizations.\n- `UploadedPPTXFile`: a PowerPoint file uploaded to Rollstack, which it updates the same way.\n- `Email`: an email report, whose visualizations Rollstack sends in an email.\n\nOn a report that isn't a `SlideDeck`, only `getReport`, `updateReport`, `deleteReport`, `shareReport`, `unshareReport`, `getReportSchedules`, `updateReportSchedules`, `startReportRun`, `listReportRuns`, `getReportRun`, `cancelReportRun`, `listReportSyncs` and the email endpoints (`getReportEmailConfig`, `updateReportEmailConfig`, `listReportEmails`, `sendReportEmail`, `sendReportTestEmail`) work, and `convertReport` on a `GoogleSlides` or `MicrosoftPowerPoint` report. The other `\/reports\/{id}` endpoints take `SlideDeck` reports only, as their `id` says, and return `400`."},"name":{"type":"string","description":"Name of the report, as members see it in Rollstack. Change it with `updateReport`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the report is in, by its `id` in `listFolders`. `null` when the report is at the top level, outside any folder."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address. Rollstack emails this address when a scheduled run of the report fails, while `notifyOnFailure` is `true`."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the report: whoever created it, unless ownership has since been transferred, in the app or with `transferReportOwnership`. Only the owner can delete the report."},"permission":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"description":"Your access to the report, as the user the API key belongs to. `view` lets you open and export it: on a `SlideDeck`, read its slides with `getReportContent` and `getReportSlideImages`; on any other report, also see its runs, schedules and email setup. `comment` also lets you read, add, reply to and resolve comments on a `SlideDeck`'s slides. `edit` also lets you change it: rename or move it, chat with the slides agent about it, read its slide HTML, datasheets and their data, report parameters, history, runs, schedules and email setup, start runs, set its schedules and email, send its email, and share it. It's never `null` here, since the API only returns reports you can at least view."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's timezone, such as `America\/New_York`. The slides agent uses it to tell today's date, and the report's emails show the time of its last successful update (`{{last_updated_at}}`) in it. On a report that updates a file, such as a Google Slides presentation, it's also the timezone of the file's date variables, unless the organization's `timezone` replaces it. Schedules don't use it: each has its own `timezone`. `null` when the report has none, in which case the slides agent uses UTC. Reports created with `createReport` start with the organization's `timezone` from `getOrganization`, if it has one."},"notifyOnFailure":{"type":"boolean","description":"Whether Rollstack emails the report's owner when a scheduled run fails or some of its datasheets, or a file's visualizations, fail to refresh, copying everyone in `notificationMailingList`. Runs started in the app or with `startReportRun` never send this email. New reports start with `true`."},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest run ended, whatever its outcome. `null` if the report has never run."},"lastSuccessfulUpdateAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest fully successful run ended: one that refreshed every datasheet it ran on, or every visualization on a report that updates a file, with none failing. Runs with nothing to refresh don't count. The report's emails show this time as `{{last_updated_at}}`. `null` until the report has had such a run."},"lastRunStatus":{"anyOf":[{"type":"string","enum":["running","completed","failed","cancelled","timed_out"]},{"type":"null"}],"description":"How the report's latest run ended. `completed`: it finished, even if some datasheets or visualizations failed to refresh or it had none to refresh; on a `SlideDeck` report, `listReportDatasheets` shows each datasheet's `error`. `failed`: it stopped on an error, or none of its datasheets or visualizations could be refreshed. `cancelled`: it was stopped before it finished, for example with `cancelReportRun`. `null` if the report has never run. `running` and `timed_out` never appear here: check `running` to see whether a run is in progress."},"running":{"type":"boolean","description":"Whether a run of the report is in progress, whoever started it, such as you with `startReportRun`, a member in the app, or one of its schedules. While it's `true`, `startReportRun` returns that run instead of starting another."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the report in Rollstack."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link that opens the Google Slides, Google Docs, PowerPoint or Word file the report updates. `null` for a slide deck, an email report or an uploaded PowerPoint file, which have no file to open, and for a Microsoft file whose link Rollstack has not read yet."},"createdAt":{"description":"When the report was created. `listReports` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's details last changed, such as its name, folder or owner, or the outcome of its latest run.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"notificationMailingList":{"description":"Email addresses Rollstack copies when it emails the owner about a failed scheduled run, while `notifyOnFailure` is `true`. Change the list with `updateReport`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"string"}},"schedules":{"description":"The report's schedules: when Rollstack runs the report on its own to update it with fresh data. Empty if it has none, in which case the report only runs when someone starts a run. Replace them with `updateReportSchedules`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the schedule. `updateReportSchedules` replaces every schedule, so the ids change each time you call it."},"frequency":{"type":"string","enum":["daily","weekly","monthly","quarterly","hourly","yearly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires; those made in the app run every day, on chosen weekdays, on chosen days of the month, or every three months, respectively. `yearly` can't be set through the API or the app, and also runs on `cronExpression`."},"cronExpression":{"type":"string","description":"When the schedule runs, as a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`. For an `hourly` schedule, Rollstack generates it from `selectedTimes` and runs the report at those times instead. Monthly schedules made in the app can use `L` and `#`, such as `0 9 L * *` (last day of the month) or `0 9 ? * 1#1` (first Monday)."},"selectedTimes":{"type":"array","items":{"type":"string"},"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`. Other frequencies don't use it; it's empty on those set through the API."},"startDate":{"description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule ends: it never runs the report after this date and time. `null` if the schedule never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC."},"timezone":{"type":"string","description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`."},"syncIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does."},"status":{"type":"string","enum":["active","paused"],"description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again."},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule will next run the report. `null` if it is `paused` or has no runs left before its `endDate`. Unlike `startDate` and `endDate`, this is an actual UTC time."}},"required":["id","frequency","cronExpression","selectedTimes","startDate","endDate","timezone","syncIds","status","nextRunAt"],"additionalProperties":false}},"sharedWith":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id. Pass it as `userId` to `shareReport` to change their access, or to `unshareReport` to remove it."},"email":{"type":"string","description":"The member's email address, as shown in Rollstack."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can do with the report. `view` lets them open, export and duplicate it. `comment` also lets them add, reply to and resolve comments on its slides. `edit` also lets them change its slides, data, schedules, email and other settings, run it, send its email, chat with the slides agent about it, and manage who it's shared with. Neither lets them delete the report or transfer its ownership."}},"required":["userId","email","name","permission"],"additionalProperties":false},"description":"Members the report is shared with directly, with their access. Members who can open it through its folder aren't listed. Change this list with `shareReport` and `unshareReport`."}},"required":["id","type","name","folderId","owner","permission","timezone","notifyOnFailure","lastSyncedAt","lastSuccessfulUpdateAt","lastRunStatus","running","appUrl","fileUrl","createdAt","updatedAt","sharedWith"],"additionalProperties":false,"description":"The new report, of type `SlideDeck`."},"conversion":{"anyOf":[{"type":"object","properties":{"converted":{"type":"array","items":{"type":"object","properties":{"syncId":{"type":"string","description":"The sync of the older report, as `listReportSyncs` lists it."},"name":{"type":"string","description":"The sync's name."},"settings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"filter"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A filter on this column."},{"type":"object","properties":{"type":{"type":"string","const":"sort"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"Its sort by this column. Not applied when no column of the datasheet is where the sort was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A split by this column. Not applied past the first 3."},{"type":"object","properties":{"type":{"type":"string","const":"format"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"format":{"type":"string"},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","format","applied"],"additionalProperties":false,"description":"A format on this column. Not applied when no column of the datasheet is where the format was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split_order"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"The order set for the columns this column splits into. Never applied: they come in the data's order."},{"type":"object","properties":{"type":{"type":"string","const":"second_chart_category"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A combo chart's second chart's own category. Never applied: both charts share the first chart's."}]},"description":"The sync's settings, such as its filters and sort, each with whether its datasheet and tile apply it."},"datasheetId":{"type":"string","description":"The datasheet that now reads its source."},"slideId":{"type":"string","description":"The slide whose tile now shows it."},"needsRun":{"type":"boolean","description":"Whether its chart stays empty until the new report's update reads the datasheet's data. Unless `startUpdate` was false, the conversion starts that update, so it fills when the run ends."}},"required":["syncId","name","settings","datasheetId","slideId","needsRun"],"additionalProperties":false},"description":"The syncs that are now tiles on the slides, each drawn from a datasheet."},"notPlaced":{"type":"array","items":{"type":"object","properties":{"syncId":{"type":"string","description":"The sync of the older report, as `listReportSyncs` lists it."},"name":{"type":"string","description":"The sync's name."},"settings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"filter"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A filter on this column."},{"type":"object","properties":{"type":{"type":"string","const":"sort"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"Its sort by this column. Not applied when no column of the datasheet is where the sort was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A split by this column. Not applied past the first 3."},{"type":"object","properties":{"type":{"type":"string","const":"format"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"format":{"type":"string"},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","format","applied"],"additionalProperties":false,"description":"A format on this column. Not applied when no column of the datasheet is where the format was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split_order"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"The order set for the columns this column splits into. Never applied: they come in the data's order."},{"type":"object","properties":{"type":{"type":"string","const":"second_chart_category"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A combo chart's second chart's own category. Never applied: both charts share the first chart's."}]},"description":"The sync's settings, such as its filters and sort, each with whether its datasheet and tile apply it."},"datasheetId":{"type":"string","description":"The datasheet that now reads its source."},"reason":{"type":"string","description":"Why no element of the slides could show it."}},"required":["syncId","name","settings","datasheetId","reason"],"additionalProperties":false},"description":"The syncs that got a datasheet, but no tile: the slides agent can build one from the datasheet."},"notConverted":{"type":"array","items":{"type":"object","properties":{"syncId":{"type":"string","description":"The sync of the older report, as `listReportSyncs` lists it."},"name":{"type":"string","description":"The sync's name."},"reason":{"type":"string","description":"Why it was not converted."}},"required":["syncId","name","reason"],"additionalProperties":false},"description":"The syncs left as they were in the new report's slides, such as a burst variant's."}},"required":["converted","notPlaced","notConverted"],"additionalProperties":false},{"type":"null"}],"description":"What became of the older report's syncs, or null when converting them failed."},"conversionError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the syncs could not be converted, when they couldn't. The new report still exists with the file's slides, so don't convert the report again."},"insights":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"briefed","description":"Its text box got a brief, which the new report's AI updates follow to rewrite its text from new data. Briefs are written in the background within a few minutes of converting."},"insightId":{"type":"string","description":"The AI insight's id."},"name":{"type":"string","description":"The AI insight's name."},"slideId":{"type":"string","description":"The slide of its text box."},"elementId":{"type":"string","description":"Its text box."}},"required":["status","insightId","name","slideId","elementId"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"static","description":"Its text box keeps its last text: the new report's AI updates leave it alone."},"insightId":{"type":"string","description":"The AI insight's id."},"name":{"type":"string","description":"The AI insight's name."},"reason":{"type":"string","enum":["text_box_not_found","no_prompt"],"description":"Why: `text_box_not_found` when its text box isn't on the new report's slides, `no_prompt` when it has no prompt to follow."}},"required":["status","insightId","name","reason"],"additionalProperties":false}]},"description":"What became of each AI insight of the older report."},"runId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The run the conversion started to fill the new report's charts with data, to follow with `getReportRun`. `null` when `startUpdate` was false, no datasheet was made or the run could not start: start one with `startReportRun`."},"notMigrated":{"type":"array","items":{"type":"string"},"description":"What the older report had that wasn't carried over, such as its schedules, which it keeps unless `copySchedules`."}},"required":["dryRun","report","conversion","conversionError","insights","runId","notMigrated"],"additionalProperties":false}]}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/duplicates":{"post":{"operationId":"duplicateReport","summary":"Duplicate report","description":"Copies a report of type SlideDeck with its slides, datasheets and email setup, as Duplicate in the app does, and answers the copy, which you own. Its schedules and direct shares are copied only when asked. Only members who may duplicate the report may: view access is enough. Each call makes another copy.\n\nRequires the `slide_decks:write` scope.","tags":["Reports"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"description":"Name for the copy, as members will see it in Rollstack. Leading and trailing spaces are removed, and it can't be blank.","examples":["Q4 business review"]},"folderId":{"description":"The folder to put the copy in, by its `id` from `listFolders`; it must be one you can add reports to. If omitted, the copy goes in the report's own folder, or for a burst's variant, in the burst's folder.","examples":["a3d5e7f9-1b2c-4d6e-8f0a-1b2c3d4e5f6a"],"type":"string"},"copySchedules":{"default":false,"description":"Also give the copy the report's schedules, so it updates on its own at the same times. Defaults to `false`.","type":"boolean"},"inheritSharing":{"default":false,"description":"Also share the copy with everyone the report is shared with directly, at the same permission. Defaults to `false`, so only you can open it until you share it.","type":"boolean"},"copyFiles":{"default":[],"description":"Files the report reads to copy, so the copy reads its own instead of sharing them, as the switches in the app's Duplicate form do. A Google Sheets or Excel file is copied into your Google Drive or OneDrive, with your access to it; an uploaded file is copied in Rollstack, and you are its uploader. If a file can't be copied, nothing is duplicated. Defaults to none: the copy reads the same files as the report.","maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"The spreadsheet or uploaded file to copy: a datasheet's `spreadsheetId` or `datasetId` from `listReportDatasheets`."},"name":{"description":"Name for the copy of the file. Defaults to \"Copy of\" and the file's name.","type":"string","minLength":1}},"required":["id"],"additionalProperties":false}}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the report. Pass it as `id` to the other `\/reports\/{id}` endpoints."},"type":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The kind of report, which decides the endpoints that work on it.\n\n- `SlideDeck`: a slide deck built in Rollstack. Every `\/reports\/{id}` endpoint works on it, except `listReportSyncs` and `convertReport`.\n- `GoogleSlides`, `GoogleDocs`, `MicrosoftPowerPoint`, `MicrosoftWord`: a file in Google Drive or OneDrive that Rollstack updates with its visualizations.\n- `UploadedPPTXFile`: a PowerPoint file uploaded to Rollstack, which it updates the same way.\n- `Email`: an email report, whose visualizations Rollstack sends in an email.\n\nOn a report that isn't a `SlideDeck`, only `getReport`, `updateReport`, `deleteReport`, `shareReport`, `unshareReport`, `getReportSchedules`, `updateReportSchedules`, `startReportRun`, `listReportRuns`, `getReportRun`, `cancelReportRun`, `listReportSyncs` and the email endpoints (`getReportEmailConfig`, `updateReportEmailConfig`, `listReportEmails`, `sendReportEmail`, `sendReportTestEmail`) work, and `convertReport` on a `GoogleSlides` or `MicrosoftPowerPoint` report. The other `\/reports\/{id}` endpoints take `SlideDeck` reports only, as their `id` says, and return `400`."},"name":{"type":"string","description":"Name of the report, as members see it in Rollstack. Change it with `updateReport`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the report is in, by its `id` in `listFolders`. `null` when the report is at the top level, outside any folder."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address. Rollstack emails this address when a scheduled run of the report fails, while `notifyOnFailure` is `true`."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the report: whoever created it, unless ownership has since been transferred, in the app or with `transferReportOwnership`. Only the owner can delete the report."},"permission":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"description":"Your access to the report, as the user the API key belongs to. `view` lets you open and export it: on a `SlideDeck`, read its slides with `getReportContent` and `getReportSlideImages`; on any other report, also see its runs, schedules and email setup. `comment` also lets you read, add, reply to and resolve comments on a `SlideDeck`'s slides. `edit` also lets you change it: rename or move it, chat with the slides agent about it, read its slide HTML, datasheets and their data, report parameters, history, runs, schedules and email setup, start runs, set its schedules and email, send its email, and share it. It's never `null` here, since the API only returns reports you can at least view."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's timezone, such as `America\/New_York`. The slides agent uses it to tell today's date, and the report's emails show the time of its last successful update (`{{last_updated_at}}`) in it. On a report that updates a file, such as a Google Slides presentation, it's also the timezone of the file's date variables, unless the organization's `timezone` replaces it. Schedules don't use it: each has its own `timezone`. `null` when the report has none, in which case the slides agent uses UTC. Reports created with `createReport` start with the organization's `timezone` from `getOrganization`, if it has one."},"notifyOnFailure":{"type":"boolean","description":"Whether Rollstack emails the report's owner when a scheduled run fails or some of its datasheets, or a file's visualizations, fail to refresh, copying everyone in `notificationMailingList`. Runs started in the app or with `startReportRun` never send this email. New reports start with `true`."},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest run ended, whatever its outcome. `null` if the report has never run."},"lastSuccessfulUpdateAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest fully successful run ended: one that refreshed every datasheet it ran on, or every visualization on a report that updates a file, with none failing. Runs with nothing to refresh don't count. The report's emails show this time as `{{last_updated_at}}`. `null` until the report has had such a run."},"lastRunStatus":{"anyOf":[{"type":"string","enum":["running","completed","failed","cancelled","timed_out"]},{"type":"null"}],"description":"How the report's latest run ended. `completed`: it finished, even if some datasheets or visualizations failed to refresh or it had none to refresh; on a `SlideDeck` report, `listReportDatasheets` shows each datasheet's `error`. `failed`: it stopped on an error, or none of its datasheets or visualizations could be refreshed. `cancelled`: it was stopped before it finished, for example with `cancelReportRun`. `null` if the report has never run. `running` and `timed_out` never appear here: check `running` to see whether a run is in progress."},"running":{"type":"boolean","description":"Whether a run of the report is in progress, whoever started it, such as you with `startReportRun`, a member in the app, or one of its schedules. While it's `true`, `startReportRun` returns that run instead of starting another."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the report in Rollstack."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link that opens the Google Slides, Google Docs, PowerPoint or Word file the report updates. `null` for a slide deck, an email report or an uploaded PowerPoint file, which have no file to open, and for a Microsoft file whose link Rollstack has not read yet."},"createdAt":{"description":"When the report was created. `listReports` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's details last changed, such as its name, folder or owner, or the outcome of its latest run.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"notificationMailingList":{"description":"Email addresses Rollstack copies when it emails the owner about a failed scheduled run, while `notifyOnFailure` is `true`. Change the list with `updateReport`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"string"}},"schedules":{"description":"The report's schedules: when Rollstack runs the report on its own to update it with fresh data. Empty if it has none, in which case the report only runs when someone starts a run. Replace them with `updateReportSchedules`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the schedule. `updateReportSchedules` replaces every schedule, so the ids change each time you call it."},"frequency":{"type":"string","enum":["daily","weekly","monthly","quarterly","hourly","yearly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires; those made in the app run every day, on chosen weekdays, on chosen days of the month, or every three months, respectively. `yearly` can't be set through the API or the app, and also runs on `cronExpression`."},"cronExpression":{"type":"string","description":"When the schedule runs, as a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`. For an `hourly` schedule, Rollstack generates it from `selectedTimes` and runs the report at those times instead. Monthly schedules made in the app can use `L` and `#`, such as `0 9 L * *` (last day of the month) or `0 9 ? * 1#1` (first Monday)."},"selectedTimes":{"type":"array","items":{"type":"string"},"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`. Other frequencies don't use it; it's empty on those set through the API."},"startDate":{"description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule ends: it never runs the report after this date and time. `null` if the schedule never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC."},"timezone":{"type":"string","description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`."},"syncIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does."},"status":{"type":"string","enum":["active","paused"],"description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again."},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule will next run the report. `null` if it is `paused` or has no runs left before its `endDate`. Unlike `startDate` and `endDate`, this is an actual UTC time."}},"required":["id","frequency","cronExpression","selectedTimes","startDate","endDate","timezone","syncIds","status","nextRunAt"],"additionalProperties":false}},"sharedWith":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id. Pass it as `userId` to `shareReport` to change their access, or to `unshareReport` to remove it."},"email":{"type":"string","description":"The member's email address, as shown in Rollstack."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can do with the report. `view` lets them open, export and duplicate it. `comment` also lets them add, reply to and resolve comments on its slides. `edit` also lets them change its slides, data, schedules, email and other settings, run it, send its email, chat with the slides agent about it, and manage who it's shared with. Neither lets them delete the report or transfer its ownership."}},"required":["userId","email","name","permission"],"additionalProperties":false},"description":"Members the report is shared with directly, with their access. Members who can open it through its folder aren't listed. Change this list with `shareReport` and `unshareReport`."}},"required":["id","type","name","folderId","owner","permission","timezone","notifyOnFailure","lastSyncedAt","lastSuccessfulUpdateAt","lastRunStatus","running","appUrl","fileUrl","createdAt","updatedAt","sharedWith"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/batch-get":{"post":{"operationId":"batchGetReports","summary":"Get reports in a batch","description":"Up to 50 reports of any type at once, each as getReport answers it, with its schedules, who it is shared with, how its latest run went and whether one is going. Answers one result per report, each naming its id: a report you can't see fails on its own, with the error getReport would answer, and the others still answer.\n\nRequires the `slide_decks:read` scope.","tags":["Reports"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"ids":{"description":"The reports to act on, of any `type`, by their `id` from `listReports`. From 1 to 50 ids; an id listed twice is acted on once.","minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}}},"required":["ids"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"results":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"The report, by its `id` from `ids`."},"status":{"type":"string","const":"done","description":"The call succeeded on this report."},"result":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the report. Pass it as `id` to the other `\/reports\/{id}` endpoints."},"type":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The kind of report, which decides the endpoints that work on it.\n\n- `SlideDeck`: a slide deck built in Rollstack. Every `\/reports\/{id}` endpoint works on it, except `listReportSyncs` and `convertReport`.\n- `GoogleSlides`, `GoogleDocs`, `MicrosoftPowerPoint`, `MicrosoftWord`: a file in Google Drive or OneDrive that Rollstack updates with its visualizations.\n- `UploadedPPTXFile`: a PowerPoint file uploaded to Rollstack, which it updates the same way.\n- `Email`: an email report, whose visualizations Rollstack sends in an email.\n\nOn a report that isn't a `SlideDeck`, only `getReport`, `updateReport`, `deleteReport`, `shareReport`, `unshareReport`, `getReportSchedules`, `updateReportSchedules`, `startReportRun`, `listReportRuns`, `getReportRun`, `cancelReportRun`, `listReportSyncs` and the email endpoints (`getReportEmailConfig`, `updateReportEmailConfig`, `listReportEmails`, `sendReportEmail`, `sendReportTestEmail`) work, and `convertReport` on a `GoogleSlides` or `MicrosoftPowerPoint` report. The other `\/reports\/{id}` endpoints take `SlideDeck` reports only, as their `id` says, and return `400`."},"name":{"type":"string","description":"Name of the report, as members see it in Rollstack. Change it with `updateReport`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the report is in, by its `id` in `listFolders`. `null` when the report is at the top level, outside any folder."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address. Rollstack emails this address when a scheduled run of the report fails, while `notifyOnFailure` is `true`."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the report: whoever created it, unless ownership has since been transferred, in the app or with `transferReportOwnership`. Only the owner can delete the report."},"permission":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"description":"Your access to the report, as the user the API key belongs to. `view` lets you open and export it: on a `SlideDeck`, read its slides with `getReportContent` and `getReportSlideImages`; on any other report, also see its runs, schedules and email setup. `comment` also lets you read, add, reply to and resolve comments on a `SlideDeck`'s slides. `edit` also lets you change it: rename or move it, chat with the slides agent about it, read its slide HTML, datasheets and their data, report parameters, history, runs, schedules and email setup, start runs, set its schedules and email, send its email, and share it. It's never `null` here, since the API only returns reports you can at least view."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's timezone, such as `America\/New_York`. The slides agent uses it to tell today's date, and the report's emails show the time of its last successful update (`{{last_updated_at}}`) in it. On a report that updates a file, such as a Google Slides presentation, it's also the timezone of the file's date variables, unless the organization's `timezone` replaces it. Schedules don't use it: each has its own `timezone`. `null` when the report has none, in which case the slides agent uses UTC. Reports created with `createReport` start with the organization's `timezone` from `getOrganization`, if it has one."},"notifyOnFailure":{"type":"boolean","description":"Whether Rollstack emails the report's owner when a scheduled run fails or some of its datasheets, or a file's visualizations, fail to refresh, copying everyone in `notificationMailingList`. Runs started in the app or with `startReportRun` never send this email. New reports start with `true`."},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest run ended, whatever its outcome. `null` if the report has never run."},"lastSuccessfulUpdateAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest fully successful run ended: one that refreshed every datasheet it ran on, or every visualization on a report that updates a file, with none failing. Runs with nothing to refresh don't count. The report's emails show this time as `{{last_updated_at}}`. `null` until the report has had such a run."},"lastRunStatus":{"anyOf":[{"type":"string","enum":["running","completed","failed","cancelled","timed_out"]},{"type":"null"}],"description":"How the report's latest run ended. `completed`: it finished, even if some datasheets or visualizations failed to refresh or it had none to refresh; on a `SlideDeck` report, `listReportDatasheets` shows each datasheet's `error`. `failed`: it stopped on an error, or none of its datasheets or visualizations could be refreshed. `cancelled`: it was stopped before it finished, for example with `cancelReportRun`. `null` if the report has never run. `running` and `timed_out` never appear here: check `running` to see whether a run is in progress."},"running":{"type":"boolean","description":"Whether a run of the report is in progress, whoever started it, such as you with `startReportRun`, a member in the app, or one of its schedules. While it's `true`, `startReportRun` returns that run instead of starting another."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the report in Rollstack."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link that opens the Google Slides, Google Docs, PowerPoint or Word file the report updates. `null` for a slide deck, an email report or an uploaded PowerPoint file, which have no file to open, and for a Microsoft file whose link Rollstack has not read yet."},"createdAt":{"description":"When the report was created. `listReports` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's details last changed, such as its name, folder or owner, or the outcome of its latest run.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"notificationMailingList":{"description":"Email addresses Rollstack copies when it emails the owner about a failed scheduled run, while `notifyOnFailure` is `true`. Change the list with `updateReport`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"string"}},"schedules":{"description":"The report's schedules: when Rollstack runs the report on its own to update it with fresh data. Empty if it has none, in which case the report only runs when someone starts a run. Replace them with `updateReportSchedules`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the schedule. `updateReportSchedules` replaces every schedule, so the ids change each time you call it."},"frequency":{"type":"string","enum":["daily","weekly","monthly","quarterly","hourly","yearly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires; those made in the app run every day, on chosen weekdays, on chosen days of the month, or every three months, respectively. `yearly` can't be set through the API or the app, and also runs on `cronExpression`."},"cronExpression":{"type":"string","description":"When the schedule runs, as a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`. For an `hourly` schedule, Rollstack generates it from `selectedTimes` and runs the report at those times instead. Monthly schedules made in the app can use `L` and `#`, such as `0 9 L * *` (last day of the month) or `0 9 ? * 1#1` (first Monday)."},"selectedTimes":{"type":"array","items":{"type":"string"},"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`. Other frequencies don't use it; it's empty on those set through the API."},"startDate":{"description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule ends: it never runs the report after this date and time. `null` if the schedule never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC."},"timezone":{"type":"string","description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`."},"syncIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does."},"status":{"type":"string","enum":["active","paused"],"description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again."},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule will next run the report. `null` if it is `paused` or has no runs left before its `endDate`. Unlike `startDate` and `endDate`, this is an actual UTC time."}},"required":["id","frequency","cronExpression","selectedTimes","startDate","endDate","timezone","syncIds","status","nextRunAt"],"additionalProperties":false}},"sharedWith":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id. Pass it as `userId` to `shareReport` to change their access, or to `unshareReport` to remove it."},"email":{"type":"string","description":"The member's email address, as shown in Rollstack."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can do with the report. `view` lets them open, export and duplicate it. `comment` also lets them add, reply to and resolve comments on its slides. `edit` also lets them change its slides, data, schedules, email and other settings, run it, send its email, chat with the slides agent about it, and manage who it's shared with. Neither lets them delete the report or transfer its ownership."}},"required":["userId","email","name","permission"],"additionalProperties":false},"description":"Members the report is shared with directly, with their access. Members who can open it through its folder aren't listed. Change this list with `shareReport` and `unshareReport`."}},"required":["id","type","name","folderId","owner","permission","timezone","notifyOnFailure","lastSyncedAt","lastSuccessfulUpdateAt","lastRunStatus","running","appUrl","fileUrl","createdAt","updatedAt","sharedWith"],"additionalProperties":false,"description":"The report, as `getReport` answers it."}},"required":["id","status","result"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"The report, by its `id` from `ids`."},"status":{"type":"string","const":"failed","description":"The call failed on this report and changed nothing on it. The other reports are unaffected."},"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable, machine-readable code for the error, such as `api-key-missing-scope` or `data-validation-error`. Use it, rather than `message`, to handle specific errors in your code."},"message":{"type":"string","description":"A human-readable explanation of what went wrong, to log or show to people. When the request's path parameters, query or body are invalid (`data-validation-error`), it lists each invalid field by its path, with the problem, such as `body.emails.0: Invalid email address`."},"statusCode":{"type":"number","description":"The HTTP status the same call on this report alone would answer, such as `404` or `403`."}},"required":["code","message","statusCode"],"additionalProperties":false,"description":"Why this report failed, as the endpoint for one report would answer. Retry only these reports."}},"required":["id","status","error"],"additionalProperties":false}]},"description":"One result per report, each naming its `id`."}},"required":["results"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/transfer-ownership":{"post":{"operationId":"transferReportOwnership","summary":"Transfer ownership","description":"Makes a member of the organization the owner of a report. Only its owner may, and keeps edit access.\n\nRequires the `slide_decks:write` scope.","tags":["Reports"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"newOwnerId":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member who becomes the report's owner, by user id: their `id` in `listMembers`, or their `userId` in the report's `sharedWith`. They must be an active member of the organization other than you. The previous owner keeps `edit` access to the report, and the new owner is notified.","examples":[1042]}},"required":["newOwnerId"],"additionalProperties":false}}}},"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/templates":{"get":{"operationId":"listTemplates","summary":"List templates","description":"The templates the user can build a slide deck in: their company's, with who imported each and whether it is shared with the organization, then Rollstack's own. Pass a template's id as templateId to createReport or applyReportTemplate.\n\nRequires the `slide_decks:read` scope.","tags":["Templates"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"description":"The template, by its `id` from `listTemplates`. Rollstack's own template has the fixed id `rollstack-signature`.","examples":["rollstack-signature"]},"name":{"type":"string","description":"The template's name, as members see it in Rollstack."},"builtIn":{"type":"boolean","description":"`true` for Rollstack's own template, which every organization has; `false` for a company template."},"source":{"type":"string","description":"Where the template comes from, as Rollstack shows it: `Made by Rollstack`, `Shared by <member>` or `Only visible to you`. Name it to tell templates with the same name apart."},"sharedWithOrganization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether everyone in the organization can use the company template. `false` when only its creator can. `null` for Rollstack's own template."},"createdBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"The member who imported the company template. `null` for Rollstack's own, or when their account was deleted."},"createdAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the company template was imported. `null` for Rollstack's own."}},"required":["id","name","builtIn","source","sharedWithOrganization","createdBy","createdAt"],"additionalProperties":false},"description":"The templates the user can use: the company templates they imported or that are shared with the organization, newest first, then Rollstack's own. Members import and share them in Rollstack, in the Templates drawer of a report."}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createTemplate","summary":"Import template","description":"Imports a company template from a Google Slides presentation, as the app's Templates drawer does: its theme, slide masters, layouts and slide size, not its slides. The presentation is read with the user's Google account connected to Rollstack. Over REST, you can instead send a PowerPoint file as multipart\/form-data in the file field: a .pptx of at most 100 MB, named after the file and kept to the user until shared with updateTemplate. Answers the template as listTemplates lists it, to pass as templateId to createReport or applyReportTemplate.\n\nRequires the `slide_decks:write` scope.","tags":["Templates"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The template's name, as members will see it in Rollstack.","examples":["Acme 2026"]},"googleSlidesId":{"description":"The Google Slides presentation to import the look of, by its link or its id: the part after `\/presentation\/d\/` in the link. It's read with your Google account connected to Rollstack, so you must be able to open it.","type":"string","minLength":1},"sharedWithOrganization":{"default":false,"description":"Whether everyone in the organization can use the template, or only you. Only admins can share a template with the organization; a template's creator can stop sharing it. Defaults to `false`.","type":"boolean"}},"required":["name","googleSlidesId"],"additionalProperties":false}},"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The PowerPoint file, a `.pptx` of at most 100 MB. The endpoint says what it takes from the file and how it names what it makes."}},"required":["file"]}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","minLength":1,"description":"The template, by its `id` from `listTemplates`. Rollstack's own template has the fixed id `rollstack-signature`.","examples":["rollstack-signature"]},"name":{"type":"string","description":"The template's name, as members see it in Rollstack."},"builtIn":{"type":"boolean","description":"`true` for Rollstack's own template, which every organization has; `false` for a company template."},"source":{"type":"string","description":"Where the template comes from, as Rollstack shows it: `Made by Rollstack`, `Shared by <member>` or `Only visible to you`. Name it to tell templates with the same name apart."},"sharedWithOrganization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether everyone in the organization can use the company template. `false` when only its creator can. `null` for Rollstack's own template."},"createdBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"The member who imported the company template. `null` for Rollstack's own, or when their account was deleted."},"createdAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the company template was imported. `null` for Rollstack's own."}},"required":["id","name","builtIn","source","sharedWithOrganization","createdBy","createdAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/templates\/{templateId}":{"patch":{"operationId":"updateTemplate","summary":"Update template","description":"Renames a company template, or shares it with the organization or stops sharing it, as the app's Templates drawer does. Its creator can rename it and stop sharing it, only an admin can share their own template with the organization, and admins can also rename any shared one. Reports already built in it keep their look. Answers the template as listTemplates lists it.\n\nRequires the `slide_decks:write` scope.","tags":["Templates"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"templateId","in":"path","required":true,"description":"The company template to act on, by its `id` from `listTemplates`. Rollstack's own template can't be changed.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The company template to act on, by its `id` from `listTemplates`. Rollstack's own template can't be changed."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"description":"The template's new name, as members see it in Rollstack.","type":"string","minLength":1,"maxLength":200},"sharedWithOrganization":{"description":"Whether everyone in the organization can use the template, or only you. Only admins can share a template with the organization; a template's creator can stop sharing it.","type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","minLength":1,"description":"The template, by its `id` from `listTemplates`. Rollstack's own template has the fixed id `rollstack-signature`.","examples":["rollstack-signature"]},"name":{"type":"string","description":"The template's name, as members see it in Rollstack."},"builtIn":{"type":"boolean","description":"`true` for Rollstack's own template, which every organization has; `false` for a company template."},"source":{"type":"string","description":"Where the template comes from, as Rollstack shows it: `Made by Rollstack`, `Shared by <member>` or `Only visible to you`. Name it to tell templates with the same name apart."},"sharedWithOrganization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"description":"Whether everyone in the organization can use the company template. `false` when only its creator can. `null` for Rollstack's own template."},"createdBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"number"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"The member who imported the company template. `null` for Rollstack's own, or when their account was deleted."},"createdAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the company template was imported. `null` for Rollstack's own."}},"required":["id","name","builtIn","source","sharedWithOrganization","createdBy","createdAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"deleteTemplate","summary":"Delete template","description":"Deletes a company template, as the app's Templates drawer does. Reports already built in it keep their look; new ones can no longer start in it. Its creator, or an admin for a shared one, may.\n\nRequires the `slide_decks:write` scope.","tags":["Templates"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"templateId","in":"path","required":true,"description":"The company template to act on, by its `id` from `listTemplates`. Rollstack's own template can't be changed.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The company template to act on, by its `id` from `listTemplates`. Rollstack's own template can't be changed."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/template":{"post":{"operationId":"applyReportTemplate","summary":"Apply template","description":"Switches a report of type SlideDeck to a template's theme, slide masters, layouts and slide size, as the Templates drawer in the app does. Its slides keep their content and move to the template's matching layouts; the answer names the slides that had no match, and the version saved just before as versionBeforeId: restore it with restoreReportVersion to undo the change. Only its editors may, and not while the report is running or the slides agent is working on it.\n\nRequires the `slide_decks:write` scope.","tags":["Templates"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"templateId":{"type":"string","minLength":1,"description":"The template, by its `id` from `listTemplates`. Rollstack's own template has the fixed id `rollstack-signature`.","examples":["rollstack-signature"]}},"required":["templateId"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"templateName":{"type":"string","description":"The name of the template the report now uses."},"versionName":{"type":"string","description":"The name of the version of the report saved just before, in its Version history."},"versionBeforeId":{"type":"string","description":"The version saved just before. Restore it with `restoreReportVersion` to undo the change."},"closestLayoutSlides":{"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"description":"The slides, by number from 1, whose layout the template has no match for: they moved to the template's closest layout, so tell the user to check them."},"noLayoutSlides":{"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"description":"The slides, by number from 1, with no layout, such as ones pasted from PowerPoint: they only got the template's colors and fonts."}},"required":["templateName","versionName","versionBeforeId","closestLayoutSlides","noLayoutSlides"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/versions":{"get":{"operationId":"listReportVersions","summary":"List report versions","description":"The Version history of a report of type SlideDeck, newest first, as the app lists it: the versions Rollstack saved while it was edited, run or changed by the slides agent, and those saved with saveReportVersion, each with what saved it. Answers up to limit versions, 20 by default and 100 at most, and a nextCursor: pass it as cursor for the next page, until it is null. Pass a version's id to restoreReportVersion to take the report back to it.\n\nRequires the `slide_decks:read` scope.","tags":["Versions"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"limit","in":"query","required":false,"description":"Maximum number of versions to return on this page, from 1 to 100. Defaults to `20`.","schema":{"default":20,"description":"Maximum number of versions to return on this page, from 1 to 100. Defaults to `20`.","type":"integer","minimum":1,"maximum":100}},{"name":"cursor","in":"query","required":false,"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","schema":{"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","examples":["6c1f9a2e-3b4d-4e8f-9a1b-2c3d4e5f6a7b"],"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the version. Pass it as `versionId` to `restoreReportVersion`."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name the version was saved with, such as `Before applying Acme` for the one a template apply saves. `null` when it has none: the app then names it after its `kind` or the time it was saved."},"kind":{"type":"string","enum":["autoSaved","saved","beforeRun","afterRun","beforeSlidesAgent","afterSlidesAgent","slidesAgent"],"description":"What saved the version.\n\n- `autoSaved`: Rollstack, while the report was edited, and just before a version was restored or a template applied.\n- `saved`: a member, with `saveReportVersion`.\n- `beforeRun`, `afterRun`: a run, just before and after it updated the report.\n- `beforeSlidesAgent`, `afterSlidesAgent`: the slides agent, just before and after it changed the report. A reply's `versionBeforeId` names the one before it.\n- `slidesAgent`: an earlier version of the slides agent."},"savedBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"email":{"type":"string","description":"The member's email address."}},"required":["id","name","email"],"additionalProperties":false},{"type":"null"}],"description":"The member whose edit, run, message or call saved it. `null` if their account was deleted."},"createdAt":{"description":"When the version was saved.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","kind","savedBy","createdAt"],"additionalProperties":false},"description":"The report's Version history, newest first: the versions it can be restored to."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass it as `cursor` to get the next page of versions. `null` when there are no more."}},"required":["data","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"saveReportVersion","summary":"Save report version","description":"Saves a report of type SlideDeck as it is now in its Version history, with an optional name, so it can be restored later with restoreReportVersion, for example before a change the user may want to take back. Rollstack already saves one before each change of the slides agent, each run and each template apply. Only its editors may. Each call saves another version.\n\nRequires the `slide_decks:write` scope.","tags":["Versions"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"description":"A name for the version, as members will see it in the report's Version history, from 1 to 100 characters. Without one, the app names it after the time it was saved.","examples":["Before the Q3 restyle"],"type":"string","minLength":1,"maxLength":100}},"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Identifies the version. Pass it as `versionId` to `restoreReportVersion`."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name the version was saved with, such as `Before applying Acme` for the one a template apply saves. `null` when it has none: the app then names it after its `kind` or the time it was saved."},"kind":{"type":"string","enum":["autoSaved","saved","beforeRun","afterRun","beforeSlidesAgent","afterSlidesAgent","slidesAgent"],"description":"What saved the version.\n\n- `autoSaved`: Rollstack, while the report was edited, and just before a version was restored or a template applied.\n- `saved`: a member, with `saveReportVersion`.\n- `beforeRun`, `afterRun`: a run, just before and after it updated the report.\n- `beforeSlidesAgent`, `afterSlidesAgent`: the slides agent, just before and after it changed the report. A reply's `versionBeforeId` names the one before it.\n- `slidesAgent`: an earlier version of the slides agent."},"savedBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"email":{"type":"string","description":"The member's email address."}},"required":["id","name","email"],"additionalProperties":false},{"type":"null"}],"description":"The member whose edit, run, message or call saved it. `null` if their account was deleted."},"createdAt":{"description":"When the version was saved.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","kind","savedBy","createdAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/versions\/{versionId}\/restore":{"post":{"operationId":"restoreReportVersion","summary":"Restore report version","description":"Takes a report of type SlideDeck back to one of its versions, as Restore in the app's Version history does: its slides, and the datasheets when the version saved them, become the version's, replacing every change made since, and members with the report open see it at once. Find the version with listReportVersions, or take a slides agent reply's versionBeforeId to undo that reply. The report as it was is saved first, and the answer names that version as versionBeforeId. Only its editors may, and not while the report is running or the slides agent is working on it.\n\nRequires the `slide_decks:write` scope.","tags":["Versions"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"versionId","in":"path","required":true,"description":"The version to restore: an `id` from `listReportVersions`, or a reply's `versionBeforeId`.","schema":{"type":"string","description":"The version to restore: an `id` from `listReportVersions`, or a reply's `versionBeforeId`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"versionBeforeId":{"type":"string","description":"The version of the report saved just before the restore, with the slides and datasheets it replaced. Restore it to undo the restore."},"skippedDatasheetIds":{"type":"array","items":{"type":"string"},"description":"Datasheets the version had that stayed as they are now, because they read a source deleted since. Usually empty. A version saved before Rollstack kept datasheets in versions brings back only its slides."}},"required":["versionBeforeId","skippedDatasheetIds"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/messages\/{messageId}":{"get":{"operationId":"getReportMessage","summary":"Get slides agent message","description":"A message to the slides agent and its replies. Waits up to waitSeconds for the message to finish and answers as soon as it does, so call it again while the status is queued or running. A clarification reply asks questions: ask the user, then send the options they pick as answers in a new message on the same chat. A proposal reply changes nothing until it is approved: show the user what its proposal changes, then approve or reject it as they decide. Only the user who sent the message may read it, while they can edit the report.\n\nRequires the `slide_decks:read` scope.","tags":["Chat"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"messageId","in":"path","required":true,"description":"The message to the slides agent: the `messageId` that `sendReportMessage` returned. Only the user who sent the message can read, cancel or decide its proposals, and only while they can edit the report.","schema":{"type":"string","description":"The message to the slides agent: the `messageId` that `sendReportMessage` returned. Only the user who sent the message can read, cancel or decide its proposals, and only while they can edit the report."}},{"name":"waitSeconds","in":"query","required":false,"description":"How long this call waits for the work to finish, in seconds: the message to the slides agent on `getReportMessage`, the run on `getReportRun`, the batch of variants being added on `getBurstVariantBatch`, the runs of a burst's variants on `getBurstRun`, the export on `getRunsExport`. It returns as soon as the work is done, or as things stand once the time is up, so call it again while `status` is still `queued` or `running`. `0` returns at once. Defaults to `20`; at most `30`.","schema":{"default":20,"description":"How long this call waits for the work to finish, in seconds: the message to the slides agent on `getReportMessage`, the run on `getReportRun`, the batch of variants being added on `getBurstVariantBatch`, the runs of a burst's variants on `getBurstRun`, the export on `getRunsExport`. It returns as soon as the work is done, or as things stand once the time is up, so call it again while `status` is still `queued` or `running`. `0` returns at once. Defaults to `20`; at most `30`.","type":"integer","minimum":0,"maximum":30}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"chatId":{"type":"string","description":"Identifies the chat the message is in, which also shows in your chat history on the report in the app. Pass it as `chatId` to `sendReportMessage` to continue the conversation, for example to answer a `clarification` reply."},"messageId":{"type":"string","description":"Identifies your message to the slides agent. Pass it as `messageId` to `getReportMessage` to follow its progress and read the agent's replies, or to `cancelReportMessage` to stop it."},"status":{"type":"string","enum":["queued","running","completed","failed","cancelled"],"description":"Where the message stands. `sendReportMessage` always returns `queued` or `running`.\n\n- `queued`: the agent is still replying to an earlier message of the same chat; this one starts once that reply is finished.\n- `running`: the slides agent is working on it. While other chats keep the agent busy on this report, it can first wait here for its turn.\n- `completed`: every reply is finished; `getReportMessage` lists them in `replies`.\n- `failed`: at least one of its replies failed.\n- `cancelled`: it was stopped while running, for example with `cancelReportMessage` or the stop button in the app. Cancelling a `queued` message removes it from the chat instead, so it is no longer found."},"appUrl":{"type":"string","format":"uri","description":"Link to the report in Rollstack, with this chat open, where you can follow the conversation and review the changes the agent made."},"stage":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the slides agent is doing right now, in the words the chat in the app shows, such as `Understanding your request`, `Refreshing data`, `Design` or `Finishing up`. Use it to show progress while `status` is `running`. `null` when no step is under way: while the message is `queued`, before the agent's first step, and once the message is finished."},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","description":"When you sent the message to the slides agent."},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","description":"When the message or any of its replies last changed, for example as the agent reports progress or finishes a reply."},"replies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the reply. It stays the same from `running` until the reply is finished, so you can follow each reply across calls."},"status":{"type":"string","enum":["running","completed","failed","cancelled"],"description":"Where this reply stands. `running` while the agent works on it or it waits its turn; on a `datasheet_filters_proposal`, until Rollstack has applied the filters. `completed` once the reply is finished: `type` says what it is. `failed` when the agent couldn't finish it, never got to it because an earlier part failed or was stopped, or the filters couldn't be applied. `cancelled` when it was stopped, for example with `cancelReportMessage` or the stop button in the app."},"type":{"anyOf":[{"type":"string","enum":["result","partial_result","clarification","answer","settings_proposal","proposal_applied","email_send_proposal","datasheet_filters_proposal","report_proposal"]},{"type":"null"}],"description":"What the reply is, which tells you what to do next. `null` while the agent is still working on it, and when it failed or was stopped.\n\n- `result`: the agent changed the report, and the changes are already saved. `changedSlideIds` lists the slides it added or changed; `versionBeforeId` undoes them with `restoreReportVersion`, and they can also be reviewed or reverted in the app.\n- `partial_result`: the same as `result`, on replies written by an earlier version of the slides agent.\n- `clarification`: the agent needs more from you before it goes on. Answer its `questions`, or the question in `content` when there are none, in the next message on the same chat.\n- `answer`: the agent replied in `content` without changing the report, for example to a question about the report or about how Rollstack works.\n- `datasheet_filters_proposal`: the agent changes the values of filters that some of the report's datasheets apply when they read their source. For a message sent through the API, Rollstack applies them right away, without approval in the app. If your request needed more than that, it then goes on by itself as a new message in the same chat, unless you send one there first; that message isn't in these `replies`, so follow it in the app.\n- `settings_proposal`, `email_send_proposal`: a change to the report's update schedules, email settings, email template or parameters, or sending the report by email. Nothing changes until it is approved: show the user what `proposal` changes, then approve it with `approveReportMessageProposal` or reject it with `rejectReportMessageProposal`, as they decide. It can also be decided in the app. The agent makes one for a message sent through the API only when your API key has the scope the change needs.\n- `report_proposal`: a change elsewhere in Rollstack, such as to reports, folders or members. The agent doesn't make them for messages sent through the API.\n- `proposal_applied`: a note the chat in the app adds once a proposal is decided. It is never listed in `replies`."},"content":{"type":"string","description":"The reply's text, as the chat in the app shows it: what the agent did, its answer, or its questions. Empty until the agent has written it. When the reply failed or was stopped, it says so. Can contain Markdown."},"questions":{"description":"On a `clarification` reply: the multiple-choice questions the agent needs answered before it goes on. Send the options picked as `answers` in the next message on the same chat, or answer in your own words in `content`. Absent on other replies, and on a clarification that asks its question only in `content`.","type":"array","items":{"type":"object","properties":{"question":{"type":"string","description":"The question the agent is asking, as the chat in the app shows it."},"header":{"type":"string","description":"A short label for the question, such as `Chart type`, shown before it in the app. Send it back unchanged, with `question`, when you answer."},"multiSelect":{"type":"boolean","description":"Whether more than one option can be picked. When `true`, the app shows the options as checkboxes; when `false`, as a single choice, so answer with one option."},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","description":"The option's text, as shown in the app. Send it back in `answers` to pick this option. The agent may mark the option it recommends with `(Recommended)`, which you can keep or drop."},"description":{"description":"What picking this option means, shown under its label in the app.","type":"string"},"value":{"description":"Set when the option offers data the agent found: a connection for the agent to search next, or a dashboard, table or spreadsheet that Rollstack adds to the report as a datasheet when you pick the option. It isn't shown in the app, and you don't send it back: picking the option by its `label` in the next message on the same chat is enough.","type":"string"},"templateId":{"description":"Set when the option offers a saved template, by its `id` in `listTemplates`: the app shows the template's look. You don't send it back: picking the option by its `label` is enough.","type":"string"},"documentUse":{"description":"Set when the option says what an attached PowerPoint file is for. You don't send it back: picking the option by its `label` is enough.","type":"object","properties":{"documentId":{"type":"string"},"use":{"type":"string","enum":["layout","content","both","slides"]}},"required":["documentId","use"],"additionalProperties":false}},"required":["label"],"additionalProperties":false},"description":"The options to choose from. Answer with the `label` of each one picked."}},"required":["question","header","multiSelect","options"],"additionalProperties":false}},"changedSlideIds":{"description":"On a `result` or `partial_result` reply: the slides the agent added or changed, in report order. Slides it deleted aren't listed. Pass them as `slideIds` to `getReportSlideImages` to check how they look, or to `getReportContent` to read them.","type":"array","items":{"type":"string"}},"versionBeforeId":{"description":"On a `result` or `partial_result` reply: the report's version saved just before the agent changed it. Restore it with `restoreReportVersion` to undo the reply, which also undoes any change made to the report since.","type":"string"},"proposal":{"description":"On a `settings_proposal` or `email_send_proposal` reply: what the proposal changes, or the email it sends, and where it stands. Absent on other replies.","anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["proposed","applying","applied","rejected","superseded","conflict","failed"],"description":"`proposed` while it waits for the user to decide. `applied` once approved and applied, `rejected` once rejected. `superseded` when a later proposal in the chat replaced it. `conflict` when the report changed after it was proposed, so approving it applied nothing, and `failed` when applying it failed."},"changes":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"parameters.create"},"after":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameters.update"},"before":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"after":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameters.delete"},"before":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameters.setDatasheetLinked"},"parameterName":{"type":"string"},"filterName":{"type":"string"},"datasheetName":{"type":"string"},"isLinked":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","parameterName","filterName","datasheetName","isLinked","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.create"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.update"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.select"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.reset"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"schedule.add"},"after":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"schedule.remove"},"before":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"schedule.modify"},"before":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"after":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.config.update"},"before":{"anyOf":[{"type":"object","properties":{"trigger":{"type":"string","enum":["all","none","scheduled"]},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"]},"sendAttachmentAsLink":{"type":"boolean"},"sender":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false},{"type":"null"}]}},"required":["trigger","sharingFormat","sendAttachmentAsLink","sender"],"additionalProperties":false},{"type":"null"}]},"after":{"type":"object","properties":{"trigger":{"type":"string","enum":["all","none","scheduled"]},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"]},"sendAttachmentAsLink":{"type":"boolean"},"sender":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false},{"type":"null"}]}},"required":["trigger","sharingFormat","sendAttachmentAsLink","sender"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.recipients.update"},"before":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"}},"required":["to","cc","bcc","replyTo","id","label"],"additionalProperties":false},"after":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"}},"required":["to","cc","bcc","replyTo","id","label"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.recipients.createGroup"},"after":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}}},"required":["to","cc","bcc","replyTo"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","after","warnings"],"additionalProperties":false}]},"description":"What approving it changes, as the approval card in the app shows it: one entry per change, with the setting before and after it. `warnings` point out what the user should know before approving, such as a schedule that never runs."}},"required":["status","changes"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","enum":["awaiting_confirmation","cancelled","superseded","queued","sending","sent","partially_sent","failed","unconfirmed"],"description":"`awaiting_confirmation` while it waits for the user to decide, `cancelled` once rejected, and `superseded` when a later proposal in the chat replaced it. Once approved: `queued` and `sending` until every email is handed to the email provider, then `sent`, `partially_sent` or `failed`. `unconfirmed` when Rollstack lost track of the send, so some emails may have gone out."},"recipients":{"type":"array","items":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"}},"required":["to","cc","bcc","replyTo","id","label"],"additionalProperties":false},"description":"Who receives the report: one email per group, each with its own addresses."},"sharingFormat":{"type":"string","enum":["pdf","ppt"],"description":"The file sent: the report's visible slides as a PDF (`pdf`) or PowerPoint file (`ppt`)."},"sendAttachmentAsLink":{"type":"boolean","description":"Whether the file is behind a download button in the email instead of attached."},"counts":{"anyOf":[{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"sent":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknown":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["total","sent","failed","unknown"],"additionalProperties":false},{"type":"null"}],"description":"How many emails were handed to the email provider, failed, or ended unknown. `null` until the send starts."}},"required":["status","recipients","sharingFormat","sendAttachmentAsLink","counts"],"additionalProperties":false}]}},"required":["id","status","type","content"],"additionalProperties":false},"description":"The slides agent's replies to this message, in order. The first one is listed, `running`, as soon as the message is sent. The agent can split a message that asks for several things into parts, each with its own reply; the message is finished only once every part is."}},"required":["chatId","messageId","status","appUrl","stage","createdAt","updatedAt","replies"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/messages":{"post":{"operationId":"sendReportMessage","summary":"Send message to slides agent","description":"Asks the slides agent to build or change a report, or to answer a question about it, as the app's chat does. Answers the message's id at once: follow it with getReportMessage. When the client can show one, a view shows the user the slides as the agent drafts them. Without chatId the message starts a new chat, which shows in the user's chat history in the app. With it, the message continues that chat and waits its turn while a reply is still generating. Several chats on a report can generate at once; an agent working on a part of the report another chat is editing works on something else or says so. For slides built from your own data, a connected dashboard, a warehouse table or a spreadsheet, upload the data with createDataset, find the dashboard or Salesforce report with searchDashboards, the Snowflake, Databricks or BigQuery table with searchTables or the spreadsheet with searchSpreadsheets, add any of them with addReportDatasheets and pass the datasheet ids as datasheetIds. For a brief, a report or notes to build from, upload it with createDocument and pass its id in documentIds. Only its editors may. At most 6 messages a minute per user. To write the slides yourself instead, start with getReportDesign.\n\nRequires the `slide_decks:run` scope.","tags":["Chat"],"x-scope":"slide_decks:run","security":[{"apiKey":[]},{"oauth2":["slide_decks:run"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"content":{"default":"","description":"Your message to the slides agent, as you would write it in the chat in the app: for example, slides to build or change, or a question about the report. On a report with no slides yet, the agent takes it as a request to build the report. A link to a picture in the message, such as a logo or a photo to place, is downloaded and given to the agent. Required unless you send `answers`; with them, it's sent after your answers as a note. At most 10,000 characters: send a longer text, such as a brief, as a document with `createDocument`.","examples":["Add a slide comparing revenue by region"],"type":"string","maxLength":10000},"chatId":{"description":"The chat to continue: the `chatId` returned for an earlier message. The agent reads the chat's earlier messages as context, and if it's still replying in that chat, your message waits its turn (`queued`). If omitted, the message starts a new chat, which shows in your chat history on the report in the app. Must be one of your own chats on this report.","examples":["0e4c2b7a-9d1f-4a3b-8c5e-6f7a8b9c0d1e"],"type":"string"},"slideIds":{"description":"The slides your message is about, as when you select slides in the app before writing in the chat. The agent knows you selected them and uses the datasheets on them for your request. Slide ids come from `getReportContent`. 1 to 100 slides of this report.","minItems":1,"maxItems":100,"type":"array","items":{"type":"string","examples":["f1e2d3c4-b5a6-4978-8a1b-2c3d4e5f6a7b"]}},"datasheetIds":{"description":"Datasheets of this report for the agent to work from, on top of those on the slides in `slideIds`, as when you pick data in the chat in the app. To have the agent build slides from data you just added, pass the ids `addReportDatasheets` returned; for data already on the report, take them from `listReportDatasheets`. 1 to 100 datasheets of this report.","minItems":1,"maxItems":100,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","examples":["d7b9a1c3-e5f7-4a9b-8c1d-3e5f7a9b1c2d"]}},"documentIds":{"description":"Documents for the agent to read, as when you attach documents in the chat in the app: the ids `createDocument` returned. The agent reads their text and looks at their pages, for example to build slides from a brief or to rebuild a report as slides. 1 to 5 documents your organization can read.","minItems":1,"maxItems":5,"type":"array","items":{"type":"string"}},"answers":{"description":"Your answers to the questions of a `clarification` reply, as when you pick options in the chat in the app: one entry per question you answer. Send them as the next message on the same chat, by passing its `chatId`. When a picked option offers a dashboard, table or spreadsheet, Rollstack adds it to the report as a datasheet before the agent goes on. To add a note, send it in `content` with the answers.","minItems":1,"type":"array","items":{"type":"object","properties":{"header":{"type":"string","description":"The `header` of the question you're answering, copied unchanged from the `clarification` reply's `questions`.","examples":["Chart type"]},"question":{"type":"string","description":"The question you're answering, copied unchanged from the `clarification` reply's `questions`. With `header`, it tells Rollstack which question your picks are for.","examples":["Which chart should show revenue by region?"]},"answers":{"minItems":1,"type":"array","items":{"type":"string","examples":["Bar chart"]},"description":"The `label` of each option picked: one for a question whose `multiSelect` is `false`, one or more when it's `true`."}},"required":["header","question","answers"]}}},"additionalProperties":false}}}},"responses":{"202":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"chatId":{"type":"string","description":"Identifies the chat the message is in, which also shows in your chat history on the report in the app. Pass it as `chatId` to `sendReportMessage` to continue the conversation, for example to answer a `clarification` reply."},"messageId":{"type":"string","description":"Identifies your message to the slides agent. Pass it as `messageId` to `getReportMessage` to follow its progress and read the agent's replies, or to `cancelReportMessage` to stop it."},"status":{"type":"string","enum":["queued","running","completed","failed","cancelled"],"description":"Where the message stands. `sendReportMessage` always returns `queued` or `running`.\n\n- `queued`: the agent is still replying to an earlier message of the same chat; this one starts once that reply is finished.\n- `running`: the slides agent is working on it. While other chats keep the agent busy on this report, it can first wait here for its turn.\n- `completed`: every reply is finished; `getReportMessage` lists them in `replies`.\n- `failed`: at least one of its replies failed.\n- `cancelled`: it was stopped while running, for example with `cancelReportMessage` or the stop button in the app. Cancelling a `queued` message removes it from the chat instead, so it is no longer found."},"appUrl":{"type":"string","format":"uri","description":"Link to the report in Rollstack, with this chat open, where you can follow the conversation and review the changes the agent made."}},"required":["chatId","messageId","status","appUrl"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/messages\/{messageId}\/replies\/{replyId}\/approve":{"post":{"operationId":"approveReportMessageProposal","summary":"Approve slides agent proposal","description":"Approves the proposal of a settings_proposal or email_send_proposal reply, as its Approve button in the app's chat does: Rollstack makes the change, or sends the email. Only approve what the user approved after seeing the reply's proposal. Answers the reply with the proposal's status: applied once the change is made, and queued for a send, which getReportMessage then follows through sending to sent, partially_sent, failed or unconfirmed, with its counts. Needs also slide_decks:email for an email change or send, and slide_decks:write for the rest. Approving a send answers 409 while the report is updating, such as after a filter change the same message asked for, and counts against the 5 email sends a minute, as sendReportEmail does. Only the user who sent the message may, while they can edit the report. A proposal already decided answers 409. From an AI client, approving a send only asks the user to confirm it in Rollstack: it answers `confirmation-required` and runs once they confirm.\n\nRequires the `slide_decks:run` scope.","tags":["Chat"],"x-scope":"slide_decks:run","security":[{"apiKey":[]},{"oauth2":["slide_decks:run"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"messageId","in":"path","required":true,"description":"The message to the slides agent: the `messageId` that `sendReportMessage` returned. Only the user who sent the message can read, cancel or decide its proposals, and only while they can edit the report.","schema":{"type":"string","description":"The message to the slides agent: the `messageId` that `sendReportMessage` returned. Only the user who sent the message can read, cancel or decide its proposals, and only while they can edit the report."}},{"name":"replyId","in":"path","required":true,"description":"The reply that makes the proposal: the `id` of a `settings_proposal` or `email_send_proposal` reply that `getReportMessage` lists for the message.","schema":{"type":"string","description":"The reply that makes the proposal: the `id` of a `settings_proposal` or `email_send_proposal` reply that `getReportMessage` lists for the message."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Identifies the reply. It stays the same from `running` until the reply is finished, so you can follow each reply across calls."},"status":{"type":"string","enum":["running","completed","failed","cancelled"],"description":"Where this reply stands. `running` while the agent works on it or it waits its turn; on a `datasheet_filters_proposal`, until Rollstack has applied the filters. `completed` once the reply is finished: `type` says what it is. `failed` when the agent couldn't finish it, never got to it because an earlier part failed or was stopped, or the filters couldn't be applied. `cancelled` when it was stopped, for example with `cancelReportMessage` or the stop button in the app."},"type":{"anyOf":[{"type":"string","enum":["result","partial_result","clarification","answer","settings_proposal","proposal_applied","email_send_proposal","datasheet_filters_proposal","report_proposal"]},{"type":"null"}],"description":"What the reply is, which tells you what to do next. `null` while the agent is still working on it, and when it failed or was stopped.\n\n- `result`: the agent changed the report, and the changes are already saved. `changedSlideIds` lists the slides it added or changed; `versionBeforeId` undoes them with `restoreReportVersion`, and they can also be reviewed or reverted in the app.\n- `partial_result`: the same as `result`, on replies written by an earlier version of the slides agent.\n- `clarification`: the agent needs more from you before it goes on. Answer its `questions`, or the question in `content` when there are none, in the next message on the same chat.\n- `answer`: the agent replied in `content` without changing the report, for example to a question about the report or about how Rollstack works.\n- `datasheet_filters_proposal`: the agent changes the values of filters that some of the report's datasheets apply when they read their source. For a message sent through the API, Rollstack applies them right away, without approval in the app. If your request needed more than that, it then goes on by itself as a new message in the same chat, unless you send one there first; that message isn't in these `replies`, so follow it in the app.\n- `settings_proposal`, `email_send_proposal`: a change to the report's update schedules, email settings, email template or parameters, or sending the report by email. Nothing changes until it is approved: show the user what `proposal` changes, then approve it with `approveReportMessageProposal` or reject it with `rejectReportMessageProposal`, as they decide. It can also be decided in the app. The agent makes one for a message sent through the API only when your API key has the scope the change needs.\n- `report_proposal`: a change elsewhere in Rollstack, such as to reports, folders or members. The agent doesn't make them for messages sent through the API.\n- `proposal_applied`: a note the chat in the app adds once a proposal is decided. It is never listed in `replies`."},"content":{"type":"string","description":"The reply's text, as the chat in the app shows it: what the agent did, its answer, or its questions. Empty until the agent has written it. When the reply failed or was stopped, it says so. Can contain Markdown."},"questions":{"description":"On a `clarification` reply: the multiple-choice questions the agent needs answered before it goes on. Send the options picked as `answers` in the next message on the same chat, or answer in your own words in `content`. Absent on other replies, and on a clarification that asks its question only in `content`.","type":"array","items":{"type":"object","properties":{"question":{"type":"string","description":"The question the agent is asking, as the chat in the app shows it."},"header":{"type":"string","description":"A short label for the question, such as `Chart type`, shown before it in the app. Send it back unchanged, with `question`, when you answer."},"multiSelect":{"type":"boolean","description":"Whether more than one option can be picked. When `true`, the app shows the options as checkboxes; when `false`, as a single choice, so answer with one option."},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","description":"The option's text, as shown in the app. Send it back in `answers` to pick this option. The agent may mark the option it recommends with `(Recommended)`, which you can keep or drop."},"description":{"description":"What picking this option means, shown under its label in the app.","type":"string"},"value":{"description":"Set when the option offers data the agent found: a connection for the agent to search next, or a dashboard, table or spreadsheet that Rollstack adds to the report as a datasheet when you pick the option. It isn't shown in the app, and you don't send it back: picking the option by its `label` in the next message on the same chat is enough.","type":"string"},"templateId":{"description":"Set when the option offers a saved template, by its `id` in `listTemplates`: the app shows the template's look. You don't send it back: picking the option by its `label` is enough.","type":"string"},"documentUse":{"description":"Set when the option says what an attached PowerPoint file is for. You don't send it back: picking the option by its `label` is enough.","type":"object","properties":{"documentId":{"type":"string"},"use":{"type":"string","enum":["layout","content","both","slides"]}},"required":["documentId","use"],"additionalProperties":false}},"required":["label"],"additionalProperties":false},"description":"The options to choose from. Answer with the `label` of each one picked."}},"required":["question","header","multiSelect","options"],"additionalProperties":false}},"changedSlideIds":{"description":"On a `result` or `partial_result` reply: the slides the agent added or changed, in report order. Slides it deleted aren't listed. Pass them as `slideIds` to `getReportSlideImages` to check how they look, or to `getReportContent` to read them.","type":"array","items":{"type":"string"}},"versionBeforeId":{"description":"On a `result` or `partial_result` reply: the report's version saved just before the agent changed it. Restore it with `restoreReportVersion` to undo the reply, which also undoes any change made to the report since.","type":"string"},"proposal":{"description":"On a `settings_proposal` or `email_send_proposal` reply: what the proposal changes, or the email it sends, and where it stands. Absent on other replies.","anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["proposed","applying","applied","rejected","superseded","conflict","failed"],"description":"`proposed` while it waits for the user to decide. `applied` once approved and applied, `rejected` once rejected. `superseded` when a later proposal in the chat replaced it. `conflict` when the report changed after it was proposed, so approving it applied nothing, and `failed` when applying it failed."},"changes":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"parameters.create"},"after":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameters.update"},"before":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"after":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameters.delete"},"before":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameters.setDatasheetLinked"},"parameterName":{"type":"string"},"filterName":{"type":"string"},"datasheetName":{"type":"string"},"isLinked":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","parameterName","filterName","datasheetName","isLinked","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.create"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.update"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.select"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.reset"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"schedule.add"},"after":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"schedule.remove"},"before":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"schedule.modify"},"before":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"after":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.config.update"},"before":{"anyOf":[{"type":"object","properties":{"trigger":{"type":"string","enum":["all","none","scheduled"]},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"]},"sendAttachmentAsLink":{"type":"boolean"},"sender":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false},{"type":"null"}]}},"required":["trigger","sharingFormat","sendAttachmentAsLink","sender"],"additionalProperties":false},{"type":"null"}]},"after":{"type":"object","properties":{"trigger":{"type":"string","enum":["all","none","scheduled"]},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"]},"sendAttachmentAsLink":{"type":"boolean"},"sender":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false},{"type":"null"}]}},"required":["trigger","sharingFormat","sendAttachmentAsLink","sender"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.recipients.update"},"before":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"}},"required":["to","cc","bcc","replyTo","id","label"],"additionalProperties":false},"after":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"}},"required":["to","cc","bcc","replyTo","id","label"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.recipients.createGroup"},"after":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}}},"required":["to","cc","bcc","replyTo"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","after","warnings"],"additionalProperties":false}]},"description":"What approving it changes, as the approval card in the app shows it: one entry per change, with the setting before and after it. `warnings` point out what the user should know before approving, such as a schedule that never runs."}},"required":["status","changes"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","enum":["awaiting_confirmation","cancelled","superseded","queued","sending","sent","partially_sent","failed","unconfirmed"],"description":"`awaiting_confirmation` while it waits for the user to decide, `cancelled` once rejected, and `superseded` when a later proposal in the chat replaced it. Once approved: `queued` and `sending` until every email is handed to the email provider, then `sent`, `partially_sent` or `failed`. `unconfirmed` when Rollstack lost track of the send, so some emails may have gone out."},"recipients":{"type":"array","items":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"}},"required":["to","cc","bcc","replyTo","id","label"],"additionalProperties":false},"description":"Who receives the report: one email per group, each with its own addresses."},"sharingFormat":{"type":"string","enum":["pdf","ppt"],"description":"The file sent: the report's visible slides as a PDF (`pdf`) or PowerPoint file (`ppt`)."},"sendAttachmentAsLink":{"type":"boolean","description":"Whether the file is behind a download button in the email instead of attached."},"counts":{"anyOf":[{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"sent":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknown":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["total","sent","failed","unknown"],"additionalProperties":false},{"type":"null"}],"description":"How many emails were handed to the email provider, failed, or ended unknown. `null` until the send starts."}},"required":["status","recipients","sharingFormat","sendAttachmentAsLink","counts"],"additionalProperties":false}]}},"required":["id","status","type","content"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/messages\/{messageId}\/cancel":{"post":{"operationId":"cancelReportMessage","summary":"Cancel slides agent message","description":"Stops a message to the slides agent: a queued one leaves the queue, and a running one stops. A finished one stays as it is. Only the user who sent it may.\n\nRequires the `slide_decks:run` scope.","tags":["Chat"],"x-scope":"slide_decks:run","security":[{"apiKey":[]},{"oauth2":["slide_decks:run"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"messageId","in":"path","required":true,"description":"The message to the slides agent: the `messageId` that `sendReportMessage` returned. Only the user who sent the message can read, cancel or decide its proposals, and only while they can edit the report.","schema":{"type":"string","description":"The message to the slides agent: the `messageId` that `sendReportMessage` returned. Only the user who sent the message can read, cancel or decide its proposals, and only while they can edit the report."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/messages\/{messageId}\/replies\/{replyId}\/reject":{"post":{"operationId":"rejectReportMessageProposal","summary":"Reject slides agent proposal","description":"Rejects the proposal of a settings_proposal or email_send_proposal reply, as its Reject button in the app's chat does: nothing changes. Answers the reply with the proposal's status, rejected for a change and cancelled for an email send. Only the user who sent the message may, while they can edit the report. A proposal already decided answers 409.\n\nRequires the `slide_decks:run` scope.","tags":["Chat"],"x-scope":"slide_decks:run","security":[{"apiKey":[]},{"oauth2":["slide_decks:run"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"messageId","in":"path","required":true,"description":"The message to the slides agent: the `messageId` that `sendReportMessage` returned. Only the user who sent the message can read, cancel or decide its proposals, and only while they can edit the report.","schema":{"type":"string","description":"The message to the slides agent: the `messageId` that `sendReportMessage` returned. Only the user who sent the message can read, cancel or decide its proposals, and only while they can edit the report."}},{"name":"replyId","in":"path","required":true,"description":"The reply that makes the proposal: the `id` of a `settings_proposal` or `email_send_proposal` reply that `getReportMessage` lists for the message.","schema":{"type":"string","description":"The reply that makes the proposal: the `id` of a `settings_proposal` or `email_send_proposal` reply that `getReportMessage` lists for the message."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Identifies the reply. It stays the same from `running` until the reply is finished, so you can follow each reply across calls."},"status":{"type":"string","enum":["running","completed","failed","cancelled"],"description":"Where this reply stands. `running` while the agent works on it or it waits its turn; on a `datasheet_filters_proposal`, until Rollstack has applied the filters. `completed` once the reply is finished: `type` says what it is. `failed` when the agent couldn't finish it, never got to it because an earlier part failed or was stopped, or the filters couldn't be applied. `cancelled` when it was stopped, for example with `cancelReportMessage` or the stop button in the app."},"type":{"anyOf":[{"type":"string","enum":["result","partial_result","clarification","answer","settings_proposal","proposal_applied","email_send_proposal","datasheet_filters_proposal","report_proposal"]},{"type":"null"}],"description":"What the reply is, which tells you what to do next. `null` while the agent is still working on it, and when it failed or was stopped.\n\n- `result`: the agent changed the report, and the changes are already saved. `changedSlideIds` lists the slides it added or changed; `versionBeforeId` undoes them with `restoreReportVersion`, and they can also be reviewed or reverted in the app.\n- `partial_result`: the same as `result`, on replies written by an earlier version of the slides agent.\n- `clarification`: the agent needs more from you before it goes on. Answer its `questions`, or the question in `content` when there are none, in the next message on the same chat.\n- `answer`: the agent replied in `content` without changing the report, for example to a question about the report or about how Rollstack works.\n- `datasheet_filters_proposal`: the agent changes the values of filters that some of the report's datasheets apply when they read their source. For a message sent through the API, Rollstack applies them right away, without approval in the app. If your request needed more than that, it then goes on by itself as a new message in the same chat, unless you send one there first; that message isn't in these `replies`, so follow it in the app.\n- `settings_proposal`, `email_send_proposal`: a change to the report's update schedules, email settings, email template or parameters, or sending the report by email. Nothing changes until it is approved: show the user what `proposal` changes, then approve it with `approveReportMessageProposal` or reject it with `rejectReportMessageProposal`, as they decide. It can also be decided in the app. The agent makes one for a message sent through the API only when your API key has the scope the change needs.\n- `report_proposal`: a change elsewhere in Rollstack, such as to reports, folders or members. The agent doesn't make them for messages sent through the API.\n- `proposal_applied`: a note the chat in the app adds once a proposal is decided. It is never listed in `replies`."},"content":{"type":"string","description":"The reply's text, as the chat in the app shows it: what the agent did, its answer, or its questions. Empty until the agent has written it. When the reply failed or was stopped, it says so. Can contain Markdown."},"questions":{"description":"On a `clarification` reply: the multiple-choice questions the agent needs answered before it goes on. Send the options picked as `answers` in the next message on the same chat, or answer in your own words in `content`. Absent on other replies, and on a clarification that asks its question only in `content`.","type":"array","items":{"type":"object","properties":{"question":{"type":"string","description":"The question the agent is asking, as the chat in the app shows it."},"header":{"type":"string","description":"A short label for the question, such as `Chart type`, shown before it in the app. Send it back unchanged, with `question`, when you answer."},"multiSelect":{"type":"boolean","description":"Whether more than one option can be picked. When `true`, the app shows the options as checkboxes; when `false`, as a single choice, so answer with one option."},"options":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string","description":"The option's text, as shown in the app. Send it back in `answers` to pick this option. The agent may mark the option it recommends with `(Recommended)`, which you can keep or drop."},"description":{"description":"What picking this option means, shown under its label in the app.","type":"string"},"value":{"description":"Set when the option offers data the agent found: a connection for the agent to search next, or a dashboard, table or spreadsheet that Rollstack adds to the report as a datasheet when you pick the option. It isn't shown in the app, and you don't send it back: picking the option by its `label` in the next message on the same chat is enough.","type":"string"},"templateId":{"description":"Set when the option offers a saved template, by its `id` in `listTemplates`: the app shows the template's look. You don't send it back: picking the option by its `label` is enough.","type":"string"},"documentUse":{"description":"Set when the option says what an attached PowerPoint file is for. You don't send it back: picking the option by its `label` is enough.","type":"object","properties":{"documentId":{"type":"string"},"use":{"type":"string","enum":["layout","content","both","slides"]}},"required":["documentId","use"],"additionalProperties":false}},"required":["label"],"additionalProperties":false},"description":"The options to choose from. Answer with the `label` of each one picked."}},"required":["question","header","multiSelect","options"],"additionalProperties":false}},"changedSlideIds":{"description":"On a `result` or `partial_result` reply: the slides the agent added or changed, in report order. Slides it deleted aren't listed. Pass them as `slideIds` to `getReportSlideImages` to check how they look, or to `getReportContent` to read them.","type":"array","items":{"type":"string"}},"versionBeforeId":{"description":"On a `result` or `partial_result` reply: the report's version saved just before the agent changed it. Restore it with `restoreReportVersion` to undo the reply, which also undoes any change made to the report since.","type":"string"},"proposal":{"description":"On a `settings_proposal` or `email_send_proposal` reply: what the proposal changes, or the email it sends, and where it stands. Absent on other replies.","anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["proposed","applying","applied","rejected","superseded","conflict","failed"],"description":"`proposed` while it waits for the user to decide. `applied` once approved and applied, `rejected` once rejected. `superseded` when a later proposal in the chat replaced it. `conflict` when the report changed after it was proposed, so approving it applied nothing, and `failed` when applying it failed."},"changes":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"parameters.create"},"after":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameters.update"},"before":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"after":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameters.delete"},"before":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"string"},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"dashboardName":{"type":"string"}},"required":["name","dashboardName"],"additionalProperties":false}},"datasheets":{"default":[],"type":"array","items":{"type":"string"}},"datasheetCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"unlinkedDatasheets":{"type":"array","items":{"type":"string"}},"columns":{"default":[],"type":"array","items":{"type":"object","properties":{"datasheetName":{"type":"string"},"column":{"type":"string"}},"required":["datasheetName","column"],"additionalProperties":false}}},"required":["name","value","filters","datasheets","datasheetCount","unlinkedDatasheets","columns"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameters.setDatasheetLinked"},"parameterName":{"type":"string"},"filterName":{"type":"string"},"datasheetName":{"type":"string"},"isLinked":{"type":"boolean"},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","parameterName","filterName","datasheetName","isLinked","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.create"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.update"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.select"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.template.reset"},"before":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"after":{"anyOf":[{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"subject":{"type":"string"},"content":{"type":"string"},"button":{"type":"object","properties":{"textColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"bgColor":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"}},"required":["textColor","bgColor"],"additionalProperties":false},"editable":{"type":"boolean"}},"required":["id","name","subject","content","button","editable"],"additionalProperties":false},{"type":"null"}]},"impact":{"anyOf":[{"type":"object","properties":{"consumers":{"type":"array","items":{"type":"string"}},"anonymousCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["consumers","anonymousCount"],"additionalProperties":false},{"type":"null"}]},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","impact","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"schedule.add"},"after":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"schedule.remove"},"before":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"schedule.modify"},"before":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"after":{"type":"object","properties":{"frequency":{"type":"string"},"recurrence":{"type":"string"},"timezone":{"type":"string"},"startDate":{"type":"string"},"endDate":{"anyOf":[{"type":"string"},{"type":"null"}]},"syncNames":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"nextRunAt":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["frequency","recurrence","timezone","startDate","endDate","syncNames","nextRunAt"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.config.update"},"before":{"anyOf":[{"type":"object","properties":{"trigger":{"type":"string","enum":["all","none","scheduled"]},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"]},"sendAttachmentAsLink":{"type":"boolean"},"sender":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false},{"type":"null"}]}},"required":["trigger","sharingFormat","sendAttachmentAsLink","sender"],"additionalProperties":false},{"type":"null"}]},"after":{"type":"object","properties":{"trigger":{"type":"string","enum":["all","none","scheduled"]},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"]},"sendAttachmentAsLink":{"type":"boolean"},"sender":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"}},"required":["id","label"],"additionalProperties":false},{"type":"null"}]}},"required":["trigger","sharingFormat","sendAttachmentAsLink","sender"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.recipients.update"},"before":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"}},"required":["to","cc","bcc","replyTo","id","label"],"additionalProperties":false},"after":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"}},"required":["to","cc","bcc","replyTo","id","label"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","before","after","warnings"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"email.recipients.createGroup"},"after":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}}},"required":["to","cc","bcc","replyTo"],"additionalProperties":false},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["duplicate-schedule","never-runs","distant-next-run","skips-short-months","scheduled-email-stops","scheduled-delivery-without-schedule","no-recipients","template-shared","template-sends-pending","overwrites-datasheet-values","datasheets-keep-last-value"]},"message":{"type":"string"}},"required":["code","message"],"additionalProperties":false}}},"required":["type","after","warnings"],"additionalProperties":false}]},"description":"What approving it changes, as the approval card in the app shows it: one entry per change, with the setting before and after it. `warnings` point out what the user should know before approving, such as a schedule that never runs."}},"required":["status","changes"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","enum":["awaiting_confirmation","cancelled","superseded","queued","sending","sent","partially_sent","failed","unconfirmed"],"description":"`awaiting_confirmation` while it waits for the user to decide, `cancelled` once rejected, and `superseded` when a later proposal in the chat replaced it. Once approved: `queued` and `sending` until every email is handed to the email provider, then `sent`, `partially_sent` or `failed`. `unconfirmed` when Rollstack lost track of the send, so some emails may have gone out."},"recipients":{"type":"array","items":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"}},"cc":{"type":"array","items":{"type":"string"}},"bcc":{"type":"array","items":{"type":"string"}},"replyTo":{"type":"array","items":{"type":"string"}},"id":{"type":"string"},"label":{"type":"string"}},"required":["to","cc","bcc","replyTo","id","label"],"additionalProperties":false},"description":"Who receives the report: one email per group, each with its own addresses."},"sharingFormat":{"type":"string","enum":["pdf","ppt"],"description":"The file sent: the report's visible slides as a PDF (`pdf`) or PowerPoint file (`ppt`)."},"sendAttachmentAsLink":{"type":"boolean","description":"Whether the file is behind a download button in the email instead of attached."},"counts":{"anyOf":[{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"sent":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991},"unknown":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["total","sent","failed","unknown"],"additionalProperties":false},{"type":"null"}],"description":"How many emails were handed to the email provider, failed, or ended unknown. `null` until the send starts."}},"required":["status","recipients","sharingFormat","sendAttachmentAsLink","counts"],"additionalProperties":false}]}},"required":["id","status","type","content"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/memories":{"get":{"operationId":"listMemories","summary":"List memories","description":"What the slides agent remembers of how the user likes their decks, as the app's Slides settings list it: each memory, the part of a deck it is about, and the report it holds for, if only one. Read them before adding one, so as not to repeat one.\n\nRequires the `slide_decks:read` scope.","tags":["Memories"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the memory. Pass it as `memoryId` to `updateMemory` or `deleteMemory`."},"text":{"type":"string","description":"What the slides agent remembers, such as `Our fiscal year starts in February`."},"category":{"type":"string","enum":["structure","titles","text","numbers","charts","design","workflow","metrics"],"description":"The part of a deck it is about, so each agent reads the ones it acts on. One you add is `text`."},"report":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The report's `id`."},"name":{"type":"string","description":"The report's name."}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"The report it holds for. `null` when it holds for all your reports."},"updatedAt":{"type":"string","description":"When it was last learned or changed, as an ISO 8601 date and time."}},"required":["id","text","category","report","updatedAt"],"additionalProperties":false},"description":"What the slides agent remembers of how you like your decks, newest first: what it learned in your chats and decks and what you added. They are yours alone, and the agent reads them while your organization has slide memories on and you have it remember your preferences, in the app."}},"required":["data"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createMemory","summary":"Add memory","description":"Has the slides agent remember something of how the user likes their decks, for all their reports or one of them, as adding a preference in the app's Slides settings does. Only add what the user asked to be remembered. Answers the memory.\n\nRequires the `slide_decks:write` scope.","tags":["Memories"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300,"description":"What the slides agent should remember, as one plain sentence, at most 300 characters.","examples":["Our fiscal year starts in February"]},"reportId":{"default":null,"description":"The report the memory holds for, by its `id` from `listReports`, which you must be able to edit. `null` for all your reports. Defaults to `null`.","anyOf":[{"type":"string"},{"type":"null"}]}},"required":["text"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Identifies the memory. Pass it as `memoryId` to `updateMemory` or `deleteMemory`."},"text":{"type":"string","description":"What the slides agent remembers, such as `Our fiscal year starts in February`."},"category":{"type":"string","enum":["structure","titles","text","numbers","charts","design","workflow","metrics"],"description":"The part of a deck it is about, so each agent reads the ones it acts on. One you add is `text`."},"report":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The report's `id`."},"name":{"type":"string","description":"The report's name."}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"The report it holds for. `null` when it holds for all your reports."},"updatedAt":{"type":"string","description":"When it was last learned or changed, as an ISO 8601 date and time."}},"required":["id","text","category","report","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/memories\/{memoryId}":{"patch":{"operationId":"updateMemory","summary":"Update memory","description":"Rewords a memory of the slides agent, or moves it to one report or all of them. What you send changes and the rest stays. Answers the memory.\n\nRequires the `slide_decks:write` scope.","tags":["Memories"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"memoryId","in":"path","required":true,"description":"The memory to act on, by its `id` from `listMemories`.","schema":{"type":"string","description":"The memory to act on, by its `id` from `listMemories`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":300,"description":"What the slides agent should remember, as one plain sentence, at most 300 characters.","examples":["Our fiscal year starts in February"]},"reportId":{"description":"The report the memory holds for, by its `id` from `listReports`, which you must be able to edit. `null` for all your reports. If omitted, it stays.","anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Identifies the memory. Pass it as `memoryId` to `updateMemory` or `deleteMemory`."},"text":{"type":"string","description":"What the slides agent remembers, such as `Our fiscal year starts in February`."},"category":{"type":"string","enum":["structure","titles","text","numbers","charts","design","workflow","metrics"],"description":"The part of a deck it is about, so each agent reads the ones it acts on. One you add is `text`."},"report":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The report's `id`."},"name":{"type":"string","description":"The report's name."}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"The report it holds for. `null` when it holds for all your reports."},"updatedAt":{"type":"string","description":"When it was last learned or changed, as an ISO 8601 date and time."}},"required":["id","text","category","report","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"deleteMemory","summary":"Forget memory","description":"Has the slides agent forget a memory: its runs stop reading it, as forgetting it in the app's Slides settings does.\n\nRequires the `slide_decks:write` scope.","tags":["Memories"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"memoryId","in":"path","required":true,"description":"The memory to act on, by its `id` from `listMemories`.","schema":{"type":"string","description":"The memory to act on, by its `id` from `listMemories`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/runs":{"get":{"operationId":"listReportRuns","summary":"List report runs","description":"The runs of a report of any type that ended, newest first, with how each ended, what started it and why it failed, for questions such as why last night's update failed. Answers up to limit runs, 20 by default and 200 at most, and a nextCursor: pass it as cursor for the next page, until it is null.\n\nRequires the `slide_decks:read` scope.","tags":["Runs"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"limit","in":"query","required":false,"description":"Maximum number of runs to return on this page, from 1 to 200. Defaults to `20`.","schema":{"default":20,"description":"Maximum number of runs to return on this page, from 1 to 200. Defaults to `20`.","type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","schema":{"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","examples":["6c1f9a2e-3b4d-4e8f-9a1b-2c3d4e5f6a7b"],"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the run in the history."},"status":{"type":"string","enum":["succeeded","partiallySucceeded","failed","cancelled","inactive","skipped"],"description":"How the run ended.\n\n- `succeeded`: it refreshed everything.\n- `partiallySucceeded`: it refreshed some of the report and failed the rest, which kept its previous data.\n- `failed`: nothing could be refreshed, or the run stopped on an error. `error` says why.\n- `cancelled`: it was stopped before it finished.\n- `skipped`: it had nothing to refresh, such as a report with no datasheets, or a variant no longer valid for its burst.\n- `inactive`: nothing it could refresh was active."},"trigger":{"type":"string","enum":["manual","scheduled","api","mcp","automatic"],"description":"What started the run.\n\n- `scheduled`: one of the report's schedules.\n- `manual`: someone, with the Update button.\n- `api` or `mcp`: `startReportRun` or `batchStartReportRuns`, through the public API or an MCP client.\n- `automatic`: an edit that refreshed only the slides it changed, such as a parameter change, an approved proposal, a duplicate or a new variant.\n\nA run of a burst's variant has its `burst` set and the trigger of whoever started the burst run."},"startedBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"email":{"type":"string","description":"The member's email address."}},"required":["id","name","email"],"additionalProperties":false},{"type":"null"}],"description":"The member whose run it was. `null` if their account was deleted."},"startedAt":{"description":"When the run started.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"finishedAt":{"description":"When the run ended.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run failed or stopped, as shown in the app. `null` when the run recorded no error."},"failedVisualizations":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"],"additionalProperties":false},"description":"On a report whose `type` isn't `SlideDeck`, up to 20 visualizations the run could not refresh, with the reason; they kept their previous data. Always empty on a `SlideDeck` report, whose runs don't record their datasheets: `listReportDatasheets` gives each datasheet's `error` from its latest update."},"updatedSlidesCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How many slides the run changed. `null` when the run did not count them."},"visualizationsCount":{"type":"number","description":"How many visualizations the run updated, on a report whose `type` isn't `SlideDeck`. `getRun` lists them."},"insightsCount":{"type":"number","description":"How many insights the run wrote. `getRun` lists them."},"updateMethod":{"type":"string","enum":["update","archive","updateVisualizations"],"description":"How the run updated the report's file, as the report's update method was when it ran."},"burst":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The burst's `id`, to pass to the `\/bursts\/{id}` endpoints."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The burst's name."}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"The burst the report is a variant of. `null` for a report that isn't one."},"variantFilters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The filter's name."},"value":{"type":"string","description":"The variant's value of it, as the app shows it."}},"required":["name","value"],"additionalProperties":false},"description":"On a burst's variant, the filter values it holds, as the Update runs page shows them. Empty otherwise."}},"required":["id","status","trigger","startedBy","startedAt","finishedAt","error","failedVisualizations","updatedSlidesCount","visualizationsCount","insightsCount","updateMethod","burst","variantFilters"],"additionalProperties":false},"description":"The report's runs that ended, newest first, whoever started them: in the app, through the API or on a schedule. A run still going isn't listed until it ends: `running` in `getReport` says whether one is, and `getReportRun` follows the one `startReportRun` started."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass it as `cursor` to get the next page of runs. `null` when there are no more."}},"required":["data","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"startReportRun","summary":"Start report run","description":"Refreshes a report's data, or only some of its datasheets, then repairs failed calculations and the slides with AI. On a report of another type than SlideDeck, such as a Google Slides presentation, refreshes every sync, or only the `syncIds` given, instead, as Update in the app does, updating its file when it has one (an Email report has none). A run of the whole report then emails it when its email trigger is `all`; a run of only some `syncIds` never does. Answers the run's id at once; while a run of the report is already going, from the API, the app or its schedule, it answers that run's id with started false and starts nothing. Pass repairSlides false to leave the slides as they are, when you wrote them yourself and will check and fix them. From an AI client, a run that emails the report only asks the user to confirm it in Rollstack: it answers `confirmation-required` and runs once they confirm.\n\nRequires the `slide_decks:run` scope.","tags":["Runs"],"x-scope":"slide_decks:run","security":[{"apiKey":[]},{"oauth2":["slide_decks:run"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","default":{},"type":"object","properties":{"datasheetIds":{"description":"The datasheets to update, from `listReportDatasheets`, instead of the whole report. Each must be a datasheet of this report. Unlike a run of the whole report, which reads every source again, a run of only some datasheets reuses the data last read from their sources: it reads a source again only if that data is missing or expired, or what the datasheet reads has changed, such as its source, its filters or the connection it reads with, as when you replace an uploaded file with `replaceDataset`. If omitted, the run updates the whole report. 1 to 500 ids. Only on reports whose `type` is `SlideDeck`: a report of another type has syncs instead, so passing it returns `400`.","minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","examples":["d7b9a1c3-e5f7-4a9b-8c1d-3e5f7a9b1c2d"]}},"syncIds":{"description":"The syncs to update, from `listReportSyncs`, instead of the whole report, such as the ones whose `status` is `failed`. Each must be a sync of this report. A `paused` sync is skipped, as in the app. A run of only some syncs never emails the report. If omitted, the run updates the whole report. 1 to 500 ids. Only on reports other than `SlideDeck`, which has datasheets instead, so passing it on a slide deck returns `400`.","minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"repairSlides":{"description":"Whether Rollstack repairs the slides with AI once the data is in: failed calculations, and text the new data made wrong. Pass `false` to read the data only, when you check and fix the slides yourself. If omitted, the slides are repaired. Only on reports whose `type` is `SlideDeck`.","type":"boolean"}},"additionalProperties":false}}}},"responses":{"202":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"runId":{"type":"string","description":"Identifies the run. Pass it as `runId` to `getReportRun` to follow the run until it ends, or to `cancelReportRun` to stop it."},"started":{"type":"boolean","description":"Whether this request started a new run. `false` when a run of the report was already in progress, whoever started it: through the API, in the app or on one of its schedules. In that case nothing new starts, `datasheetIds` and `syncIds` are ignored, and `runId` is that run's id. To run the report with your request, wait for that run to end with `getReportRun`, then call `startReportRun` again."}},"required":["runId","started"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/runs\/{runId}":{"get":{"operationId":"getReportRun","summary":"Get report run","description":"A run's status and the datasheets, or visualizations on a report of another type than SlideDeck, it could not refresh. Waits up to waitSeconds for the run to end and answers as soon as it does, so call it again while the status is running. A user's later run of the report reuses the id, so this describes the latest one.\n\nRequires the `slide_decks:read` scope.","tags":["Runs"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"runId","in":"path","required":true,"description":"The run, by the `runId` that `startReportRun` returned. Runs of a report started by the same member share one id, so it always refers to that member's latest run of the report.","schema":{"type":"string","description":"The run, by the `runId` that `startReportRun` returned. Runs of a report started by the same member share one id, so it always refers to that member's latest run of the report."}},{"name":"waitSeconds","in":"query","required":false,"description":"How long this call waits for the work to finish, in seconds: the message to the slides agent on `getReportMessage`, the run on `getReportRun`, the batch of variants being added on `getBurstVariantBatch`, the runs of a burst's variants on `getBurstRun`, the export on `getRunsExport`. It returns as soon as the work is done, or as things stand once the time is up, so call it again while `status` is still `queued` or `running`. `0` returns at once. Defaults to `20`; at most `30`.","schema":{"default":20,"description":"How long this call waits for the work to finish, in seconds: the message to the slides agent on `getReportMessage`, the run on `getReportRun`, the batch of variants being added on `getBurstVariantBatch`, the runs of a burst's variants on `getBurstRun`, the export on `getRunsExport`. It returns as soon as the work is done, or as things stand once the time is up, so call it again while `status` is still `queued` or `running`. `0` returns at once. Defaults to `20`; at most `30`.","type":"integer","minimum":0,"maximum":30}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"runId":{"type":"string","description":"Identifies the run, as returned by `startReportRun`."},"status":{"type":"string","enum":["running","completed","failed","cancelled","timed_out"],"description":"Where the run stands. It stays `running` until the run ends, then says how it ended.\n\n- `running`: the run is still updating the report. Call `getReportRun` again to keep waiting.\n- `completed`: the run finished. Datasheets, or visualizations on a report of another type than `SlideDeck`, it could not refresh, if any, keep their previous data and are listed in `errors`.\n- `failed`: nothing could be refreshed, or the run stopped on an error. `errors` lists the datasheets or visualizations it could not refresh.\n- `cancelled`: the run was stopped before it finished, for example with `cancelReportRun` or \"Cancel update\" in the app. Datasheets and visualizations it had already refreshed keep their new data.\n- `timed_out`: the run went past its time limit and was stopped."},"startedAt":{"description":"When the run started.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the run ended, whatever its outcome. `null` while it is `running`."},"errors":{"type":"array","items":{"type":"object","properties":{"datasheetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The datasheet that could not be refreshed, as `id` in `listReportDatasheets`. `null` on a report of another type than `SlideDeck`, whose runs refresh visualizations instead: `name` then names the visualization."},"name":{"type":"string","description":"The datasheet's or visualization's name, as shown in the app. The report's own name when a run of a report of another type than `SlideDeck` failed as a whole, with no visualization to blame."},"message":{"type":"string","description":"Why it could not be refreshed, for example an error reading its source or computing its data. Empty when no reason was recorded."}},"required":["datasheetId","name","message"],"additionalProperties":false},"description":"The datasheets, or visualizations on a report of another type than `SlideDeck`, the run could not refresh, each with the reason. While the run is `running`, those that have failed so far; on a `SlideDeck` report, once the run has `failed`, also those it had not finished. Empty when nothing failed. To run only these datasheets again, pass their ids as `datasheetIds` to `startReportRun`."},"slidesNotUpdated":{"default":[],"type":"array","items":{"type":"object","properties":{"slideId":{"type":"string","description":"The slide, as `id` in `getReportContent`."},"slideNumber":{"type":"number","description":"The slide's position in the deck, from 1."},"message":{"type":"string","description":"Why its text could not be rewritten."}},"required":["slideId","slideNumber","message"],"additionalProperties":false},"description":"On a `SlideDeck` report, the slides whose text the run could not rewrite for the new data, so it still describes the previous data. Their charts and tables updated, except those whose datasheet is in `errors`. Empty when every slide's text was reviewed. Run the report again to retry them."}},"required":["runId","status","startedAt","finishedAt","errors","slidesNotUpdated"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/syncs":{"get":{"operationId":"listReportSyncs","summary":"List report syncs","description":"The syncs of a report other than a SlideDeck, such as a Google Slides presentation or an email report: each chart, table or text it pulls from a source, with how it did the last time it updated and why it failed. Pass the failed ones' ids as `syncIds` to `startReportRun` to update only those. A SlideDeck report has datasheets instead and returns `400`.\n\nRequires the `slide_decks:read` scope.","tags":["Runs"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the sync. Pass it in `syncIds` to `startReportRun` to update only some syncs, or to `updateReportSchedules` for a schedule that updates only some."},"name":{"type":"string","description":"The sync's name, as shown in the report's Syncs tab in Rollstack."},"sourceType":{"type":"string","enum":["GoogleSheet","GoogleExcel","MicrosoftExcel","Tableau","Salesforce","Metabase","PowerBI","Looker","RollstackVariable","Lightdash","Omni","Sigma","Snowflake","Databricks","BigQuery","CsvUpload","XlsxUpload","ManualTable","Dbt"],"description":"Where the sync gets its data, such as `Tableau`, `Looker` or `GoogleSheets`."},"status":{"type":"string","enum":["active","draft","succeeded","partiallySucceeded","failed","inactive"],"description":"How the sync did the last time it updated: `succeeded`, `partiallySucceeded` or `failed`. `draft` for a sync that hasn't updated yet, `active` while it updates, and `inactive` when a check before the run stopped it, such as a source the owner can no longer reach."},"error":{"anyOf":[{"type":"object","properties":{"code":{"anyOf":[{"type":"string","enum":["tableau_view_not_found","dashboard_not_found","dashboard_tab_not_found","dashboard_not_ready","dashboard_has_errors","dashboard_invalid_layout","metabase_element_not_found","looker_element_not_found","element_not_found","google_slide_not_found","slide_not_found","file_not_found","sheet_not_found","sheet_hidden","range_not_found","duplicate_file_failed","merged_range_on_filter_range","insufficient_permissions","image_cropping_failed","visualization_not_found","visualization_not_ready","visualization_has_errors","visualization_empty","invalid_credentials","missing_credentials","instance_unavailable","column_not_found","empty_data","fetch_summary_data_error","fetch_visual_specification_error","incorrect_data_structure","missing_data","missing_formatted_value","malformed_data","viz_not_ready","worksheet_not_found","sync_not_found","file_update_failed","internal_server_error"]},{"type":"null"}],"description":"Why the sync failed, such as `dashboard_not_found`."},"details":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"More about the failure, as the app shows it."}},"required":["code","details"],"additionalProperties":false},{"type":"null"}],"description":"Why the last update failed or was stopped. `null` when the sync succeeded or never updated."},"slideIndex":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Where the sync is in the file, as the 0-based index of its slide or page. `null` when it has no fixed place, such as an email report."},"paused":{"type":"boolean","description":"Whether the sync is turned off, so runs skip it until it is turned on again in the app."},"lastSuccessfulUpdateAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the sync last updated successfully. `null` if it never has."}},"required":["id","name","sourceType","status","error","slideIndex","paused","lastSuccessfulUpdateAt"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/runs":{"get":{"operationId":"listRuns","summary":"List runs of all reports","description":"The runs that ended of every report the user can see, of any type, newest first, each with its report, for questions such as what failed overnight: pass status failed and since. Takes the filters of the app's Update runs page. Same fields as listReportRuns. Answers up to limit runs, 20 by default and 200 at most, and a nextCursor: pass it as cursor for the next page, until it is null.\n\nRequires the `slide_decks:read` scope.","tags":["Runs"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"limit","in":"query","required":false,"description":"Maximum number of runs to return on this page, from 1 to 200. Defaults to `20`.","schema":{"default":20,"description":"Maximum number of runs to return on this page, from 1 to 200. Defaults to `20`.","type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","schema":{"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","examples":["6c1f9a2e-3b4d-4e8f-9a1b-2c3d4e5f6a7b"],"type":"string"}},{"name":"status","in":"query","required":false,"description":"Only the runs that ended this way, such as `failed`, as `status` in the runs, or any of several ways: in a query, repeat it, as in `status=failed&status=partiallySucceeded`. If omitted, every run.","schema":{"description":"Only the runs that ended this way, such as `failed`, as `status` in the runs, or any of several ways: in a query, repeat it, as in `status=failed&status=partiallySucceeded`. If omitted, every run.","anyOf":[{"type":"string","enum":["succeeded","partiallySucceeded","failed","cancelled","inactive","skipped"]},{"minItems":1,"type":"array","items":{"type":"string","enum":["succeeded","partiallySucceeded","failed","cancelled","inactive","skipped"]}}]}},{"name":"since","in":"query","required":false,"description":"Only what happened at or after this time, as an ISO 8601 date and time in UTC, such as `2026-11-08T18:00:00Z`. If omitted, from the start.","schema":{"description":"Only what happened at or after this time, as an ISO 8601 date and time in UTC, such as `2026-11-08T18:00:00Z`. If omitted, from the start.","examples":["2026-11-08T18:00:00Z"],"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},{"name":"until","in":"query","required":false,"description":"Only the runs that started at or before this time, as an ISO 8601 date and time in UTC, such as `2026-11-09T06:00:00Z`. If omitted, up to now.","schema":{"description":"Only the runs that started at or before this time, as an ISO 8601 date and time in UTC, such as `2026-11-09T06:00:00Z`. If omitted, up to now.","examples":["2026-11-09T06:00:00Z"],"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},{"name":"startedById","in":"query","required":false,"description":"Only the runs this member started, by their `id` from `listMembers`, or yours from `GET \/me`.","schema":{"description":"Only the runs this member started, by their `id` from `listMembers`, or yours from `GET \/me`.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},{"name":"name","in":"query","required":false,"description":"Only the runs of reports or bursts whose name contains this text, ignoring case, as the Update runs page's search finds them.","schema":{"description":"Only the runs of reports or bursts whose name contains this text, ignoring case, as the Update runs page's search finds them.","examples":["weekly sales"],"type":"string","minLength":1}},{"name":"reportId","in":"query","required":false,"description":"Only the runs of this report, by its `id` from `listReports`.","schema":{"description":"Only the runs of this report, by its `id` from `listReports`.","type":"string"}},{"name":"burstId","in":"query","required":false,"description":"Only the runs of this burst's variants, by its `id` from `listBursts`.","schema":{"description":"Only the runs of this burst's variants, by its `id` from `listBursts`.","type":"string"}},{"name":"trigger","in":"query","required":false,"description":"Only the runs with this trigger, such as `scheduled` or `manual`, as `trigger` lists them. If omitted, all.","schema":{"description":"Only the runs with this trigger, such as `scheduled` or `manual`, as `trigger` lists them. If omitted, all.","type":"string","enum":["manual","scheduled","api","mcp","automatic"]}},{"name":"order","in":"query","required":false,"description":"`newest` lists the runs newest first, `oldest` oldest first, as the Update runs page sorts them. Defaults to `newest`.","schema":{"default":"newest","description":"`newest` lists the runs newest first, `oldest` oldest first, as the Update runs page sorts them. Defaults to `newest`.","type":"string","enum":["newest","oldest"]}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the run in the history."},"status":{"type":"string","enum":["succeeded","partiallySucceeded","failed","cancelled","inactive","skipped"],"description":"How the run ended.\n\n- `succeeded`: it refreshed everything.\n- `partiallySucceeded`: it refreshed some of the report and failed the rest, which kept its previous data.\n- `failed`: nothing could be refreshed, or the run stopped on an error. `error` says why.\n- `cancelled`: it was stopped before it finished.\n- `skipped`: it had nothing to refresh, such as a report with no datasheets, or a variant no longer valid for its burst.\n- `inactive`: nothing it could refresh was active."},"trigger":{"type":"string","enum":["manual","scheduled","api","mcp","automatic"],"description":"What started the run.\n\n- `scheduled`: one of the report's schedules.\n- `manual`: someone, with the Update button.\n- `api` or `mcp`: `startReportRun` or `batchStartReportRuns`, through the public API or an MCP client.\n- `automatic`: an edit that refreshed only the slides it changed, such as a parameter change, an approved proposal, a duplicate or a new variant.\n\nA run of a burst's variant has its `burst` set and the trigger of whoever started the burst run."},"startedBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"email":{"type":"string","description":"The member's email address."}},"required":["id","name","email"],"additionalProperties":false},{"type":"null"}],"description":"The member whose run it was. `null` if their account was deleted."},"startedAt":{"description":"When the run started.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"finishedAt":{"description":"When the run ended.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the run failed or stopped, as shown in the app. `null` when the run recorded no error."},"failedVisualizations":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"message":{"type":"string"}},"required":["name","message"],"additionalProperties":false},"description":"On a report whose `type` isn't `SlideDeck`, up to 20 visualizations the run could not refresh, with the reason; they kept their previous data. Always empty on a `SlideDeck` report, whose runs don't record their datasheets: `listReportDatasheets` gives each datasheet's `error` from its latest update."},"updatedSlidesCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How many slides the run changed. `null` when the run did not count them."},"visualizationsCount":{"type":"number","description":"How many visualizations the run updated, on a report whose `type` isn't `SlideDeck`. `getRun` lists them."},"insightsCount":{"type":"number","description":"How many insights the run wrote. `getRun` lists them."},"updateMethod":{"type":"string","enum":["update","archive","updateVisualizations"],"description":"How the run updated the report's file, as the report's update method was when it ran."},"burst":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The burst's `id`, to pass to the `\/bursts\/{id}` endpoints."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The burst's name."}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"The burst the report is a variant of. `null` for a report that isn't one."},"variantFilters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The filter's name."},"value":{"type":"string","description":"The variant's value of it, as the app shows it."}},"required":["name","value"],"additionalProperties":false},"description":"On a burst's variant, the filter values it holds, as the Update runs page shows them. Empty otherwise."},"report":{"type":"object","properties":{"id":{"type":"string","description":"The report's `id`, to pass to the `\/reports\/{id}` endpoints, such as `getReport`."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's name."},"deleted":{"type":"boolean","description":"Whether the report was deleted since. A deleted report's `id` no longer works on the `\/reports\/{id}` endpoints."}},"required":["id","name","deleted"],"additionalProperties":false,"description":"The report the run updated."}},"required":["id","status","trigger","startedBy","startedAt","finishedAt","error","failedVisualizations","updatedSlidesCount","visualizationsCount","insightsCount","updateMethod","burst","variantFilters","report"],"additionalProperties":false},"description":"The runs that ended of every report you can see, deleted ones included, of any type, newest first unless `order` is `oldest`, whoever started them. To find what failed overnight, pass `status` `failed` and `since`. A run still going isn't listed until it ends."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass it as `cursor` to get the next page of runs. `null` when there are no more."}},"required":["data","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/runs\/{id}":{"get":{"operationId":"getRun","summary":"Get run","description":"A run that ended, from listRuns or listReportRuns, with each visualization and insight it updated and how each did, as the run's details on the app's Update runs page show them. For questions such as which charts failed in last night's run and why. As in the app, you can see it when you started the run, or own or edit its report, the report's folder or its burst. Viewers of the report can too, unless it's a `SlideDeck` report outside a burst. Anyone else gets `403`. A run that doesn't exist, or whose report was deleted, answers `404`.\n\nRequires the `slide_decks:read` scope.","tags":["Runs"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The run, by its `id` from `listRuns` or `listReportRuns`.","schema":{"type":"string","description":"The run, by its `id` from `listRuns` or `listReportRuns`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Identifies the run in the history."},"status":{"type":"string","enum":["succeeded","partiallySucceeded","failed","cancelled","inactive","skipped"],"description":"How the run ended.\n\n- `succeeded`: it refreshed everything.\n- `partiallySucceeded`: it refreshed some of the report and failed the rest, which kept its previous data.\n- `failed`: nothing could be refreshed, or the run stopped on an error. `error` says why.\n- `cancelled`: it was stopped before it finished.\n- `skipped`: it had nothing to refresh, such as a report with no datasheets, or a variant no longer valid for its burst.\n- `inactive`: nothing it could refresh was active."},"trigger":{"type":"string","enum":["manual","scheduled","api","mcp","automatic"],"description":"What started the run.\n\n- `scheduled`: one of the report's schedules.\n- `manual`: someone, with the Update button.\n- `api` or `mcp`: `startReportRun` or `batchStartReportRuns`, through the public API or an MCP client.\n- `automatic`: an edit that refreshed only the slides it changed, such as a parameter change, an approved proposal, a duplicate or a new variant.\n\nA run of a burst's variant has its `burst` set and the trigger of whoever started the burst run."},"startedAt":{"description":"When the run started.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"finishedAt":{"description":"When the run ended.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updateMethod":{"type":"string","enum":["update","archive","updateVisualizations"],"description":"How the run updated the report's file, as the report's update method was when it ran."},"burst":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"The burst's `id`, to pass to the `\/bursts\/{id}` endpoints."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The burst's name."}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"The burst the report is a variant of. `null` for a report that isn't one."},"report":{"type":"object","properties":{"id":{"type":"string","description":"The report's `id`. It no longer works on the `\/reports\/{id}` endpoints once deleted."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's name, as it was at the run."},"type":{"anyOf":[{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"]},{"type":"null"}],"description":"The report's `type`, such as `GoogleSlides` or `SlideDeck`."}},"required":["id","name","type"],"additionalProperties":false},"visualizations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies this visualization in this run."},"visualizationId":{"type":"string","description":"The sync, as `id` in `listReportSyncs`, which stays the same from run to run."},"name":{"type":"string","description":"The visualization's name, as in the report's Syncs tab."},"sourceType":{"type":"string","enum":["GoogleSheet","GoogleExcel","MicrosoftExcel","Tableau","Salesforce","Metabase","PowerBI","Looker","RollstackVariable","Lightdash","Omni","Sigma","Snowflake","Databricks","BigQuery","CsvUpload","XlsxUpload","ManualTable","Dbt"],"description":"Where it gets its data, such as `Tableau` or `Looker`."},"updateType":{"type":"string","enum":["image","text","table","column_chart","bar_chart","pie_chart","line_chart","area_chart","combo_chart","waterfall_chart","spreadsheet_chart","score_card"],"description":"What it put in the report, such as a picture or a native chart."},"status":{"type":"string","enum":["succeeded","failed","cancelled","inactive"],"description":"How it ended: `succeeded`, `failed`, `cancelled` when the run stopped first, or `inactive` when it was off."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it failed, as the app shows it. `null` when it succeeded."},"errorDetails":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"More about the failure, when there is any."},"imageUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A picture of what it put in the report, when it took one."}},"required":["id","visualizationId","name","sourceType","updateType","status","error","errorDetails","imageUrl"],"additionalProperties":false},"description":"Each visualization the run updated, on a report whose `type` isn't `SlideDeck`, as the run's details on the Update runs page list them."},"insights":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies this insight in this run."},"insightId":{"type":"string","description":"The insight, which stays the same from run to run."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The insight's name."},"status":{"type":"string","enum":["succeeded","failed","cancelled","inactive"],"description":"How it ended: `succeeded`, `failed`, `cancelled` when the run stopped first, or `inactive` when it was off."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it failed. `null` when it succeeded."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The text the run wrote, without its formatting. `null` when it wrote none."}},"required":["id","insightId","name","status","error","text"],"additionalProperties":false},"description":"Each insight the run wrote, as the run's details on the Update runs page list them."}},"required":["id","status","trigger","startedAt","finishedAt","updateMethod","burst","report","visualizations","insights"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/runs\/exports\/{exportId}":{"get":{"operationId":"getRunsExport","summary":"Get runs export","description":"An export exportRuns started, with links to its files once it's done. Waits up to waitSeconds for it to finish and answers as soon as it does, so call it again while the status is running. Only your latest export can be read: once you start another, here or in the app, this one answers `404`.\n\nRequires the `slide_decks:read` scope. Only owners and admins of the organization may call it.","tags":["Runs"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"x-admin-only":true,"parameters":[{"name":"exportId","in":"path","required":true,"description":"The export, by the `exportId` `exportRuns` answered.","schema":{"type":"string","description":"The export, by the `exportId` `exportRuns` answered."}},{"name":"waitSeconds","in":"query","required":false,"description":"How long this call waits for the work to finish, in seconds: the message to the slides agent on `getReportMessage`, the run on `getReportRun`, the batch of variants being added on `getBurstVariantBatch`, the runs of a burst's variants on `getBurstRun`, the export on `getRunsExport`. It returns as soon as the work is done, or as things stand once the time is up, so call it again while `status` is still `queued` or `running`. `0` returns at once. Defaults to `20`; at most `30`.","schema":{"default":20,"description":"How long this call waits for the work to finish, in seconds: the message to the slides agent on `getReportMessage`, the run on `getReportRun`, the batch of variants being added on `getBurstVariantBatch`, the runs of a burst's variants on `getBurstRun`, the export on `getRunsExport`. It returns as soon as the work is done, or as things stand once the time is up, so call it again while `status` is still `queued` or `running`. `0` returns at once. Defaults to `20`; at most `30`.","type":"integer","minimum":0,"maximum":30}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"exportId":{"type":"string","description":"Identifies the export. Pass it to `getRunsExport` to get its files once it's done. Only your latest export can be read: starting another, here or in the app, replaces it."},"status":{"type":"string","enum":["running","completed","failed","cancelled"],"description":"Where the export stands: `running` until its files are ready, then `completed`, or `failed`, or `cancelled` when it was cancelled with `cancelRunsExport` or in the app."},"files":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The file name, such as `report-runs.csv` or `historical-runs.zip`."},"url":{"type":"string","description":"A link to download the file, valid for 1 hour. Call `getRunsExport` again for new links."}},"required":["name","url"],"additionalProperties":false},"description":"The exported files once `status` is `completed`, empty until then."}},"required":["exportId","status","files"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/runs\/exports":{"post":{"operationId":"exportRuns","summary":"Export runs","description":"Exports the runs of every report in the organization to CSV files, as Export on the app's Update runs page does, with the same filters, columns and defaults: the runs, and optionally each visualization and insight they updated. Answers the export's id at once: call getRunsExport with it until its status is completed, then download its files. One export runs at a time per user, so starting one while another is running answers `409`.\n\nRequires the `slide_decks:read` scope. Only owners and admins of the organization may call it.","tags":["Runs"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"x-admin-only":true,"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"status":{"description":"Only the runs that ended this way, such as `failed`, as `status` in the runs, or any of several ways: in a query, repeat it, as in `status=failed&status=partiallySucceeded`. If omitted, every run.","anyOf":[{"type":"string","enum":["succeeded","partiallySucceeded","failed","cancelled","inactive","skipped"]},{"minItems":1,"type":"array","items":{"type":"string","enum":["succeeded","partiallySucceeded","failed","cancelled","inactive","skipped"]}}]},"since":{"description":"Only what happened at or after this time, as an ISO 8601 date and time in UTC, such as `2026-11-08T18:00:00Z`. If omitted, from the start.","examples":["2026-11-08T18:00:00Z"],"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"until":{"description":"Only the runs that started at or before this time, as an ISO 8601 date and time in UTC, such as `2026-11-09T06:00:00Z`. If omitted, up to now.","examples":["2026-11-09T06:00:00Z"],"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"startedById":{"description":"Only the runs this member started, by their `id` from `listMembers`, or yours from `GET \/me`.","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"description":"Only the runs of reports or bursts whose name contains this text, ignoring case, as the Update runs page's search finds them.","examples":["weekly sales"],"type":"string","minLength":1},"reportId":{"description":"Only the runs of this report, by its `id` from `listReports`.","type":"string"},"burstId":{"description":"Only the runs of this burst's variants, by its `id` from `listBursts`.","type":"string"},"datasets":{"description":"What to export, each as a CSV file: `reports` one row per run, in `report-runs.csv`; `visualizations` one row per visualization each run updated, in `visualizations.csv`; `insights` one row per insight each run wrote, in `insights.csv`. Several files come zipped together in `historical-runs.zip`, unless they add up to more than 1 GB. Defaults to `[\"reports\"]`, as in the app. Visualizations can make an export much slower.","minItems":1,"type":"array","items":{"type":"string","enum":["reports","visualizations","insights"]}},"columns":{"description":"The columns of `report-runs.csv`, which keeps its own order of them. Defaults to the ones the app selects: `updateRunId`, `userName`, `userEmail`, `destinationName`, `collectionName`, `visualizationsCount`, `insightsCount`, `totalSyncsCount`, `startedAt`, `finishedAt`, `updateTrigger`, `updateMethod`, `status`, `error`. The `email` columns hold the email the run sent, and `variantFilters` the filter values of a burst's variant.","minItems":1,"type":"array","items":{"type":"string","enum":["updateRunId","userName","userEmail","destinationName","collectionName","visualizationsCount","insightsCount","totalSyncsCount","startedAt","finishedAt","updateTrigger","updateMethod","status","error","emailId","emailTo","emailCc","emailBcc","emailReplyTo","variantFilters"]}},"syncColumns":{"description":"The columns of `visualizations.csv`, which keeps its own order of them. Defaults to the ones the app selects: `update_run_id`, `report_name`, `collection_name`, `report_status`, `visualization_name`, `source_type`, `update_type`, `status`, `details`, `error`, `started_at`, `completed_at`, `source_name`, `source_url`, `source_id`, `element_id`, `element_name`, `applied_filters`.","minItems":1,"type":"array","items":{"type":"string","enum":["update_run_id","report_name","collection_name","report_status","historical_sync_id","visualization_id","visualization_name","source_type","update_type","slide_id","status","details","error","started_at","completed_at","source_name","source_url","source_id","element_id","element_name","source_location","applied_filters"]}},"syncStatuses":{"description":"Only the visualizations that ended this way, in `visualizations.csv`. If omitted, all of them.","type":"array","items":{"type":"string","enum":["succeeded","failed","cancelled","inactive"]}},"insightStatuses":{"description":"Only the insights that ended this way, in `insights.csv`. If omitted, all of them.","type":"array","items":{"type":"string","enum":["succeeded","failed","cancelled","inactive"]}}},"additionalProperties":false}}}},"responses":{"202":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"exportId":{"type":"string","description":"Identifies the export. Pass it to `getRunsExport` to get its files once it's done. Only your latest export can be read: starting another, here or in the app, replaces it."}},"required":["exportId"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/batch-run":{"post":{"operationId":"batchStartReportRuns","summary":"Start report runs in a batch","description":"Starts a run of each of up to 50 reports of any type, as startReportRun does for one: each run updates its whole report, and a run of a report of another type than SlideDeck emails it when its email trigger is `all`. To update only some datasheets or syncs of a report, call startReportRun. Answers one result per report, each naming its id, with its run's id at once: follow each run with getReportRun. A report already running answers that run with started false, and a report you can't run fails on its own while the others still start. From an AI client, a batch of runs that emails any of the reports only asks the user to confirm it in Rollstack: it answers `confirmation-required` and runs once they confirm.\n\nRequires the `slide_decks:run` scope.","tags":["Runs"],"x-scope":"slide_decks:run","security":[{"apiKey":[]},{"oauth2":["slide_decks:run"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"ids":{"description":"The reports to act on, of any `type`, by their `id` from `listReports`. From 1 to 50 ids; an id listed twice is acted on once.","minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}},"repairSlides":{"description":"Whether Rollstack repairs the slides with AI once the data is in: failed calculations, and text the new data made wrong. Pass `false` to read the data only, when you check and fix the slides yourself. If omitted, the slides are repaired. Only on reports whose `type` is `SlideDeck`.","type":"boolean"}},"required":["ids"],"additionalProperties":false}}}},"responses":{"202":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"results":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"The report, by its `id` from `ids`."},"status":{"type":"string","const":"done","description":"The call succeeded on this report."},"result":{"type":"object","properties":{"runId":{"type":"string","description":"Identifies the run. Pass it as `runId` to `getReportRun` to follow the run until it ends, or to `cancelReportRun` to stop it."},"started":{"type":"boolean","description":"Whether this request started a new run. `false` when a run of the report was already in progress, whoever started it: through the API, in the app or on one of its schedules. In that case nothing new starts, `datasheetIds` and `syncIds` are ignored, and `runId` is that run's id. To run the report with your request, wait for that run to end with `getReportRun`, then call `startReportRun` again."}},"required":["runId","started"],"additionalProperties":false,"description":"The report's run, as `startReportRun` answers it."}},"required":["id","status","result"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"The report, by its `id` from `ids`."},"status":{"type":"string","const":"failed","description":"The call failed on this report and changed nothing on it. The other reports are unaffected."},"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable, machine-readable code for the error, such as `api-key-missing-scope` or `data-validation-error`. Use it, rather than `message`, to handle specific errors in your code."},"message":{"type":"string","description":"A human-readable explanation of what went wrong, to log or show to people. When the request's path parameters, query or body are invalid (`data-validation-error`), it lists each invalid field by its path, with the problem, such as `body.emails.0: Invalid email address`."},"statusCode":{"type":"number","description":"The HTTP status the same call on this report alone would answer, such as `404` or `403`."}},"required":["code","message","statusCode"],"additionalProperties":false,"description":"Why this report failed, as the endpoint for one report would answer. Retry only these reports."}},"required":["id","status","error"],"additionalProperties":false}]},"description":"One result per report, each naming its `id`."}},"required":["results"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/runs\/{runId}\/cancel":{"post":{"operationId":"cancelReportRun","summary":"Cancel report run","description":"Cancels a run of a report, whoever started it. Only its editors may. A run that already ended stays as it is.\n\nRequires the `slide_decks:run` scope.","tags":["Runs"],"x-scope":"slide_decks:run","security":[{"apiKey":[]},{"oauth2":["slide_decks:run"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"runId","in":"path","required":true,"description":"The run, by the `runId` that `startReportRun` returned. Runs of a report started by the same member share one id, so it always refers to that member's latest run of the report.","schema":{"type":"string","description":"The run, by the `runId` that `startReportRun` returned. Runs of a report started by the same member share one id, so it always refers to that member's latest run of the report."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/runs\/exports\/{exportId}\/cancel":{"post":{"operationId":"cancelRunsExport","summary":"Cancel runs export","description":"Cancels an export exportRuns started, as Cancel on the app's Update runs page does. getRunsExport then answers cancelled once it stops. An export that already ended stays as it is. Only your latest export can be cancelled: once you start another, this one answers `404`.\n\nRequires the `slide_decks:read` scope. Only owners and admins of the organization may call it.","tags":["Runs"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"x-admin-only":true,"parameters":[{"name":"exportId","in":"path","required":true,"description":"The export, by the `exportId` `exportRuns` answered.","schema":{"type":"string","description":"The export, by the `exportId` `exportRuns` answered."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/cloud-export":{"get":{"operationId":"getReportCloudExport","summary":"Get cloud save","description":"Where a report is saved after its runs, in Google Drive, OneDrive or SharePoint, and how its last save went, with a link to the saved file. Answers 404 until it is set up with updateReportCloudExport or in the app's scheduling panel.\n\nRequires the `slide_decks:read` scope.","tags":["Exports"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"provider":{"type":"string","enum":["google","microsoft"],"description":"Where the report is saved: `google` saves it to Google Drive as a Google Slides presentation, with its charts as linked Google Sheets charts, and `microsoft` saves it to OneDrive or SharePoint as a PowerPoint file with native charts."},"folder":{"type":"object","properties":{"id":{"type":"string","description":"The folder's id in Google Drive, OneDrive or SharePoint."},"name":{"type":"string","description":"The folder's name."}},"required":["id","name"],"additionalProperties":false,"description":"The folder the report is saved in."},"fileName":{"type":"string","description":"The saved file's name."},"trigger":{"type":"string","enum":["all","scheduled","none"],"description":"Which runs save it: `all` after every run that doesn't fail, `scheduled` only after the report's scheduled runs, and `none` never, which stops saving it and keeps the setting."},"updateMethod":{"type":"string","enum":["update","archive","updateVisualizations"],"description":"`update` replaces the saved file with the new version. `archive` first copies the saved file, named with the date of its last save in `datestampSuffix`, then replaces it."},"datestampSuffix":{"type":"string","description":"How `archive` dates the copies it keeps, as a moment.js format such as `MM\/DD\/YYYY` or `YYYY-MM-DD`."},"ignoreFailuresOnArchive":{"type":"boolean","description":"With `archive`, whether a copy that fails still lets the save go on."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link to the saved file, which its sharing in Google Drive, OneDrive or SharePoint lets people open. `null` until it is first saved."},"runsAsUserId":{"type":"number","description":"The member whose Google or Microsoft account saves it, as `id` in `listMembers`: the one who last chose its folder."},"lastStatus":{"anyOf":[{"type":"string","enum":["success","failed"]},{"type":"null"}],"description":"Whether the last save worked. `null` until it is first saved. A failed one emails the member it runs as."},"lastStatusMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last save failed. `null` when it worked."},"lastExportedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report was last saved. `null` until it is first saved."}},"required":["provider","folder","fileName","trigger","updateMethod","datestampSuffix","ignoreFailuresOnArchive","fileUrl","runsAsUserId","lastStatus","lastStatusMessage","lastExportedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"put":{"operationId":"updateReportCloudExport","summary":"Set cloud save","description":"Saves a report to a Google Drive, OneDrive or SharePoint folder after its runs, as the app's scheduling panel does, replacing the setting it had. Each save replaces the same file, or archives a dated copy first with `archive`. The folder is opened with the user's own Google or Microsoft account, which saves the report from then on. To save it now, start a run with startReportRun: a run that doesn't fail then tries to save it when `trigger` is `all`, and getReportCloudExport tells whether the save worked, since a failed save doesn't fail the run. Set `trigger` to `none` to stop saving it. Only its editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Exports"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"provider":{"type":"string","enum":["google","microsoft"],"description":"Where the report is saved: `google` saves it to Google Drive as a Google Slides presentation, with its charts as linked Google Sheets charts, and `microsoft` saves it to OneDrive or SharePoint as a PowerPoint file with native charts."},"folderUrl":{"type":"string","minLength":1,"description":"The folder to save the report in, by its link: a Google Drive folder's link (or its id) with `google`, or a OneDrive or SharePoint folder's link with `microsoft`. It's opened with your own Google or Microsoft account connected to Rollstack, which then saves the report, so you must be able to add files to it.","examples":["https:\/\/drive.google.com\/drive\/folders\/1AbCdEfGh"]},"fileName":{"description":"The saved file's name. If omitted, the report's name.","type":"string","minLength":1,"maxLength":255},"trigger":{"type":"string","enum":["all","scheduled","none"],"description":"Which runs save it: `all` after every run that doesn't fail, `scheduled` only after the report's scheduled runs, and `none` never, which stops saving it and keeps the setting."},"updateMethod":{"default":"update","description":"`update` replaces the saved file with the new version. `archive` first copies the saved file, named with the date of its last save in `datestampSuffix`, then replaces it. Defaults to `update`.","type":"string","enum":["update","archive"]},"datestampSuffix":{"default":"MM\/DD\/YYYY","description":"How `archive` dates the copies it keeps, as a moment.js format such as `MM\/DD\/YYYY` or `YYYY-MM-DD`. Defaults to `MM\/DD\/YYYY`.","type":"string","minLength":1},"ignoreFailuresOnArchive":{"default":false,"description":"With `archive`, whether a copy that fails still lets the save go on. Defaults to `false`.","type":"boolean"}},"required":["provider","folderUrl","trigger"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"provider":{"type":"string","enum":["google","microsoft"],"description":"Where the report is saved: `google` saves it to Google Drive as a Google Slides presentation, with its charts as linked Google Sheets charts, and `microsoft` saves it to OneDrive or SharePoint as a PowerPoint file with native charts."},"folder":{"type":"object","properties":{"id":{"type":"string","description":"The folder's id in Google Drive, OneDrive or SharePoint."},"name":{"type":"string","description":"The folder's name."}},"required":["id","name"],"additionalProperties":false,"description":"The folder the report is saved in."},"fileName":{"type":"string","description":"The saved file's name."},"trigger":{"type":"string","enum":["all","scheduled","none"],"description":"Which runs save it: `all` after every run that doesn't fail, `scheduled` only after the report's scheduled runs, and `none` never, which stops saving it and keeps the setting."},"updateMethod":{"type":"string","enum":["update","archive","updateVisualizations"],"description":"`update` replaces the saved file with the new version. `archive` first copies the saved file, named with the date of its last save in `datestampSuffix`, then replaces it."},"datestampSuffix":{"type":"string","description":"How `archive` dates the copies it keeps, as a moment.js format such as `MM\/DD\/YYYY` or `YYYY-MM-DD`."},"ignoreFailuresOnArchive":{"type":"boolean","description":"With `archive`, whether a copy that fails still lets the save go on."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A link to the saved file, which its sharing in Google Drive, OneDrive or SharePoint lets people open. `null` until it is first saved."},"runsAsUserId":{"type":"number","description":"The member whose Google or Microsoft account saves it, as `id` in `listMembers`: the one who last chose its folder."},"lastStatus":{"anyOf":[{"type":"string","enum":["success","failed"]},{"type":"null"}],"description":"Whether the last save worked. `null` until it is first saved. A failed one emails the member it runs as."},"lastStatusMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the last save failed. `null` when it worked."},"lastExportedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report was last saved. `null` until it is first saved."}},"required":["provider","folder","fileName","trigger","updateMethod","datestampSuffix","ignoreFailuresOnArchive","fileUrl","runsAsUserId","lastStatus","lastStatusMessage","lastExportedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/exports":{"post":{"operationId":"exportReport","summary":"Export report","description":"Exports a report as PDF or PowerPoint and answers a download link valid for 15 minutes. At most 10 exports a minute per user.\n\nRequires the `slide_decks:read` scope.","tags":["Exports"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"format":{"type":"string","enum":["pdf","pptx"],"description":"The kind of file to create. `pdf` is a PDF of the report's visible slides; hidden slides are left out. `pptx` is a PowerPoint file in which hidden slides are included but stay hidden, speaker notes are kept, and charts are images rather than editable charts."},"slideIds":{"description":"The slides to export, from `getReportContent` or a reply's `changedSlideIds`. The file keeps the report's slide order whatever order you list them in. Ids that are not slides of the report are ignored, and so are hidden slides in a PDF. If omitted, the whole report is exported.","minItems":1,"type":"array","items":{"type":"string","examples":["f1e2d3c4-b5a6-4978-8a1b-2c3d4e5f6a7b"]}}},"required":["format"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"url":{"type":"string","description":"A link that downloads the exported file, named after the report. Anyone who has the link can download the file, without an API key, until `expiresAt`."},"expiresAt":{"description":"When `url` stops working, 15 minutes after the export. Export the report again to get a new link.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["url","expiresAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/content":{"get":{"operationId":"getReportContent","summary":"Get report content","description":"What a viewer sees on a report's visible slides: titles, text, and each chart's and table's values, with a burst slide's variants after it. On a long report, pass slideIds for only the slides you need, such as a reply's changedSlideIds.\n\nRequires the `slide_decks:read` scope.","tags":["Content"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"slideIds","in":"query","required":false,"description":"The slides to return, from a reply's `changedSlideIds` or an earlier `getReportContent` call. If omitted, every visible slide is returned. Hidden slides and ids that are not slides of the report are ignored. Up to 20 ids: repeat the parameter for each one, as in `?slideIds=a&slideIds=b`.","schema":{"description":"The slides to return, from a reply's `changedSlideIds` or an earlier `getReportContent` call. If omitted, every visible slide is returned. Hidden slides and ids that are not slides of the report are ignored. Up to 20 ids: repeat the parameter for each one, as in `?slideIds=a&slideIds=b`.","anyOf":[{"type":"string"},{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string"}}],"examples":["f1e2d3c4-b5a6-4978-8a1b-2c3d4e5f6a7b"]}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"slides":{"type":"array","items":{"type":"object","properties":{"index":{"type":"number","description":"The slide's position in the report as viewers see it, counting only visible slides and starting at `0`. It stays the same when `slideIds` narrows the list."},"id":{"type":"string","description":"Identifies the slide. Pass it in `slideIds` to `getReportSlideImages` or `exportReport`, or to `sendReportMessage` to tell the slides agent which slides your message is about."},"burst":{"description":"Set on each variant of a burst slide, the slide itself first: the variants follow the slide, as viewers see them.","type":"object","properties":{"slideId":{"type":"string","description":"The burst slide this is a variant of. Pass it to `updateReportSlideBurst`."},"value":{"type":"string","description":"The variant's value of the report parameter the slide is burst by."},"reading":{"description":"Set while the variant reads its data for the first time: its charts and tables are empty until then.","type":"boolean","const":true}},"required":["slideId","value"],"additionalProperties":false},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The slide's title: the text in its title box. `null` when the slide has no title box, or the box is empty."},"texts":{"type":"array","items":{"type":"string"},"description":"The text of each text box and shape on the slide, title included. Text from the slide's master and layout is left out, and so are empty boxes."},"charts":{"type":"array","items":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The chart title shown on the slide. `null` when the chart has no title, and always for a map or a table."},"type":{"type":"string","description":"What kind of chart it is: `bar`, `line` or `pie`. A chart that combines kinds, such as bars with a line, takes the kind of its first series, and a chart with no series is `chart`. A map is `filled_map`, which colours places by a value, or `scatter_map`, which puts a dot at each latitude and longitude, or at each city its rows name. Always `table` for a table."},"region":{"description":"What a map is drawn on: world (countries by name or ISO code), us_states (US states by name or two-letter code), us_metro_areas (US metropolitan and micropolitan areas by Census name, with or without its state or \"Metro Area\" (\"Atlanta-Sandy Springs-Roswell, GA\"), by main city and state (\"Atlanta, GA\"), or by CBSA code (12060); a name several metros share without their state, such as Springfield, and Puerto Rico's metros stay blank), us_dmas (US DMAs, Nielsen's TV markets, by name, with or without its states and what it adds in brackets (\"Boston, MA (Manchester, NH)\", \"Boston, MA\", \"Boston\"), or by DMA code (506); a name several DMAs can be meant by without their state, such as Columbus or Albany, and the DMAs of Alaska and Hawaii stay blank), us_counties (US counties and their equivalents, such as parishes, boroughs and independent cities, with their state (\"Harris County, TX\", \"Harris County, Texas\", \"Harris, TX\") or by 5-digit FIPS code (48201); a county name without its state is placed only by the column of states named in within, else the map can't be drawn), states (the states, provinces or regions of one or more countries, by name, local name or ISO 3166-2 code, with frame naming the countries; a name several countries have goes to the country most rows are in), country:<ISO3> (filled maps only: a country's states, provinces or regions by name, local name or ISO 3166-2 code such as DE-BY, as country:DEU for Germany's states; country:FRA:regions, country:ITA:regions, country:PHL:regions, country:ESP:regions, and country:GBR:nations draw larger regions). Only on maps.","type":"string"},"values":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"},"description":"The column headers: for a chart, the names of the data columns it draws; for a table, the text of its first row. A filled map's are its place and value columns, and a scatter map's its latitude and longitude, `Latitude` and `Longitude` for dots at cities, then its value columns and the column naming each dot when it has one."},"rows":{"type":"array","items":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}]}},"description":"The data, one array per row, with its values in the order of `columns`. A chart's numbers are raw values, before the chart's number format is applied; a table's cells are text. A map has only the rows it draws: places on its map, or dots with a latitude and longitude, found from each row's city for dots at cities, that have a number. At most 200 rows; `truncated` says whether there were more."},"truncated":{"type":"boolean","description":"Whether the chart or table has more than 200 rows, in which case `rows` contains only the first 200."}},"required":["columns","rows","truncated"],"additionalProperties":false,"description":"The data the chart or table shows, as `columns` and `rows`."}},"required":["title","type","values"],"additionalProperties":false},"description":"The charts and maps on the slide, with the data each one shows. A map made by a later version of Rollstack, which this one can't draw, is left out."},"tables":{"type":"array","items":{"type":"object","properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The chart title shown on the slide. `null` when the chart has no title, and always for a map or a table."},"type":{"type":"string","description":"What kind of chart it is: `bar`, `line` or `pie`. A chart that combines kinds, such as bars with a line, takes the kind of its first series, and a chart with no series is `chart`. A map is `filled_map`, which colours places by a value, or `scatter_map`, which puts a dot at each latitude and longitude, or at each city its rows name. Always `table` for a table."},"region":{"description":"What a map is drawn on: world (countries by name or ISO code), us_states (US states by name or two-letter code), us_metro_areas (US metropolitan and micropolitan areas by Census name, with or without its state or \"Metro Area\" (\"Atlanta-Sandy Springs-Roswell, GA\"), by main city and state (\"Atlanta, GA\"), or by CBSA code (12060); a name several metros share without their state, such as Springfield, and Puerto Rico's metros stay blank), us_dmas (US DMAs, Nielsen's TV markets, by name, with or without its states and what it adds in brackets (\"Boston, MA (Manchester, NH)\", \"Boston, MA\", \"Boston\"), or by DMA code (506); a name several DMAs can be meant by without their state, such as Columbus or Albany, and the DMAs of Alaska and Hawaii stay blank), us_counties (US counties and their equivalents, such as parishes, boroughs and independent cities, with their state (\"Harris County, TX\", \"Harris County, Texas\", \"Harris, TX\") or by 5-digit FIPS code (48201); a county name without its state is placed only by the column of states named in within, else the map can't be drawn), states (the states, provinces or regions of one or more countries, by name, local name or ISO 3166-2 code, with frame naming the countries; a name several countries have goes to the country most rows are in), country:<ISO3> (filled maps only: a country's states, provinces or regions by name, local name or ISO 3166-2 code such as DE-BY, as country:DEU for Germany's states; country:FRA:regions, country:ITA:regions, country:PHL:regions, country:ESP:regions, and country:GBR:nations draw larger regions). Only on maps.","type":"string"},"values":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"string"},"description":"The column headers: for a chart, the names of the data columns it draws; for a table, the text of its first row. A filled map's are its place and value columns, and a scatter map's its latitude and longitude, `Latitude` and `Longitude` for dots at cities, then its value columns and the column naming each dot when it has one."},"rows":{"type":"array","items":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"null"}]}},"description":"The data, one array per row, with its values in the order of `columns`. A chart's numbers are raw values, before the chart's number format is applied; a table's cells are text. A map has only the rows it draws: places on its map, or dots with a latitude and longitude, found from each row's city for dots at cities, that have a number. At most 200 rows; `truncated` says whether there were more."},"truncated":{"type":"boolean","description":"Whether the chart or table has more than 200 rows, in which case `rows` contains only the first 200."}},"required":["columns","rows","truncated"],"additionalProperties":false,"description":"The data the chart or table shows, as `columns` and `rows`."}},"required":["title","type","values"],"additionalProperties":false},"description":"The tables on the slide, with the text of their cells. A table's first row is returned as its `columns`, and the other rows as its `rows`."}},"required":["index","id","title","texts","charts","tables"],"additionalProperties":false},"description":"The report's visible slides in report order, or only those in `slideIds`. Hidden slides are never included."}},"required":["slides"],"additionalProperties":false,"description":"What viewers see on the report's visible slides: each slide's title and text, and the data its charts and tables show. Data the slides do not show is never included."}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/design":{"get":{"operationId":"getReportDesign","summary":"Get report design","description":"Start here to design a slide deck's slides yourself, as HTML. A call without layoutIds answers the guide to writing a slide for this report, which you follow, and what a slide is drawn on: the canvas size, the theme colours and, when the report has a template, its layouts by name. Call it again with layoutIds for the layouts you will use, to get the box each one's title goes in and the areas to keep clear.\n\nRequires the `slide_decks:read` scope.","tags":["Content"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"layoutIds","in":"query","required":false,"description":"The layouts to describe in full, by their `id` from a first call without it. At most 10: repeat the parameter for each one, as in `?layoutIds=a&layoutIds=b`. Left out, only the template's style is described.","schema":{"description":"The layouts to describe in full, by their `id` from a first call without it. At most 10: repeat the parameter for each one, as in `?layoutIds=a&layoutIds=b`. Left out, only the template's style is described.","anyOf":[{"type":"string"},{"maxItems":10,"type":"array","items":{"type":"string"}}]}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"canvas":{"type":"object","properties":{"width":{"type":"number"},"height":{"type":"number"}},"required":["width","height"],"additionalProperties":false,"description":"The report's slide size in CSS pixels. A slide's `<section>` is exactly this large."},"theme":{"type":"array","items":{"type":"object","properties":{"variable":{"type":"string","description":"The CSS variable a slide names the colour by, as in `var(--accent1)`."},"hex":{"type":"string","description":"The colour it stands for in this report."}},"required":["variable","hex"],"additionalProperties":false},"description":"The report's theme colours. A slide uses these and no others."},"layouts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The id a slide names the layout by, as `data-layout-id` on its `<section>`."},"name":{"type":"string","description":"The layout's name in the template."},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The layout's kind in the template, such as `title` or `obj`, when it has one."}},"required":["id","name","type"],"additionalProperties":false},"description":"The layouts of the report's template. Empty when the report has no template of its own: lay slides out freely then."},"layoutDetails":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"How to write on the template, as Markdown: the type and colours its slides are set in, and for each layout named in `layoutIds` the box its title goes in, its other placeholders with their ids and boxes, and the areas to keep clear. Null when the report has no template of its own."},"guide":{"description":"How to write a slide for this report, as Markdown: the HTML a slide is made of, the styles that are kept, how to place charts, tables and figures from its datasheets, and how to check and save it. Read it before writing any slide. Only on a call without `layoutIds`.","type":"string"}},"required":["canvas","theme","layouts","layoutDetails"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/slides\/html":{"get":{"operationId":"getReportSlideHtml","summary":"Get slide drafts","description":"The HTML drafts slides of a slide deck were made from, to change them and save them again with saveReportSlides under the same ids. A slide changed in Rollstack since its draft was saved, by a person in the editor or by Rollstack's agent, answers the draft as it was saved with changedInRollstack, the list of what was changed since: make every one of those changes in the draft first, so the work done there is kept, then make your own. A slide made by hand in the editor has no draft (html is null): a draft sent under its id rewrites the whole slide, dropping what was done there, so look at it with getReportSlideImages and ask the user first. At most 10 slides a call.\n\nRequires the `slide_decks:read` scope.","tags":["Content"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"slideIds","in":"query","required":true,"description":"The slides whose drafts to read, by their `id` from `getReportContent` or a reply's `changedSlideIds`, hidden ones included. Ids that are not slides of the report are ignored. 1 to 10 ids: repeat the parameter for each one, as in `?slideIds=a&slideIds=b`.","schema":{"description":"The slides whose drafts to read, by their `id` from `getReportContent` or a reply's `changedSlideIds`, hidden ones included. Ids that are not slides of the report are ignored. 1 to 10 ids: repeat the parameter for each one, as in `?slideIds=a&slideIds=b`.","anyOf":[{"type":"string"},{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}}],"examples":["f1e2d3c4-b5a6-4978-8a1b-2c3d4e5f6a7b"]}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"slides":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The slide."},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The draft the slide was made from, as one `<section>` of HTML. Null for a slide made by hand in the editor, which has none: a draft sent under its id rewrites the whole slide and drops what was done there. With `changedInRollstack`, the draft as it was saved, before those changes."},"changedInRollstack":{"description":"Only on a slide changed in Rollstack since its draft was saved, by a person in the editor or by Rollstack's agent: an entry per element changed, with `was` the element as the draft drew it and `now` as it stands. `reworded`: its text now reads `now.text`. `moved`: it sits in `now`'s box. `restyled`: its font, colour, fill or grouping changed, so look at it with `getReportSlideImages`. `removed` has no `now` and `added` no `was`. `html` is the draft as saved, so it has none of them: make each in the draft before saving it, or saving drops it. Empty when the slide shows what the draft says again.","type":"array","items":{"type":"object","properties":{"changes":{"type":"array","items":{"type":"string","enum":["removed","added","reworded","restyled","moved"]}},"was":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","description":"What it is, such as `text`, `chart`, `table`, `data text`, `picture` or `shape`."},"text":{"type":"string","description":"Its words, or the template of a data text. Empty for an element without words."},"left":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Its box in canvas px, as far as a draft sets it: null where a data update does."},"top":{"anyOf":[{"type":"number"},{"type":"null"}]},"width":{"anyOf":[{"type":"number"},{"type":"null"}]},"height":{"anyOf":[{"type":"number"},{"type":"null"}]},"rotation":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"In degrees."}},"required":["kind","text","left","top","width","height","rotation"],"additionalProperties":false},{"type":"null"}]},"now":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","description":"What it is, such as `text`, `chart`, `table`, `data text`, `picture` or `shape`."},"text":{"type":"string","description":"Its words, or the template of a data text. Empty for an element without words."},"left":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Its box in canvas px, as far as a draft sets it: null where a data update does."},"top":{"anyOf":[{"type":"number"},{"type":"null"}]},"width":{"anyOf":[{"type":"number"},{"type":"null"}]},"height":{"anyOf":[{"type":"number"},{"type":"null"}]},"rotation":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"In degrees."}},"required":["kind","text","left","top","width","height","rotation"],"additionalProperties":false},{"type":"null"}]}},"required":["changes","was","now"],"additionalProperties":false}}},"required":["id","html"],"additionalProperties":false},"description":"The slides asked for, in report order. Ids that are not slides of the report are left out."}},"required":["slides"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/slides\/images":{"get":{"operationId":"getReportSlideImages","summary":"Get slide images","description":"Renders slides of a report as images, as viewers see them, so you can check how they look: text that overflows or overlaps, or a chart too small to read. After a message's turn, pass its replies' changedSlideIds. At most 10 slides a call; hidden slides are left out. Counts against the 10 exports a minute per user.\n\nRequires the `slide_decks:read` scope.","tags":["Content"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"slideIds","in":"query","required":true,"description":"The slides to render, from `getReportContent` or a reply's `changedSlideIds`. Hidden slides and ids that are not slides of the report are ignored. 1 to 10 ids: repeat the parameter for each one, as in `?slideIds=a&slideIds=b`.","schema":{"description":"The slides to render, from `getReportContent` or a reply's `changedSlideIds`. Hidden slides and ids that are not slides of the report are ignored. 1 to 10 ids: repeat the parameter for each one, as in `?slideIds=a&slideIds=b`.","anyOf":[{"type":"string"},{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}}],"examples":["f1e2d3c4-b5a6-4978-8a1b-2c3d4e5f6a7b"]}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"slides":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The slide the image shows, as passed in `slideIds`."},"mimeType":{"type":"string","const":"image\/jpeg","description":"The format of the image. Always `image\/jpeg`."},"data":{"type":"string","format":"base64","contentEncoding":"base64","pattern":"^$|^(?:[0-9a-zA-Z+\/]{4})*(?:(?:[0-9a-zA-Z+\/]{2}==)|(?:[0-9a-zA-Z+\/]{3}=))?$","description":"The slide as viewers see it, as a JPEG image encoded in base64."}},"required":["id","mimeType","data"],"additionalProperties":false},"description":"The rendered slides, in report order, whatever order `slideIds` lists them in. Hidden slides, and any slide that could not be rendered, are left out."}},"required":["slides"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/slides":{"patch":{"operationId":"arrangeReportSlides","summary":"Arrange slides","description":"Moves, removes, hides or shows slides of a slide deck, with nothing on them changed. Read the slides' ids with getReportContent. order puts the slides in a new order and names every slide that stays, once each; remove takes slides out of the report; hide keeps a slide in the report but out of what is presented and exported, and show brings it back. Take the change back by restoring versionBeforeId with restoreReportVersion. Called with nothing to change, it answers every slide in order with whether it is hidden: getReportContent leaves hidden slides out. Only the report's editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Content"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"order":{"description":"The report's slides in their new order, by their `id` from `getReportContent`: every slide that stays, once each. Leave it out to keep the order.","minItems":1,"type":"array","items":{"type":"string"}},"remove":{"description":"The slides to remove from the report, by their ids.","minItems":1,"type":"array","items":{"type":"string"}},"hide":{"description":"The slides to hide, by their ids: they stay in the report and are left out when it is presented or exported.","minItems":1,"type":"array","items":{"type":"string"}},"show":{"description":"The hidden slides to show again, by their ids.","minItems":1,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"versionBeforeId":{"description":"The version saved just before the change: restore it with `restoreReportVersion` to take the change back. Absent when nothing changed.","type":"string"},"slides":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The slide."},"hidden":{"type":"boolean","description":"Whether the slide is hidden."}},"required":["id","hidden"],"additionalProperties":false},"description":"The report's slides after the change, in order."}},"required":["slides"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"saveReportSlides","summary":"Save draft slides","description":"Writes slides you wrote as HTML into a slide deck, as the slides agent's are: a draft sent under the id of a slide of the report replaces that slide where it is, any other is added right after the slide named in afterSlideId, or at the end without one, and every other slide stays. To move, remove or hide slides, use arrangeReportSlides. Render them with renderReportSlides first: nothing is saved while a draft still has an issue, and the issues come back instead. A chart or table a draft places is filled with its datasheet's data as part of the save, with no change to the slides. Take the save back by restoring versionBeforeId with restoreReportVersion. Only the report's editors may. At most 10 drafts a call, and 20 renders and saves a minute per user.\n\nRequires the `slide_decks:write` scope.","tags":["Content"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"slides":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"The id you give the slide: letters, digits, `_` and `-`, at most 64 characters. Pass an existing slide's id to redraw that slide."},"html":{"type":"string","minLength":1,"maxLength":200000,"description":"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."}},"required":["id","html"],"additionalProperties":false},"description":"The draft slides to save, 1 to 10 a call, each under an id of its own."},"afterSlideId":{"description":"The slide of the report the new slides go right after, by its `id` from `getReportContent`. Without it they are added at the end. A draft sent under the id of a slide of the report replaces that slide where it is.","type":"string"}},"required":["slides"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"saved":{"type":"boolean","description":"Whether the drafts were written into the report. False while any of them still has an issue: nothing is written then."},"versionBeforeId":{"description":"The version of the report saved before this change. Restore it with `restoreReportVersion` to take the change back.","type":"string"},"conversionError":{"description":"Why the drafts could not be turned into slides, when one could not. Fix it and save again.","type":"string"},"slides":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The draft, by the id it was sent with."},"slideId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The slide of the report the draft became: a new id for a new slide, the same id for a slide it replaced. Send a later draft under this id to change the slide. Null when nothing was saved."},"issues":{"type":"array","items":{"type":"string"},"description":"What to fix before the draft can be saved."},"notes":{"type":"array","items":{"type":"string"},"description":"What to check by eye. These block nothing."}},"required":["id","slideId","issues","notes"],"additionalProperties":false},"description":"The drafts, in the order they were sent."},"datasheets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The datasheet."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why its data is not on the slide: the read failed, or it is still running and the slide shows the data once it ends. Null when the data was read."}},"required":["id","error"],"additionalProperties":false},"description":"The datasheets whose charts and tables the save placed. Their data is read as part of the save, so the slides show it at once, unless the source is slow: then the save answers first and the data follows."}},"required":["saved","slides","datasheets"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/slides\/{slideId}\/burst":{"patch":{"operationId":"updateReportSlideBurst","summary":"Burst a slide","description":"Bursts a slide into one variant per value of a report parameter, as the Burst panel does: each variant shows the slide filtered to its value, and getReportContent lists them after the slide, in the order of its values. To burst a whole report into one report per value, use createBurst. Take the change back by restoring versionBeforeId with restoreReportVersion. Only the report's editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Content"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"slideId","in":"path","required":true,"description":"The slide's `id` from `getReportContent`.","schema":{"type":"string","description":"The slide's `id` from `getReportContent`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"add":{"description":"Values to add, one variant each, filtered to the parameter \"is\" that value. Added in order after the slide's values, the first of which the slide itself shows. Values it has are skipped. At most 100 in all.","type":"object","properties":{"parameterId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The report parameter the values are of, from `getReportParameters`. A slide bursts by one parameter: to switch, remove its values in the same call."},"values":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"string","minLength":1}}},"required":["parameterId","values"],"additionalProperties":false},"remove":{"description":"Values to remove with their variants, before any are added. Values it doesn't have are skipped. Removing every value stops bursting the slide.","minItems":1,"type":"array","items":{"type":"string"}},"move":{"description":"One of the slide's values to move, after any are added. It keeps its variant and the data it read. Moved first, it's what the slide itself shows.","type":"object","properties":{"value":{"type":"string"},"before":{"description":"Another of its values to move it before. Without it, it goes last.","type":"string"}},"required":["value"],"additionalProperties":false}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"versionBeforeId":{"description":"The version saved just before the change: restore it with `restoreReportVersion` to take the change back. Absent when nothing changed.","type":"string"},"parameterId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report parameter the slide is burst by. `null` when it isn't burst."},"values":{"type":"array","items":{"type":"string"},"description":"The slide's values after the change, in order. New variants read their data in the background."}},"required":["parameterId","values"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/theme":{"patch":{"operationId":"updateReportTheme","summary":"Change theme","description":"Changes a slide deck's theme: its colours, its heading font and its body font. This is how a deck takes a brand's colours, such as the ones the user names or the ones of a presentation they gave you: read the colours yourself and send each in the slot whose job it does. Every slide follows wherever it uses the theme's colours, and so do the template's layouts and the slides you write next, which keep using the theme variables that getReportDesign lists. Call it before you write slides, then call getReportDesign again for the colours as they are now. A slot sent with a colour another slot already has is saved one step of blue away from it (#2D6A4F and #2D6A50), which looks the same: saved slides tell theme colours apart by their value, so the answer can differ from what you sent by that step. A change that would leave text unreadable on its background changes nothing and answers the pair to fix, and so does a font the editor does not have. A new font sets text wider or narrower than the old one: on a deck that already has slides, look at each with getReportSlideImages afterwards and save again the ones whose text no longer fits. It changes colours and fonts only: for a presentation's layouts and logo, the user imports it as a template in Rollstack, which answers in listTemplates. Only the report's editors may. Answers the theme after the change and the version saved before it.\n\nRequires the `slide_decks:write` scope.","tags":["Content"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"colors":{"description":"The theme colours to change, each as `#RRGGBB`. The ones left out stay as they are. Each has a job on the slides, so put a brand's colours where they belong: its dark text colour in `dark1`, its background in `light1`, its main brand colour in `accent1`.","type":"object","properties":{"dark1":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"Main text: titles and body text on the slide background."},"dark2":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"Secondary text: captions, sources and muted labels, quieter than dark1 but readable."},"light1":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"The slide background."},"light2":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"The second surface: cards, panels and table header rows. Close to light1 but visibly different from it."},"accent1":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"The main highlight: key numbers, accent bars and rules, the first chart series."},"accent2":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"The second chart series and highlight."},"accent3":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"The third chart series and highlight."},"accent4":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"The fourth chart series and highlight."},"accent5":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"The fifth chart series and highlight."},"accent6":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"The sixth chart series and highlight."},"hyperlink":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"Link text, readable on light1."},"followedHyperlink":{"type":"string","pattern":"^#[0-9A-Fa-f]{6}$","description":"Visited link text, readable on light1."}},"additionalProperties":false},"headingFont":{"description":"The font family for titles and headings, by its published name, such as `Inter`. A font the editor does not have is refused.","type":"string","minLength":1,"maxLength":64},"bodyFont":{"description":"The font family for all other text, by its published name.","type":"string","minLength":1,"maxLength":64}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","oneOf":[{"type":"object","properties":{"changed":{"type":"boolean","const":true},"versionBeforeId":{"type":"string","description":"The version saved just before the change: restore it with `restoreReportVersion` to take the change back."},"colors":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"The report's theme colours after the change, by slot, as `getReportDesign` lists them in `theme`."},"headingFont":{"type":"string","description":"The font of titles and headings after the change."},"bodyFont":{"type":"string","description":"The font of all other text after the change."}},"required":["changed","versionBeforeId","colors","headingFont","bodyFont"],"additionalProperties":false},{"type":"object","properties":{"changed":{"type":"boolean","const":false},"refused":{"type":"string","enum":["invalid","needs-agent"],"description":"`invalid`: fix what `reason` names and send the change again. `needs-agent`: only Rollstack's agent can make this change, so ask the user whether to hand it over with `sendReportMessage`."},"reason":{"type":"string","description":"Why nothing changed: the pairs of colours the change would leave unreadable, a font the editor lacks, or a background picture that could not be read."}},"required":["changed","refused","reason"],"additionalProperties":false}]}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/slides\/render":{"post":{"operationId":"renderReportSlides","summary":"Render draft slides","description":"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.\n\nRequires the `slide_decks:write` scope.","tags":["Content"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"slides":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"The id you give the slide: letters, digits, `_` and `-`, at most 64 characters. Pass an existing slide's id to redraw that slide."},"html":{"type":"string","minLength":1,"maxLength":200000,"description":"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."}},"required":["id","html"],"additionalProperties":false},"description":"The draft slides to render, 1 to 10 a call, each under an id of its own."},"datasheetChanges":{"description":"Changes to the report's datasheets that aren't saved yet, the ones you tried with `previewReportDatasheetChanges`: 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 with `saveReportDatasheetChanges` before you save the slides.","minItems":1,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"create"},"temporaryId":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,63}$","description":"A stable id for the new datasheet, which later changes in this patch reference it by"},"name":{"type":"string","minLength":1,"description":"The datasheet's name"},"reads":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$","description":"The name SQL reads this element by in FROM\/JOIN, and ops name it by as a ref"},"datasheetRef":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"An existing datasheet that reads one element: the new datasheet reads that element, with its filters"},"readType":{"description":"Omit to read it as that datasheet does","anyOf":[{"type":"string","enum":["aggregated","raw"]},{"type":"null"}]}},"required":["alias","datasheetRef"],"additionalProperties":false},"description":"The elements it reads, each once: the one a query reads, or those a join reads"},"parameters":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"parameter":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"integer"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"number"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"boolean"},"value":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"date"},"value":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"timestamp"},"value":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false}]}},"required":["key","parameter"],"additionalProperties":false},"description":"User-controlled periods, limits, thresholds and selections: SQL reads them as columns of the params input, a step as {\"type\":\"parameter\",\"key\":\"<key>\"}"},"query":{"description":"The data as the Edit data editor builds it, over the one read; give query, or ops over several reads","anyOf":[{"type":"object","properties":{"customFields":{"description":"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(); diff_days between two dates, then averaged; to_number() of a number a sheet stores as text (\"120,936\"), so it sums and sorts","maxItems":20,"type":"array","items":{"type":"object","properties":{"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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_total(), which read other rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["formula","as"],"additionalProperties":false}},"dimensions":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"The columns to group by"},"measures":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which counts rows"},"as":{"description":"Omit for the default name, such as \"Sum of Sales\"","type":"string","minLength":1,"maxLength":255},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column"],"additionalProperties":false}},"pivots":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"Dimensions whose values become columns, outer first: each level splits the one above; empty for none"},"calculations":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest ranks 1"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","direction"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"The query's only dimension, such as a month, by its name before renames: the rows are ordered by it, oldest first"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","orderBy"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\"). It reads the dimensions and measures, never another calculation: write that calculation's formula out in this one instead"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["fn","formula","as"],"additionalProperties":false}]}},"columnOrder":{"description":"Every column once, by its name before renames, in the order to show them, removed columns optional; omit for dimensions, measures, then calculations","maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"pivotLayout":{"description":"Omit for the default: columns in the order their values first appear","type":"object","properties":{"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"}},"required":["columns","nullLabel","fill"],"additionalProperties":false},"filters":{"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]},"description":"All must hold"},"renames":{"description":"Output columns under another name","minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}},"sorts":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column, by its name before renames; a split's cell by its values"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]}},"required":["column","direction"],"additionalProperties":false},"description":"Columns to sort by, the first first, each next one breaking ties; empty for none"},"limit":{"anyOf":[{"anyOf":[{"type":"integer","minimum":1,"maximum":100000},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},{"type":"null"}],"description":"Rows to keep: a number, an integer parameter, or null for all"},"limitFrom":{"type":"string","enum":["start","end"]},"totals":{"description":"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 none","type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false},"formats":{"description":"numfmt patterns by output column","maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false}},"columnChoice":{"description":"Which columns the rows show: those to leave out, or the only ones to show. Omit for every column","type":"object","properties":{"kind":{"type":"string","enum":["removed","kept"],"description":"removed: the columns to leave out of the rows while keeping the grouping, e.g. group by region and month but show no region column. kept: only for rows that aren't grouped, the only source columns to show, in this order; a column added to the source later stays out"},"columns":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"By their name before renames, each once; a split's column is named by its values"}},"required":["kind","columns"],"additionalProperties":false},"keepGroupsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsBeforeLimit":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["dimensions","measures","pivots","filters","sorts","limit"],"additionalProperties":false},{"type":"null"}]},"ops":{"description":"Only over several reads: a join step over every read first, naming each read in its inputs (from op, ref the read alias), then steps","anyOf":[{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":64,"description":"An existing op id to keep that op, or a new short name"},"title":{"description":"Omit to keep a kept op's title; a step op without one shows its step summary","anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"inputs":{"description":"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 as `input`; a new first op reads the datasheet's one read, as `source` or the read's alias","anyOf":[{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"alias":{"description":"SQL ops: the name the statement reads this input by","anyOf":[{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},{"type":"null"}]},"from":{"type":"string","enum":["previous","op"],"description":"previous: the op above (above the first op, the datasheet's one read); op: the one ref names"},"ref":{"description":"op: the ref of an earlier op in this list, or a read's operation id or alias","anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["from"],"additionalProperties":false}},{"type":"null"}]},"step":{"description":"A step op's call; on a kept op, send it only to change it","anyOf":[{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"select"},"params":{"type":"object","properties":{"mode":{"type":"string","enum":["keep","drop"],"description":"keep: exactly these columns, in this order. drop: every column but these"},"columns":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"optional":{"description":"skip a named column that isn't there (in either mode), as a split's column is once its value is gone","type":"boolean"}},"required":["mode","columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"rename"},"params":{"type":"object","properties":{"renames":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}}},"required":["renames"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"filter"},"params":{"type":"object","properties":{"match":{"type":"string","enum":["all","any"]},"conditions":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["match","conditions"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"sort"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]},"optional":{"description":"skip this key when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["column","direction","nulls"],"additionalProperties":false}}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"limit"},"params":{"type":"object","properties":{"count":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"integer","minimum":1,"maximum":100000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"from":{"type":"string","enum":["start","end"]}},"required":["count","from"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"aggregate"},"params":{"type":"object","properties":{"groupBy":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}]},"as":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket","as"],"additionalProperties":false},"description":"Empty gives one row, e.g. a KPI"},"metrics":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column","as"],"additionalProperties":false}},"totals":{"type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false}},"required":["groupBy","metrics"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"pivot"},"params":{"type":"object","properties":{"rows":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns kept as rows, one row per combination"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"Column whose values become output columns"},"values":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"label":{"type":"string","minLength":1,"maxLength":255}},"required":["fn","column","label"],"additionalProperties":false}},"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"},"thenBy":{"description":"Columns split under column, outer to inner, discover mode only: one output column per combination the data has","minItems":1,"maxItems":2,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}}},"required":["rows","column","values","columns","nullLabel","fill"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"window"},"params":{"type":"object","properties":{"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest value ranks 1"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","direction","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A number column"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"Column the rows are ordered by, oldest first, such as a month"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","orderBy","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\")"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","formula","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false}]},"description":"Columns added after the input columns, each over all the rows this step receives"}},"required":["columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"join"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns every input has, whose values name one row of each input, such as a region and a month"}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false}]},{"type":"null"}]}},"required":["ref"],"additionalProperties":false}},{"type":"null"}]},"formats":{"description":"With ops; a query has its own formats","anyOf":[{"maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false},"description":"numfmt formats by output column: give each renamed or computed number or date column one"},{"type":"null"}]},"sql":{"description":"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`)","anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["type","temporaryId","name","reads","parameters"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-query"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"parameters":{"description":"Replaces the datasheet's complete parameter set; omit to keep it","anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"parameter":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"integer"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"number"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"boolean"},"value":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"date"},"value":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"timestamp"},"value":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false}]}},"required":["key","parameter"],"additionalProperties":false}},{"type":"null"}]},"query":{"type":"object","properties":{"customFields":{"description":"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(); diff_days between two dates, then averaged; to_number() of a number a sheet stores as text (\"120,936\"), so it sums and sorts","maxItems":20,"type":"array","items":{"type":"object","properties":{"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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_total(), which read other rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["formula","as"],"additionalProperties":false}},"dimensions":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"The columns to group by"},"measures":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which counts rows"},"as":{"description":"Omit for the default name, such as \"Sum of Sales\"","type":"string","minLength":1,"maxLength":255},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column"],"additionalProperties":false}},"pivots":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"Dimensions whose values become columns, outer first: each level splits the one above; empty for none"},"calculations":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest ranks 1"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","direction"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"The query's only dimension, such as a month, by its name before renames: the rows are ordered by it, oldest first"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","orderBy"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\"). It reads the dimensions and measures, never another calculation: write that calculation's formula out in this one instead"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["fn","formula","as"],"additionalProperties":false}]}},"columnOrder":{"description":"Every column once, by its name before renames, in the order to show them, removed columns optional; omit for dimensions, measures, then calculations","maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"pivotLayout":{"description":"Omit for the default: columns in the order their values first appear","type":"object","properties":{"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"}},"required":["columns","nullLabel","fill"],"additionalProperties":false},"filters":{"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]},"description":"All must hold"},"renames":{"description":"Output columns under another name","minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}},"sorts":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column, by its name before renames; a split's cell by its values"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]}},"required":["column","direction"],"additionalProperties":false},"description":"Columns to sort by, the first first, each next one breaking ties; empty for none"},"limit":{"anyOf":[{"anyOf":[{"type":"integer","minimum":1,"maximum":100000},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},{"type":"null"}],"description":"Rows to keep: a number, an integer parameter, or null for all"},"limitFrom":{"type":"string","enum":["start","end"]},"totals":{"description":"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 none","type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false},"formats":{"description":"numfmt patterns by output column","maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false}},"columnChoice":{"description":"Which columns the rows show: those to leave out, or the only ones to show. Omit for every column","type":"object","properties":{"kind":{"type":"string","enum":["removed","kept"],"description":"removed: the columns to leave out of the rows while keeping the grouping, e.g. group by region and month but show no region column. kept: only for rows that aren't grouped, the only source columns to show, in this order; a column added to the source later stays out"},"columns":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"By their name before renames, each once; a split's column is named by its values"}},"required":["kind","columns"],"additionalProperties":false},"keepGroupsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsBeforeLimit":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["dimensions","measures","pivots","filters","sorts","limit"],"additionalProperties":false,"description":"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 from"}},"required":["type","datasheetRef","query"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-ops"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"parameters":{"description":"Replaces the datasheet's complete parameter set; omit to keep it","anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"parameter":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"integer"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"number"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"boolean"},"value":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"date"},"value":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"timestamp"},"value":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false}]}},"required":["key","parameter"],"additionalProperties":false}},{"type":"null"}]},"ops":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":64,"description":"An existing op id to keep that op, or a new short name"},"title":{"description":"Omit to keep a kept op's title; a step op without one shows its step summary","anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"inputs":{"description":"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 as `input`; a new first op reads the datasheet's one read, as `source` or the read's alias","anyOf":[{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"alias":{"description":"SQL ops: the name the statement reads this input by","anyOf":[{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},{"type":"null"}]},"from":{"type":"string","enum":["previous","op"],"description":"previous: the op above (above the first op, the datasheet's one read); op: the one ref names"},"ref":{"description":"op: the ref of an earlier op in this list, or a read's operation id or alias","anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["from"],"additionalProperties":false}},{"type":"null"}]},"step":{"description":"A step op's call; on a kept op, send it only to change it","anyOf":[{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"select"},"params":{"type":"object","properties":{"mode":{"type":"string","enum":["keep","drop"],"description":"keep: exactly these columns, in this order. drop: every column but these"},"columns":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"optional":{"description":"skip a named column that isn't there (in either mode), as a split's column is once its value is gone","type":"boolean"}},"required":["mode","columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"rename"},"params":{"type":"object","properties":{"renames":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}}},"required":["renames"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"filter"},"params":{"type":"object","properties":{"match":{"type":"string","enum":["all","any"]},"conditions":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["match","conditions"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"sort"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]},"optional":{"description":"skip this key when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["column","direction","nulls"],"additionalProperties":false}}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"limit"},"params":{"type":"object","properties":{"count":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"integer","minimum":1,"maximum":100000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"from":{"type":"string","enum":["start","end"]}},"required":["count","from"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"aggregate"},"params":{"type":"object","properties":{"groupBy":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}]},"as":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket","as"],"additionalProperties":false},"description":"Empty gives one row, e.g. a KPI"},"metrics":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column","as"],"additionalProperties":false}},"totals":{"type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false}},"required":["groupBy","metrics"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"pivot"},"params":{"type":"object","properties":{"rows":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns kept as rows, one row per combination"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"Column whose values become output columns"},"values":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"label":{"type":"string","minLength":1,"maxLength":255}},"required":["fn","column","label"],"additionalProperties":false}},"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"},"thenBy":{"description":"Columns split under column, outer to inner, discover mode only: one output column per combination the data has","minItems":1,"maxItems":2,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}}},"required":["rows","column","values","columns","nullLabel","fill"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"window"},"params":{"type":"object","properties":{"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest value ranks 1"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","direction","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A number column"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"Column the rows are ordered by, oldest first, such as a month"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","orderBy","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\")"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","formula","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false}]},"description":"Columns added after the input columns, each over all the rows this step receives"}},"required":["columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"join"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns every input has, whose values name one row of each input, such as a region and a month"}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false}]},{"type":"null"}]}},"required":["ref"],"additionalProperties":false},"description":"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-query"},"formats":{"description":"Replaces the datasheet's formats; omit to keep them","anyOf":[{"maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false},"description":"numfmt formats by output column: give each renamed or computed number or date column one"},{"type":"null"}]}},"required":["type","datasheetRef","ops"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-read-type"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"readType":{"type":"string","enum":["aggregated","raw","image"],"description":"aggregated: its data, as the tool displays it; raw: its tidy read, to transform; image: its picture"}},"required":["type","datasheetRef","readType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-unpivot"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"unpivot":{"description":"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 one","anyOf":[{"anyOf":[{"oneOf":[{"type":"object","properties":{"rows":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":255,"description":"What the name column says on this row, such as the column's name or \"2022\""},"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"description":"The input column for each of values, in order; null leaves that value empty on this row"}},"required":["label","columns"],"additionalProperties":false},"description":"One output row per input row and entry, in this order; the input columns no entry names repeat on each"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The column that holds each row's label, such as \"Year\""},"values":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"The columns the values go in: one, such as \"Value\", or one per measure"},"mode":{"type":"string","const":"fixed","description":"Its entries name the columns turned into rows: for several values per period"}},"required":["rows","name","values","mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover","description":"Every column the range has when it is read, but the ones in except, becomes a row labelled with its name: for one value per period, so a period the sheet adds or renames still comes through"},"except":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Every column that is not turned into a row, left as it is: the row labels, the column a fill down adds, a total the sheet keeps beside its periods"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The column that holds each row's label, such as \"Year\""},"value":{"type":"string","minLength":1,"maxLength":255,"description":"The one column the values go in, such as \"Value\""}},"required":["mode","except","name","value"],"additionalProperties":false}]},{"type":"object","properties":{"rows":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":255,"description":"What the name column says on this row, such as the column's name or \"2022\""},"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"description":"The input column for each of values, in order; null leaves that value empty on this row"}},"required":["label","columns"],"additionalProperties":false},"description":"One output row per input row and entry, in this order; the input columns no entry names repeat on each"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The column that holds each row's label, such as \"Year\""},"values":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"The columns the values go in: one, such as \"Value\", or one per measure"}},"required":["rows","name","values"],"additionalProperties":false,"description":"Mode fixed, as written before unpivots had a mode"}]},{"type":"null"}]},"fillDown":{"description":"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 one","anyOf":[{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"The column holding the row labels, headings included"},"into":{"type":"string","minLength":1,"maxLength":255,"description":"The new column the headings fill, such as \"Section\""}},"required":["column","into"],"additionalProperties":false},{"type":"null"}]},"removeRows":{"description":"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","anyOf":[{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},{"type":"null"}]}},"required":["type","datasheetRef"],"additionalProperties":false}]}}},"required":["slides"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"conversionError":{"description":"Why the drafts could not be turned into slides, when one could not. `slides` is empty then: fix it and render again.","type":"string"},"datasheetChangesError":{"description":"Why the `datasheetChanges` failed, when they did, naming the datasheet and step. `slides` is empty then: fix them with `previewReportDatasheetChanges` and render again.","type":"string"},"slides":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The slide, by the id it was sent with."},"issues":{"type":"array","items":{"type":"string"},"description":"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":{"type":"array","items":{"type":"string"},"description":"What to check by eye. These block nothing."},"image":{"anyOf":[{"type":"string","format":"base64","contentEncoding":"base64","pattern":"^$|^(?:[0-9a-zA-Z+\/]{4})*(?:(?:[0-9a-zA-Z+\/]{2}==)|(?:[0-9a-zA-Z+\/]{3}=))?$"},{"type":"null"}],"description":"The draft as it rendered, as a PNG image encoded in base64. Null when it could not be drawn."}},"required":["id","issues","notes","image"],"additionalProperties":false},"description":"The rendered drafts, in the order they were sent."}},"required":["slides"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/datasets\/{id}":{"get":{"operationId":"getDataset","summary":"Get an uploaded file","description":"An uploaded CSV file or Excel workbook. A workbook comes with its sheets, the range each one uses and its named ranges: pass a sheet's id as sheetId to also read its cells as text, which shows where a table's header row is. Then add the sheet, or a range of it that starts at the header row, to a report with addReportDatasheets. Cells show what the workbook saved: nothing is recalculated.\n\nRequires the `slide_decks:read` scope.","tags":["Uploaded files"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The uploaded file to read: the `id` returned by `createDataset`, or a datasheet's `datasetId` in `listReportDatasheets`. It can be any uploaded file of your organization, including one another member uploaded.","schema":{"type":"string","description":"The uploaded file to read: the `id` returned by `createDataset`, or a datasheet's `datasetId` in `listReportDatasheets`. It can be any uploaded file of your organization, including one another member uploaded."}},{"name":"sheetId","in":"query","required":false,"description":"A sheet of an uploaded workbook whose cells to read: one of the `sheets[].id` values of an earlier call. The answer's `cells` then holds them. Omit it to list the workbook's sheets only.","schema":{"description":"A sheet of an uploaded workbook whose cells to read: one of the `sheets[].id` values of an earlier call. The answer's `cells` then holds them. Omit it to list the workbook's sheets only.","type":"string"}},{"name":"range","in":"query","required":false,"description":"The cells to read from the sheet, in A1 notation without the sheet's name, such as `A1:H40`. Omit it to read from the start of the range the sheet uses. Only with `sheetId`.","schema":{"description":"The cells to read from the sheet, in A1 notation without the sheet's name, such as `A1:H40`. Omit it to read from the start of the range the sheet uses. Only with `sheetId`.","examples":["A1:H40"],"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the uploaded file. Pass it as `id` to `replaceDataset` and `deleteDataset` and, for a CSV file, as `datasetId` to `addReportDatasheets` to add it to a report."},"name":{"type":"string","description":"The uploaded file's name: the `name` it was created with for a CSV file, or the workbook's file name for an Excel workbook, such as `Q3 pipeline.xlsx`. Replacing the file's content doesn't change it."},"createdAt":{"description":"When the file was uploaded. Replacing its content doesn't change it.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the file's content was last replaced with `replaceDataset`, or when it was uploaded if it has never been replaced.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"kind":{"type":"string","enum":["csv","workbook"],"description":"What the uploaded file is. A `csv` file is added to a report whole. A `workbook` is added one sheet or range at a time."},"sheets":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the sheet within the workbook. Pass it as `sheetId` to `addReportDatasheets`, with the file's `id` as `datasetId`."},"title":{"type":"string","description":"The sheet's name, as shown on its tab in Excel."},"hidden":{"type":"boolean","description":"Whether the sheet is hidden in Excel. A hidden sheet can still be read."},"usedRange":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The cells of the sheet that hold something, in A1 notation, such as `A1:H40`: what `addReportDatasheets` reads when you pass no `range`. It can start with title rows or hold several tables, so read its `cells` before adding it. `null` for an empty sheet."}},"required":["id","title","hidden","usedRange"],"additionalProperties":false}},{"type":"null"}],"description":"A workbook's sheets (tabs), in the order Excel shows them, hidden ones included. `null` for a CSV file."},"namedRanges":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The named range's name in Excel."},"sheetId":{"type":"string","description":"The sheet the named range is on: one of `sheets[].id`."},"range":{"type":"string","description":"The cells the name stands for, in A1 notation. Pass it as `range` to `addReportDatasheets`."}},"required":["name","sheetId","range"],"additionalProperties":false}},{"type":"null"}],"description":"A workbook's named ranges that lie on one of its sheets. `null` for a CSV file."},"cells":{"anyOf":[{"type":"object","properties":{"sheetId":{"type":"string","description":"The sheet the cells were read from."},"range":{"type":"string","description":"The cells asked for, in A1 notation."},"rows":{"type":"array","items":{"type":"array","items":{"type":"string"}},"description":"The cells as text, as Excel shows them, row by row from the top-left cell of `range`, with an empty string for an empty cell. At most 50 rows and 30 columns. Use them to find the row a table's header is on, then add the table with `addReportDatasheets`, starting its `range` at that row."},"truncated":{"type":"boolean","description":"Whether `range` holds more rows or columns than `rows` shows. Read further with a `range` that starts lower."}},"required":["sheetId","range","rows","truncated"],"additionalProperties":false},{"type":"null"}],"description":"The cells of the sheet asked for with `sheetId`. `null` when no sheet was asked for."}},"required":["id","name","createdAt","updatedAt","kind","sheets","namedRanges","cells"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"put":{"operationId":"replaceDataset","summary":"Replace an uploaded file","description":"Replaces an uploaded CSV file's rows, or a workbook's content with a new .xlsx sent as multipart\/form-data in the file field. It keeps its id, and a CSV is never replaced by a workbook or the other way round. Reports built on it show the new content after their next run or message to the slides agent. An invalid file leaves the current one in place, and a sheet or range the new workbook no longer has fails its datasheets' reads. Only the user who created it may. From an MCP client, send a workbook with createDatasetUpload and this file's id.\n\nRequires the `slide_decks:write` scope.","tags":["Uploaded files"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The uploaded file to replace or delete: the `id` returned by `createDataset`. Only the user who uploaded the file can replace or delete it; for anyone else, the request fails with a `404`, as if the file did not exist.","schema":{"type":"string","description":"The uploaded file to replace or delete: the `id` returned by `createDataset`. Only the user who uploaded the file can replace or delete it; for anyone else, the request fails with a `404`, as if the file did not exist."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"csv":{"type":"string","minLength":1,"description":"The file's data, as CSV text: a header row naming the columns, then at least one row of data. With `replaceDataset`, it replaces the file's whole content, header included, and the uploaded file must be a CSV file. The header's names become the column names of the datasheets made from the file: a blank one becomes `Column N`, after the column's position, and a repeated one gets a `_2`, `_3` suffix. Values can be separated by commas, semicolons or tabs, detected from the header row. At most 10 MB.","examples":["region,revenue\nEMEA,1200000\nAmericas,2400000"]}},"required":["csv"],"additionalProperties":false}},"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The Excel workbook to upload. With `createDataset`, it becomes a new uploaded file named after the file, such as `Q3 pipeline.xlsx`; with `replaceDataset`, it replaces the content of an uploaded workbook, which keeps its id and name. An uploaded workbook can't be added to a report with `addReportDatasheets`, which takes uploaded CSV files only. The file's name must end in `.xlsx`, and it can be at most 10 MB; legacy `.xls`, macro-enabled and password-protected workbooks are rejected."}},"required":["file"]}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the uploaded file. Pass it as `id` to `replaceDataset` and `deleteDataset` and, for a CSV file, as `datasetId` to `addReportDatasheets` to add it to a report."},"name":{"type":"string","description":"The uploaded file's name: the `name` it was created with for a CSV file, or the workbook's file name for an Excel workbook, such as `Q3 pipeline.xlsx`. Replacing the file's content doesn't change it."},"createdAt":{"description":"When the file was uploaded. Replacing its content doesn't change it.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the file's content was last replaced with `replaceDataset`, or when it was uploaded if it has never been replaced.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"deleteDataset","summary":"Delete an uploaded file","description":"Deletes an uploaded CSV file or workbook. Reports built on it keep what they last showed, and their datasheets fail on the next read. Only the user who created it may.\n\nRequires the `slide_decks:write` scope.","tags":["Uploaded files"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The uploaded file to replace or delete: the `id` returned by `createDataset`. Only the user who uploaded the file can replace or delete it; for anyone else, the request fails with a `404`, as if the file did not exist.","schema":{"type":"string","description":"The uploaded file to replace or delete: the `id` returned by `createDataset`. Only the user who uploaded the file can replace or delete it; for anyone else, the request fails with a `404`, as if the file did not exist."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/datasets\/uploads":{"post":{"operationId":"createDatasetUpload","summary":"Get a link to upload a file","description":"Answers a link to send a CSV file or an Excel workbook (.xlsx) to from a shell, as it is on disk, at most 10 MB: use it when the user gives you a file, in place of writing a CSV into createDataset, and for every workbook. Run the command it answers with the path of the file. The upload answers the uploaded file with its id, as createDataset does: add it to a report with addReportDatasheets, a workbook after reading its sheets with getDataset. With datasetId, the file replaces the content of that uploaded file. The link works for 10 minutes and for one file: a file that is refused uses it up, so ask for another. Without a shell, write the CSV into createDataset. At most 20 links a minute per user.\n\nRequires the `slide_decks:write` scope.","tags":["Uploaded files"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"datasetId":{"description":"An uploaded file to replace the content of: its `id` from `createDataset`, or a datasheet's `datasetId` in `listReportDatasheets`. The file sent must be of its kind, a CSV for a CSV and a workbook for a workbook, and it keeps its id and name. Only the user who uploaded it may. Omit it to upload a new file.","type":"string"}},"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"uploadUrl":{"type":"string","description":"Where to send the file, as `multipart\/form-data` in the `file` field, with no API key: the link is the permission, for one file. It answers the uploaded file as `createDataset` does, with its `id`."},"command":{"type":"string","description":"A curl command that sends the file: replace `PATH_TO_FILE` with the file's path and run it in a shell. The file's name must end in `.csv` or `.xlsx`."},"expiresAt":{"description":"When the link stops working, 10 minutes after it was made.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["uploadUrl","command","expiresAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/documents":{"post":{"operationId":"createDocument","summary":"Upload a document","description":"Stores a document for the slides agent to read, such as a brief, a report or meeting notes, as when you attach one in the chat in the app: pass its id in documentIds on sendReportMessage. Over MCP, send the document's whole text as Markdown in text. Over REST, you can instead send the file as multipart\/form-data in the file field: a .docx, .doc, .odt, .rtf, .pptx, .pdf, .txt or .md file of at most 100 MB and 100 pages, whose pages the agent can also look at. It joins your document library when you and your organization keep one.\n\nRequires the `slide_decks:write` scope.","tags":["Uploaded files"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"The document's name, without an extension: it is stored as a Markdown file named after it. The slides agent and the app's chat show it. From 1 to 200 characters.","examples":["Q3 strategy brief"]},"text":{"type":"string","minLength":1,"description":"The document's whole text, in Markdown: headings, lists and tables keep their structure for the agent. Send what the document says, not a summary of it.","examples":["# Q3 strategy brief\n\nRevenue grew 12% in EMEA..."]}},"required":["name","text"],"additionalProperties":false}},"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The document to upload, stored under its file name. Its name must end in `.docx`, `.doc`, `.odt`, `.rtf`, `.pptx`, `.pdf`, `.txt` or `.md`, and it can be at most 100 MB and 100 pages."}},"required":["file"]}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the document. Pass it in `documentIds` to `sendReportMessage`."},"name":{"type":"string","description":"The document's file name, such as `Q3 strategy brief.pdf`."},"pageCount":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How many pages the document has, which the agent can look at. `null` for a text or Markdown file."}},"required":["id","name","pageCount"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/datasets":{"post":{"operationId":"createDataset","summary":"Upload a file","description":"Stores a CSV for the slides agent to build slides from: a header row, then at least one data row, at most 10 MB. Add it to a report with addReportDatasheets. Over MCP the CSV is written into the tool call, so send large files to this REST endpoint instead. Or send an Excel workbook (.xlsx, at most 10 MB) as multipart\/form-data in the file field: it is stored as it is, with all its sheets, formatting and charts, and the user picks its sheets and ranges for a report in the app's editor. Legacy .xls, macro-enabled and password-protected workbooks are rejected. A workbook is read as saved: formulas show their saved results, and nothing is recalculated. When you have the file and a shell, send the file itself with createDatasetUpload instead of writing it into the tool call. List the sheets of a workbook with getDataset, then add a sheet or a range of one to a report with addReportDatasheets.\n\nRequires the `slide_decks:write` scope.","tags":["Uploaded files"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255,"description":"A name for the uploaded file, which its datasheet takes when you add the file to a report with `addReportDatasheets`. Leading and trailing spaces are removed, and a name containing a `\/` keeps only its last part: `exports\/Q3 pipeline` is stored as `Q3 pipeline`. From 1 to 255 characters.","examples":["Q3 pipeline"]},"csv":{"type":"string","minLength":1,"description":"The file's data, as CSV text: a header row naming the columns, then at least one row of data. With `replaceDataset`, it replaces the file's whole content, header included, and the uploaded file must be a CSV file. The header's names become the column names of the datasheets made from the file: a blank one becomes `Column N`, after the column's position, and a repeated one gets a `_2`, `_3` suffix. Values can be separated by commas, semicolons or tabs, detected from the header row. At most 10 MB.","examples":["region,revenue\nEMEA,1200000\nAmericas,2400000"]}},"required":["name","csv"],"additionalProperties":false}},"multipart\/form-data":{"schema":{"type":"object","properties":{"file":{"type":"string","format":"binary","description":"The Excel workbook to upload. With `createDataset`, it becomes a new uploaded file named after the file, such as `Q3 pipeline.xlsx`; with `replaceDataset`, it replaces the content of an uploaded workbook, which keeps its id and name. An uploaded workbook can't be added to a report with `addReportDatasheets`, which takes uploaded CSV files only. The file's name must end in `.xlsx`, and it can be at most 10 MB; legacy `.xls`, macro-enabled and password-protected workbooks are rejected."}},"required":["file"]}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the uploaded file. Pass it as `id` to `replaceDataset` and `deleteDataset` and, for a CSV file, as `datasetId` to `addReportDatasheets` to add it to a report."},"name":{"type":"string","description":"The uploaded file's name: the `name` it was created with for a CSV file, or the workbook's file name for an Excel workbook, such as `Q3 pipeline.xlsx`. Replacing the file's content doesn't change it."},"createdAt":{"description":"When the file was uploaded. Replacing its content doesn't change it.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the file's content was last replaced with `replaceDataset`, or when it was uploaded if it has never been replaced.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/data-guide":{"get":{"operationId":"getReportDataGuide","summary":"Get the data guide","description":"Read this once before you add or shape the data of a report: how to send a CSV or an Excel workbook and pick the range of a sheet, how to check a figure with queryReportData, how to shape data with previewReportDatasheetChanges, renderReportSlides and saveReportDatasheetChanges, and the query model those changes write. It needs no report.\n\nRequires the `slide_decks:read` scope.","tags":["Datasheets"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"guide":{"type":"string","description":"The guide, in Markdown: how to send a CSV or a workbook, pick a range of a sheet, check a figure with a query, shape data with datasheet changes and save it."}},"required":["guide"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/datasheets":{"get":{"operationId":"listReportDatasheets","summary":"List report datasheets","description":"The datasheets a report's charts and tables are built from, with their source and when each was last read. An entry whose `copyOf` is set repeats an earlier datasheet of the report, with the same sources and steps: it shows the same data and is read together with it, so count each piece of data once by skipping the entries with a `copyOf`. Only a datasheet a slide shows has a `lastBuiltAt`. A datasheet whose source is being read, which can take minutes for a large dashboard, has a `readingSince`: pass `waitSeconds` to wait for the reads to end, such as after a call answered `datasheet-source-still-reading`.\n\nRequires the `slide_decks:read` scope.","tags":["Datasheets"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"waitSeconds","in":"query","required":false,"description":"How long this call waits for the reads of the datasheets' sources still going on, those with a `readingSince`, to end, in seconds. It returns as soon as none is left, or as things stand once the time is up. A large dashboard can take several minutes to read, so keep calling it while a datasheet still has a `readingSince`: the read is going on. Defaults to `0`, which returns at once; at most `45`.","schema":{"default":0,"description":"How long this call waits for the reads of the datasheets' sources still going on, those with a `readingSince`, to end, in seconds. It returns as soon as none is left, or as things stand once the time is up. A large dashboard can take several minutes to read, so keep calling it while a datasheet still has a `readingSince`: the read is going on. Defaults to `0`, which returns at once; at most `45`.","type":"integer","minimum":0,"maximum":45}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the datasheet. Pass it as `datasheetId` to `getReportDatasheetData` to read its table (a `data` datasheet only), in `datasheetIds` on `startReportRun` to update only some datasheets, or in `datasheetIds` on `sendReportMessage` for the slides agent to use it."},"kind":{"type":"string","enum":["data","picture"],"description":"What the datasheet holds. `data`: a table, which `getReportDatasheetData` reads. `picture`: a picture of a dashboard, tab or chart, such as a dashboard added with `addReportDatasheets`, with no table to read. The slides agent can still use it when you pass it in `datasheetIds` on `sendReportMessage`, and `addReportDashboardElements` adds the charts of a Tableau or Power BI one as data."},"name":{"type":"string","description":"The datasheet's name, as shown in the report's editor, where editors can rename it. A datasheet added with `addReportDatasheets` starts out named after its uploaded file, its dashboard or dashboard tab, or its range, such as `A1:F20`."},"sourceType":{"anyOf":[{"type":"string","enum":["GoogleSheet","GoogleExcel","MicrosoftExcel","Tableau","Salesforce","Metabase","PowerBI","Looker","RollstackVariable","Lightdash","Omni","Sigma","Snowflake","Databricks","BigQuery","CsvUpload","XlsxUpload","ManualTable","Dbt"]},{"type":"null"}],"description":"The kind of source the datasheet reads; when it reads several, the kind of the first.\n\n- `Looker`, `Tableau`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma`: data from that BI tool, such as a dashboard, a tab or one of its charts.\n- `Salesforce`: a Salesforce report.\n- `Snowflake`, `Databricks`, `BigQuery`: a query run on that warehouse connection, or a table connected for the slides agent.\n- `GoogleSheet`, `GoogleExcel`, `MicrosoftExcel`: a sheet or range of a Google Sheets file, an Excel file in Google Drive, or an Excel file in OneDrive or SharePoint.\n- `CsvUpload`: a CSV file uploaded with `createDataset` or in the report's editor.\n- `XlsxUpload`: a sheet or range of an Excel workbook uploaded to Rollstack.\n- `ManualTable`: values typed into the report's editor, or the data of a chart imported from PowerPoint.\n- `RollstackVariable`: the report's own info, its Report info datasheet: its name, its variant's name in a burst, when it was last updated and its report parameters' values.\n\nDatasheets don't read `Dbt` sources, so expect none of them here. `null` when the datasheet reads no source, or Rollstack no longer has a record of its first source; deleting an uploaded file or a connection doesn't make it `null`."},"sourceName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name of what the datasheet reads, such as a dashboard tab, a range like `A1:F20`, or an uploaded file. When it reads several sources, the first one's. `null` in the same cases as `sourceType`."},"datasetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The uploaded file the datasheet reads, by the id `replaceDataset` takes, when its `sourceType` is `CsvUpload` or `XlsxUpload`. Replace the file, then start a run of the report, to bring new data into the slides drawn from it. Pass it in `copyFiles` on `duplicateReport` to give a copy of the report its own copy of the file. `null` for every other source."},"spreadsheetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The spreadsheet the datasheet reads, by Rollstack's id, when its `sourceType` is `GoogleSheet`, `GoogleExcel` or `MicrosoftExcel`. Pass it in `copyFiles` on `duplicateReport` to give a copy of the report its own copy of the file. It can be another member's spreadsheet, which `getSpreadsheet` doesn't open. `null` for every other source."},"readingSince":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the read of the datasheet's source still going on started, such as one a report run, `addReportDashboardElements` or `previewReportDatasheetChanges` started, which can take minutes for a large dashboard. A call that answered `datasheet-source-still-reading` left its read going: wait for it with `waitSeconds` rather than send that call again, which would start another read, and send it again once this is `null`. `null` when no read of its source is going on."},"lastReadAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When Rollstack last read the datasheet's source successfully and stored a fresh copy of its data; for a datasheet that reads several sources, the latest such read of any of them. `null` until a read succeeds."},"lastBuiltAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the datasheet's data was last applied to the report's slides, updating the charts, tables and pictures drawn from it. It is also set when only some of the elements drawn from it couldn't show the data (see `error`), since the others were updated. `null` when its current data hasn't been applied to the slides yet, for example while nothing in the report uses the datasheet."},"copyOf":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"When this datasheet is a copy of an earlier one of the report, with the same sources, steps and filter values, that one's `id`. Several elements can show one datasheet, but a report can still hold copies, for example from before that, or made when elements or reports were duplicated. Copies are read from the source together, once, and show the same data: read and change the original. `null` for a datasheet that is no copy."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the datasheet's latest update failed, while reading its source or applying its data to the slides, as a human-readable message. When the data couldn't be read, or couldn't be applied to any element, the slides keep showing the datasheet's last good data until an update succeeds. When only some elements couldn't show the data, those keep their last good data and the others show the new data, and `lastBuiltAt` is set. `null` when the latest update worked."}},"required":["id","kind","name","sourceType","sourceName","datasetId","spreadsheetId","readingSince","lastReadAt","lastBuiltAt","copyOf","error"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"addReportDatasheets","summary":"Add sources to report","description":"Adds sources to a report as datasheets, and answers their ids in the order of the sources. A source is a CSV file uploaded with createDataset, or a dashboard of a Looker, Metabase, Omni, Lightdash, Sigma, Tableau or Power BI connection: find it with searchDashboards, confirm it with the user, optionally check its tabs and charts with getDashboard, and add it by its connection, id and tabId from getDashboard's tabs, or from searchDashboards for a Sigma workbook found by a link (else the tab it opens on, a Power BI report's or Sigma workbook's first page). A dashboard comes in as one picture of the tab, read with the user's access to the connection, from which the slides agent can add its charts. To draw a Tableau or Power BI dashboard's figures yourself, list its charts with getReportDatasheet on that picture and add the ones you need as data with addReportDashboardElements. A source can also be a tabular or summary report of a Salesforce connection, found with searchDashboards and added by its connection and reportId: it comes in as a table of its rows, read with the user's access to the connection; a matrix or joined report is rejected. A source can also be a table or view of a Snowflake, Databricks or BigQuery connection, found with searchTables and added by its connection, database, schema and table: it stays in the warehouse, where the slides agent queries it with SQL with the user's access to the connection, as its default user when one is set, and the queries the agent saves run again on every update. A source can also be a range of a Google Sheets or Excel file the user added in the app: find the file with searchSpreadsheets, take the sheet's id from getSpreadsheet, and pass the range inside the sheet in A1 notation, like A1:F20. A range comes in as a table, read with the user's own Google or Microsoft account on every run. A source can also be a sheet or a range of an uploaded Excel workbook, whose sheets getDataset lists. A source can also be the report's own info (reportInfo: true): its name, its variant's name in a burst, when it was last updated and its report parameters' values, for text such as \"As of {{Last updated}}\"; a report has one, so adding it again answers its id. Pass the ids as datasheetIds on sendReportMessage for the slides agent to build slides from them. Only the report's editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Datasheets"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"sources":{"minItems":1,"maxItems":100,"type":"array","items":{"anyOf":[{"type":"object","properties":{"reportInfo":{"type":"boolean","const":true,"description":"The report's own info, its Report info datasheet: one row of the report's name (`Report name`), its variant's name in a burst (`Variant name`), when it was last updated (`Last updated`, a date) and one column per report parameter, named by the parameter's id and labeled with its name, holding its value. Bind a data-text to it for text such as \"As of {{Last updated}}\". A report has one: when it has it already, that one's id comes back.","examples":[true]}},"required":["reportInfo"],"additionalProperties":false},{"type":"object","properties":{"datasetId":{"type":"string","description":"The uploaded file to add: the `id` returned by `createDataset`. A CSV file comes in whole, as one table named after the file. An Excel workbook comes in one sheet at a time, so pass `sheetId` with it. It can be any uploaded file of the report's organization, including one another member uploaded.","examples":["b2c4d6e8-f0a1-4b3c-9d5e-7f9a1b3c5d7e"]},"sheetId":{"description":"For an uploaded workbook, the sheet to read: one of the `sheets[].id` values from `getDataset`. Required for a workbook, and rejected for a CSV file.","type":"string"},"range":{"description":"For an uploaded workbook, the cells to read from the sheet, in A1 notation without the sheet's name, such as `A3:H40`. The datasheet contains them as a table and is named after the range. Start it at the header row so the columns take its names; without a header, they are named `Column 1`, `Column 2` and so on. Omit it to read everything the sheet uses, in a datasheet named after the sheet: do that only when the sheet's first row is the header. Whole columns such as `A:F` aren't accepted.","examples":["A3:H40"],"type":"string"}},"required":["datasetId"],"additionalProperties":false},{"type":"object","properties":{"connectionType":{"type":"string","enum":["Looker","Metabase","Omni","Lightdash","Tableau","PowerBI","Sigma"],"description":"The type of the connection the dashboard is on: `Looker`, `Metabase`, `Omni`, `Lightdash`, `Sigma`, `Tableau` or `PowerBI`. It must match the connection's `type` in `listConnections`."},"connectionId":{"type":"string","description":"The connection the dashboard is on: the `id` of a connection from `listConnections`. You must have access to the connection in Rollstack.","examples":["c8e0a2b4-d6f8-4a0b-8c2d-4e6f8a0b2c4d"]},"dashboardId":{"type":"string","description":"The dashboard to add: the `id` of a dashboard from `searchDashboards` on this connection. For Tableau and Sigma, it is a workbook, and for Power BI, a report.","examples":["128"]},"tabId":{"description":"The tab to add: one of the `tabs[].id` values from `getDashboard`, which for Tableau are a workbook's views, for Power BI a report's pages and for Sigma a workbook's pages, or the `tabId` of a Sigma workbook `searchDashboards` found by a link. The datasheet is a picture of that tab, named after it. If omitted, Rollstack adds the tab the dashboard opens on (the first view or page for Tableau, Power BI and Sigma), or, for a dashboard without tabs such as an Omni dashboard, the whole dashboard, named after it. A tab the dashboard doesn't have is rejected.","examples":["12-overview"],"type":"string"}},"required":["connectionType","connectionId","dashboardId"],"additionalProperties":false},{"type":"object","properties":{"connectionType":{"type":"string","const":"Salesforce","description":"`Salesforce`. It must match the connection's `type` in `listConnections`."},"connectionId":{"type":"string","description":"The Salesforce connection the report is on: the `id` of a connection from `listConnections`. You must have access to the connection in Rollstack.","examples":["c8e0a2b4-d6f8-4a0b-8c2d-4e6f8a0b2c4d"]},"reportId":{"type":"string","description":"The report to add: the `id` of a `tabular` or `summary` report from `searchDashboards` on this connection. The datasheet contains the report's rows as a table, a summary report's with its groupings as their first columns, and is named after the report. A matrix or joined report is rejected.","examples":["00O5e000008abcdEAA"]}},"required":["connectionType","connectionId","reportId"],"additionalProperties":false},{"type":"object","properties":{"connectionType":{"type":"string","enum":["Snowflake","Databricks","BigQuery"],"description":"The type of the connection the table is on: `Snowflake`, `Databricks` or `BigQuery`. It must match the connection's `type` in `listConnections`."},"connectionId":{"type":"string","description":"The data warehouse connection the table is on: the `id` of a connection from `listConnections`. You must have your own access to the connection in Rollstack.","examples":["c8e0a2b4-d6f8-4a0b-8c2d-4e6f8a0b2c4d"]},"database":{"type":"string","minLength":1,"description":"The database the table is in, as `database` in `searchTables`."},"schema":{"type":"string","minLength":1,"description":"The schema the table is in, as `schema` in `searchTables`."},"table":{"type":"string","minLength":1,"description":"The table or view to add, as `table` in `searchTables`. The datasheet is named `database.schema.table`, and the slides agent queries it in the warehouse with SQL over all its rows.","examples":["ORDERS"]}},"required":["connectionType","connectionId","database","schema","table"],"additionalProperties":false},{"type":"object","properties":{"connectionType":{"type":"string","enum":["Looker","PowerBI","Tableau"],"description":"The type of the connection the model is on: `Looker`, `PowerBI` or `Tableau`. It must match the connection's `type` in `listConnections`."},"connectionId":{"type":"string","description":"The connection the model is on: the `id` of a connection from `listConnections`. You must have access to the connection in Rollstack, and for Tableau your own Tableau user on it.","examples":["c8e0a2b4-d6f8-4a0b-8c2d-4e6f8a0b2c4d"]},"modelId":{"type":"string","description":"The model to add: the `id` of a Looker explore, Power BI semantic model or Tableau data source from `searchModels` on this connection. The datasheet is named after it and holds no rows: pass its id as `datasheetIds` on `sendReportMessage`, and the slides agent queries the model in its BI tool for the data its slides need. A model the connection doesn't have is rejected.","examples":["ecommerce.order_items"]}},"required":["connectionType","connectionId","modelId"],"additionalProperties":false},{"type":"object","properties":{"spreadsheetId":{"type":"string","description":"The Google Sheets or Excel file to read from: the `id` of a file from `searchSpreadsheets`. It must be a file you added in the app yourself.","examples":["e6f8a0b2-c4d6-4e8f-9a0b-2c4d6e8f0a1b"]},"sheetId":{"type":"string","description":"The sheet the range is on: one of the `sheets[].id` values from `getSpreadsheet`. A sheet the file doesn't have is rejected.","examples":["0"]},"range":{"type":"string","description":"The cells to read from the sheet, in A1 notation without the sheet's name, such as `A1:F20`, or `B2` for a single cell. The datasheet contains them as a table and is named after the range. Start the range at the header row so the columns take its names; without a header, they are named `Column 1`, `Column 2` and so on. Hidden rows and columns are left out, and whole columns such as `A:F` aren't accepted.","examples":["A1:F20"]}},"required":["spreadsheetId","sheetId","range"],"additionalProperties":false}]},"description":"The data to add to the report, each source becoming one of its datasheets: the report's own info (`reportInfo`), an uploaded CSV file (`datasetId`), a sheet or range of an uploaded workbook (`datasetId`, `sheetId` and optionally `range`), a dashboard tab (`connectionType`, `connectionId`, `dashboardId` and optionally `tabId`), a Salesforce report (`connectionType`, `connectionId` and `reportId`), a Snowflake, Databricks or BigQuery table (`connectionType`, `connectionId`, `database`, `schema` and `table`), a Looker explore, Power BI semantic model or Tableau data source (`connectionType`, `connectionId` and `modelId`), or a range of a spreadsheet (`spreadsheetId`, `sheetId` and `range`). An uploaded file, a Salesforce report or a range comes in as a table, a warehouse table stays in the warehouse and a model in its BI tool for the slides agent to query, and a dashboard tab comes in as a picture of the tab. If any other source can't be added, none of them is. From 1 to 100 sources."}},"required":["sources"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"datasheetIds":{"type":"array","items":{"type":"string"},"description":"Unique identifiers of the new datasheets, one per source, in the same order as `sources`. Pass them as `datasheetIds` on `sendReportMessage` for the slides agent to build slides from them."}},"required":["datasheetIds"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/datasheets\/{datasheetId}":{"get":{"operationId":"getReportDatasheet","summary":"Get a datasheet","description":"What a datasheet's data is written as: its query, in the shape set-query takes, its one SQL statement, or its join and the steps after it, and its formats. Read it before you change a datasheet with previewReportDatasheetChanges: set-query replaces the whole query, so start from this one. For the picture of a Tableau view or Power BI page added with addReportDatasheets, it also lists the charts on it, which addReportDashboardElements adds as data. Only the report's editors may.\n\nRequires the `slide_decks:read` scope.","tags":["Datasheets"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"datasheetId","in":"path","required":true,"description":"One of this report's datasheets, by its `id` in `listReportDatasheets`.","schema":{"type":"string","description":"One of this report's datasheets, by its `id` in `listReportDatasheets`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"The datasheet's id."},"name":{"type":"string","description":"The datasheet's name, as the report's editor shows it."},"kind":{"type":"string","enum":["data","picture"],"description":"`data` for a table, `picture` for an image, which has no query."},"elements":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"What to pass as `ref` to `addReportDashboardElements` to add this chart."},"name":{"type":"string","description":"The chart's name on the dashboard."},"type":{"type":"string","description":"Its kind in the dashboard's tool, such as a Tableau `worksheet` or `legend`."},"reads":{"type":"array","items":{"type":"string","enum":["data","picture"]},"description":"What it can be added as: `data` for its table, `picture` for its image."},"datasheetIds":{"type":"array","items":{"type":"string"},"description":"The report's datasheets that already read it with the dashboard's filters, to use instead of adding it again."}},"required":["ref","name","type","reads","datasheetIds"],"additionalProperties":false}},{"type":"null"}],"description":"For the picture of a whole Tableau view or Power BI page, the charts on it, which `addReportDashboardElements` adds as data or pictures. `null` for any other datasheet. Listing them takes the dashboard's picture when it never had one, which can take minutes: past the wait the call answers that the source is still being read, so wait for the read with `listReportDatasheets` and its `waitSeconds`, then call it again."},"elementsNote":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why `elements` is empty or partial, such as charts not listed yet, or `null`."},"query":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}],"description":"Its data as a query, the Edit data editor's model, in the shape `set-query` takes: change what you need and send it whole. `null` when its data is SQL or a join."},"sql":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Its data as one SQL statement over its reads, or `null`."},"ops":{"anyOf":[{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},{"type":"null"}],"description":"For a datasheet that joins its reads: the join and the steps after it, each by the `ref` `set-ops` keeps it by. `null` for any other."},"formats":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"format":{"type":"string"}},"required":["column","format"],"additionalProperties":false},"description":"How its columns' numbers are shown: a numfmt pattern for each output column."}},"required":["id","name","kind","elements","elementsNote","query","sql","ops","formats"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"removeReportDatasheet","summary":"Remove datasheet from report","description":"Removes a datasheet the report's slides no longer show, such as a source that was added and not used, or one whose read keeps failing. A datasheet a chart, table, picture or sentence still shows is refused: change or remove that slide first. The source itself, such as the dashboard or the uploaded file, is not touched. Only the report's editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Datasheets"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"datasheetId","in":"path","required":true,"description":"One of this report's datasheets, by its `id` in `listReportDatasheets`.","schema":{"type":"string","description":"One of this report's datasheets, by its `id` in `listReportDatasheets`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"removed":{"type":"array","items":{"type":"string"},"description":"The datasheet removed."}},"required":["removed"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/datasheets\/{datasheetId}\/data":{"get":{"operationId":"getReportDatasheetData","summary":"Get datasheet data","description":"The table a report's chart is drawn from: the datasheet's steps run over the copies stored at its sources' last reads; the source is never queried. Only the report's editors may read it, the people who already see this table in the report's Edit data view in Rollstack: it can hold columns and rows the slides don't show, so viewers of the report are refused. Fails for a `picture` datasheet (its `kind` in `listReportDatasheets`), which has no table. Also fails until every source it reads has been read, after a source's latest read failed, and once a stored copy expires, 30 days after its read. At most 30 reads a minute per user.\n\nRequires the `slide_decks:read` scope.","tags":["Datasheets"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"datasheetId","in":"path","required":true,"description":"The datasheet whose table to read: an `id` from `listReportDatasheets`, or one of the `datasheetIds` returned by `addReportDatasheets`. It must be one of this report's datasheets. A datasheet that reads a picture, such as a dashboard tab added with `addReportDatasheets`, has no table, so the request fails: add the tab's charts as data with `addReportDashboardElements`.","schema":{"type":"string","description":"The datasheet whose table to read: an `id` from `listReportDatasheets`, or one of the `datasheetIds` returned by `addReportDatasheets`. It must be one of this report's datasheets. A datasheet that reads a picture, such as a dashboard tab added with `addReportDatasheets`, has no table, so the request fails: add the tab's charts as data with `addReportDashboardElements`."}},{"name":"limit","in":"query","required":false,"description":"The maximum number of rows to return, starting from the first row of the table. If the table has more, `truncated` is `true`. Can range from `1` to `1000`. Defaults to `200`.","schema":{"default":200,"description":"The maximum number of rows to return, starting from the first row of the table. If the table has more, `truncated` is `true`. Can range from `1` to `1000`. Defaults to `200`.","type":"integer","minimum":1,"maximum":1000}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The column's name in the datasheet's table, which the report's charts and tables use to refer to it. Unless the datasheet renames it, a column read from an uploaded file or a spreadsheet range is named after its header; a blank header becomes `Column N`, after the column's position, and a repeated one gets a `_2`, `_3` suffix."},"label":{"description":"The column's display name, when its source gives one, such as a field's label in Looker or Metabase. Charts and tables drawn from the datasheet show it instead of `name`, unless a table renames the column. Omitted when the column has none.","type":"string"},"type":{"type":"string","enum":["number","date","string","boolean"],"description":"What the column's cells contain: `number` for numbers, `date` for dates and times, `string` for text, and `boolean` for `true` or `false`. Any cell can also be `null` when it is empty."}},"required":["name","type"],"additionalProperties":false},"description":"The columns of the table, in the same order as the cells of each row in `rows`."},"rows":{"type":"array","items":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"description":"The rows of the table, starting from the first, at most `limit` of them. Each row is an array of cells in the order of `columns`. An empty cell is `null`, and a `date` cell is an ISO 8601 string in UTC, at midnight when the source gives a day without a time."},"stacking":{"description":"How the chart in the datasheet's source stacks its series, such as a Looker, Metabase or Power BI chart, or a chart imported from PowerPoint. Area, bar and column charts drawn from the datasheet stack the same way, unless their own Stacking setting overrides it. `none` doesn't stack the series, `stacked` piles them on top of one another, and `percent` piles them up to 100% so each shows its share of the total. Omitted when the source sets no stacking, as with an uploaded file or a spreadsheet range; charts then don't stack unless set to.","type":"string","enum":["none","stacked","percent"]},"totalRow":{"type":"boolean","const":true},"subtotals":{"description":"When the datasheet's query adds subtotals: `rowFields` are the columns its rows are grouped by, outermost first, and `levels` has one number per row in `rows`, how many of those columns the row is grouped by. A row grouped by fewer than all of them is a subtotal above its group's rows, and `0` is the total row. Charts leave those rows out. Omitted without subtotals.","type":"object","properties":{"rowFields":{"type":"array","items":{"type":"string"}},"levels":{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["rowFields","levels"],"additionalProperties":false},"rowFields":{"type":"array","items":{"type":"string"}},"truncated":{"type":"boolean","description":"Whether the table has more rows than `limit`, so `rows` doesn't contain all of them. Raise `limit` to get more, up to the first `1000` rows."},"readAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","description":"When Rollstack read the source data the table is built from. For a datasheet that reads several sources, the oldest of those reads."}},"required":["columns","rows","truncated","readAt"],"additionalProperties":false,"description":"The datasheet's table: the data Rollstack stored at its sources' latest reads, after the datasheet's own transformations, such as filters, joins, pivots or SQL. The report's charts and tables draw from it, and it can contain columns and rows the slides don't show."}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/datasheets\/{datasheetId}\/elements":{"post":{"operationId":"addReportDashboardElements","summary":"Add dashboard charts to report","description":"Adds charts of a Tableau view or Power BI page the report holds as a picture, each as a datasheet of its own: its data, to read with getReportDatasheetData or queryReportData and draw on a slide, its picture, or both. Pass the picture's datasheet id, from addReportDatasheets or listReportDatasheets, and the refs of the charts getReportDatasheet lists for it. Each chart is read with the dashboard's filters and the user's access to the connection, and a chart the report already reads that way is reused. Reading a dashboard can take minutes: past the wait the call answers that the source is still being read, and the read goes on. Wait for it with listReportDatasheets and waitSeconds until none of the report's datasheets has a readingSince, then send the same call again, which reuses what the first one added and read. It runs one at a time with your queryReportData, previewReportDatasheetChanges and saveReportDatasheetChanges calls: send it once they answer. Only the report's editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Datasheets"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"datasheetId","in":"path","required":true,"description":"One of this report's datasheets, by its `id` in `listReportDatasheets`.","schema":{"type":"string","description":"One of this report's datasheets, by its `id` in `listReportDatasheets`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"elements":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"description":"A chart's `ref` from the `elements` `getReportDatasheet` lists for this dashboard. For a table Tableau builds from several worksheets side by side, the refs of those worksheets joined by commas, like `12,15,18`, add it as one."},"as":{"type":"string","enum":["data","picture","both"],"description":"`data` for its table, to read with `getReportDatasheetData` and draw as a chart, table or figure on a slide; `picture` for its image, to place on a slide as it looks; `both` for the two. Ask only for a read the element lists in its `reads`."}},"required":["ref","as"],"additionalProperties":false},"description":"The charts to add, only the ones the slides need, at most 12 a call."}},"required":["elements"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"elements":{"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","description":"The `ref` you passed."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The chart's name on the dashboard, `null` when it has none."},"dataDatasheetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The datasheet of its table, a new one or the one the report already had for this chart with the dashboard's filters. `null` when you asked only for its picture, or when it was refused."},"pictureDatasheetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The datasheet of its picture, `null` when you asked only for its data, or when it was refused."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it was refused, or why its data or picture could not be read, `null` when nothing went wrong."}},"required":["ref","name","dataDatasheetId","pictureDatasheetId","error"],"additionalProperties":false},"description":"Each chart you asked for, in the order of `elements`."}},"required":["elements"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/datasheets\/changes\/preview":{"post":{"operationId":"previewReportDatasheetChanges","summary":"Preview datasheet changes","description":"Tries changes to a report's datasheets, to shape data before it goes on a slide: a new datasheet, a query, steps after a join, a read type, an unpivot. It runs every datasheet the changes touch over the data stored at the sources' last reads and saves nothing, not even a new datasheet. Answers each datasheet's columns and five sample rows, the ids a new datasheet gets, and the revisions to send to saveReportDatasheetChanges. A change that fails answers valid false with its reason, naming the datasheet and step: fix it and preview again. Draw a slide with the same changes by sending them to renderReportSlides. Only the report's editors may. Your previews run one at a time, together with your queryReportData and saveReportDatasheetChanges calls and the renderReportSlides calls that carry datasheetChanges: send the next only once this one answers, never several at once, and try several datasheets' changes in one preview. At most 30 previews and queryReportData calls a minute per user, counted together.\n\nRequires the `slide_decks:write` scope.","tags":["Datasheets"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"changes":{"minItems":1,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"create"},"temporaryId":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,63}$","description":"A stable id for the new datasheet, which later changes in this patch reference it by"},"name":{"type":"string","minLength":1,"description":"The datasheet's name"},"reads":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$","description":"The name SQL reads this element by in FROM\/JOIN, and ops name it by as a ref"},"datasheetRef":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"An existing datasheet that reads one element: the new datasheet reads that element, with its filters"},"readType":{"description":"Omit to read it as that datasheet does","anyOf":[{"type":"string","enum":["aggregated","raw"]},{"type":"null"}]}},"required":["alias","datasheetRef"],"additionalProperties":false},"description":"The elements it reads, each once: the one a query reads, or those a join reads"},"parameters":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"parameter":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"integer"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"number"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"boolean"},"value":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"date"},"value":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"timestamp"},"value":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false}]}},"required":["key","parameter"],"additionalProperties":false},"description":"User-controlled periods, limits, thresholds and selections: SQL reads them as columns of the params input, a step as {\"type\":\"parameter\",\"key\":\"<key>\"}"},"query":{"description":"The data as the Edit data editor builds it, over the one read; give query, or ops over several reads","anyOf":[{"type":"object","properties":{"customFields":{"description":"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(); diff_days between two dates, then averaged; to_number() of a number a sheet stores as text (\"120,936\"), so it sums and sorts","maxItems":20,"type":"array","items":{"type":"object","properties":{"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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_total(), which read other rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["formula","as"],"additionalProperties":false}},"dimensions":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"The columns to group by"},"measures":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which counts rows"},"as":{"description":"Omit for the default name, such as \"Sum of Sales\"","type":"string","minLength":1,"maxLength":255},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column"],"additionalProperties":false}},"pivots":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"Dimensions whose values become columns, outer first: each level splits the one above; empty for none"},"calculations":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest ranks 1"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","direction"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"The query's only dimension, such as a month, by its name before renames: the rows are ordered by it, oldest first"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","orderBy"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\"). It reads the dimensions and measures, never another calculation: write that calculation's formula out in this one instead"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["fn","formula","as"],"additionalProperties":false}]}},"columnOrder":{"description":"Every column once, by its name before renames, in the order to show them, removed columns optional; omit for dimensions, measures, then calculations","maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"pivotLayout":{"description":"Omit for the default: columns in the order their values first appear","type":"object","properties":{"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"}},"required":["columns","nullLabel","fill"],"additionalProperties":false},"filters":{"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]},"description":"All must hold"},"renames":{"description":"Output columns under another name","minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}},"sorts":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column, by its name before renames; a split's cell by its values"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]}},"required":["column","direction"],"additionalProperties":false},"description":"Columns to sort by, the first first, each next one breaking ties; empty for none"},"limit":{"anyOf":[{"anyOf":[{"type":"integer","minimum":1,"maximum":100000},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},{"type":"null"}],"description":"Rows to keep: a number, an integer parameter, or null for all"},"limitFrom":{"type":"string","enum":["start","end"]},"totals":{"description":"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 none","type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false},"formats":{"description":"numfmt patterns by output column","maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false}},"columnChoice":{"description":"Which columns the rows show: those to leave out, or the only ones to show. Omit for every column","type":"object","properties":{"kind":{"type":"string","enum":["removed","kept"],"description":"removed: the columns to leave out of the rows while keeping the grouping, e.g. group by region and month but show no region column. kept: only for rows that aren't grouped, the only source columns to show, in this order; a column added to the source later stays out"},"columns":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"By their name before renames, each once; a split's column is named by its values"}},"required":["kind","columns"],"additionalProperties":false},"keepGroupsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsBeforeLimit":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["dimensions","measures","pivots","filters","sorts","limit"],"additionalProperties":false},{"type":"null"}]},"ops":{"description":"Only over several reads: a join step over every read first, naming each read in its inputs (from op, ref the read alias), then steps","anyOf":[{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":64,"description":"An existing op id to keep that op, or a new short name"},"title":{"description":"Omit to keep a kept op's title; a step op without one shows its step summary","anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"inputs":{"description":"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 as `input`; a new first op reads the datasheet's one read, as `source` or the read's alias","anyOf":[{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"alias":{"description":"SQL ops: the name the statement reads this input by","anyOf":[{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},{"type":"null"}]},"from":{"type":"string","enum":["previous","op"],"description":"previous: the op above (above the first op, the datasheet's one read); op: the one ref names"},"ref":{"description":"op: the ref of an earlier op in this list, or a read's operation id or alias","anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["from"],"additionalProperties":false}},{"type":"null"}]},"step":{"description":"A step op's call; on a kept op, send it only to change it","anyOf":[{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"select"},"params":{"type":"object","properties":{"mode":{"type":"string","enum":["keep","drop"],"description":"keep: exactly these columns, in this order. drop: every column but these"},"columns":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"optional":{"description":"skip a named column that isn't there (in either mode), as a split's column is once its value is gone","type":"boolean"}},"required":["mode","columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"rename"},"params":{"type":"object","properties":{"renames":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}}},"required":["renames"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"filter"},"params":{"type":"object","properties":{"match":{"type":"string","enum":["all","any"]},"conditions":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["match","conditions"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"sort"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]},"optional":{"description":"skip this key when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["column","direction","nulls"],"additionalProperties":false}}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"limit"},"params":{"type":"object","properties":{"count":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"integer","minimum":1,"maximum":100000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"from":{"type":"string","enum":["start","end"]}},"required":["count","from"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"aggregate"},"params":{"type":"object","properties":{"groupBy":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}]},"as":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket","as"],"additionalProperties":false},"description":"Empty gives one row, e.g. a KPI"},"metrics":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column","as"],"additionalProperties":false}},"totals":{"type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false}},"required":["groupBy","metrics"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"pivot"},"params":{"type":"object","properties":{"rows":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns kept as rows, one row per combination"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"Column whose values become output columns"},"values":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"label":{"type":"string","minLength":1,"maxLength":255}},"required":["fn","column","label"],"additionalProperties":false}},"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"},"thenBy":{"description":"Columns split under column, outer to inner, discover mode only: one output column per combination the data has","minItems":1,"maxItems":2,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}}},"required":["rows","column","values","columns","nullLabel","fill"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"window"},"params":{"type":"object","properties":{"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest value ranks 1"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","direction","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A number column"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"Column the rows are ordered by, oldest first, such as a month"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","orderBy","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\")"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","formula","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false}]},"description":"Columns added after the input columns, each over all the rows this step receives"}},"required":["columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"join"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns every input has, whose values name one row of each input, such as a region and a month"}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false}]},{"type":"null"}]}},"required":["ref"],"additionalProperties":false}},{"type":"null"}]},"formats":{"description":"With ops; a query has its own formats","anyOf":[{"maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false},"description":"numfmt formats by output column: give each renamed or computed number or date column one"},{"type":"null"}]},"sql":{"description":"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`)","anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["type","temporaryId","name","reads","parameters"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-query"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"parameters":{"description":"Replaces the datasheet's complete parameter set; omit to keep it","anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"parameter":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"integer"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"number"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"boolean"},"value":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"date"},"value":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"timestamp"},"value":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false}]}},"required":["key","parameter"],"additionalProperties":false}},{"type":"null"}]},"query":{"type":"object","properties":{"customFields":{"description":"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(); diff_days between two dates, then averaged; to_number() of a number a sheet stores as text (\"120,936\"), so it sums and sorts","maxItems":20,"type":"array","items":{"type":"object","properties":{"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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_total(), which read other rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["formula","as"],"additionalProperties":false}},"dimensions":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"The columns to group by"},"measures":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which counts rows"},"as":{"description":"Omit for the default name, such as \"Sum of Sales\"","type":"string","minLength":1,"maxLength":255},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column"],"additionalProperties":false}},"pivots":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"Dimensions whose values become columns, outer first: each level splits the one above; empty for none"},"calculations":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest ranks 1"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","direction"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"The query's only dimension, such as a month, by its name before renames: the rows are ordered by it, oldest first"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","orderBy"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\"). It reads the dimensions and measures, never another calculation: write that calculation's formula out in this one instead"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["fn","formula","as"],"additionalProperties":false}]}},"columnOrder":{"description":"Every column once, by its name before renames, in the order to show them, removed columns optional; omit for dimensions, measures, then calculations","maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"pivotLayout":{"description":"Omit for the default: columns in the order their values first appear","type":"object","properties":{"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"}},"required":["columns","nullLabel","fill"],"additionalProperties":false},"filters":{"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]},"description":"All must hold"},"renames":{"description":"Output columns under another name","minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}},"sorts":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column, by its name before renames; a split's cell by its values"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]}},"required":["column","direction"],"additionalProperties":false},"description":"Columns to sort by, the first first, each next one breaking ties; empty for none"},"limit":{"anyOf":[{"anyOf":[{"type":"integer","minimum":1,"maximum":100000},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},{"type":"null"}],"description":"Rows to keep: a number, an integer parameter, or null for all"},"limitFrom":{"type":"string","enum":["start","end"]},"totals":{"description":"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 none","type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false},"formats":{"description":"numfmt patterns by output column","maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false}},"columnChoice":{"description":"Which columns the rows show: those to leave out, or the only ones to show. Omit for every column","type":"object","properties":{"kind":{"type":"string","enum":["removed","kept"],"description":"removed: the columns to leave out of the rows while keeping the grouping, e.g. group by region and month but show no region column. kept: only for rows that aren't grouped, the only source columns to show, in this order; a column added to the source later stays out"},"columns":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"By their name before renames, each once; a split's column is named by its values"}},"required":["kind","columns"],"additionalProperties":false},"keepGroupsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsBeforeLimit":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["dimensions","measures","pivots","filters","sorts","limit"],"additionalProperties":false,"description":"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 from"}},"required":["type","datasheetRef","query"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-ops"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"parameters":{"description":"Replaces the datasheet's complete parameter set; omit to keep it","anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"parameter":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"integer"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"number"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"boolean"},"value":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"date"},"value":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"timestamp"},"value":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false}]}},"required":["key","parameter"],"additionalProperties":false}},{"type":"null"}]},"ops":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":64,"description":"An existing op id to keep that op, or a new short name"},"title":{"description":"Omit to keep a kept op's title; a step op without one shows its step summary","anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"inputs":{"description":"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 as `input`; a new first op reads the datasheet's one read, as `source` or the read's alias","anyOf":[{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"alias":{"description":"SQL ops: the name the statement reads this input by","anyOf":[{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},{"type":"null"}]},"from":{"type":"string","enum":["previous","op"],"description":"previous: the op above (above the first op, the datasheet's one read); op: the one ref names"},"ref":{"description":"op: the ref of an earlier op in this list, or a read's operation id or alias","anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["from"],"additionalProperties":false}},{"type":"null"}]},"step":{"description":"A step op's call; on a kept op, send it only to change it","anyOf":[{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"select"},"params":{"type":"object","properties":{"mode":{"type":"string","enum":["keep","drop"],"description":"keep: exactly these columns, in this order. drop: every column but these"},"columns":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"optional":{"description":"skip a named column that isn't there (in either mode), as a split's column is once its value is gone","type":"boolean"}},"required":["mode","columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"rename"},"params":{"type":"object","properties":{"renames":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}}},"required":["renames"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"filter"},"params":{"type":"object","properties":{"match":{"type":"string","enum":["all","any"]},"conditions":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["match","conditions"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"sort"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]},"optional":{"description":"skip this key when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["column","direction","nulls"],"additionalProperties":false}}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"limit"},"params":{"type":"object","properties":{"count":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"integer","minimum":1,"maximum":100000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"from":{"type":"string","enum":["start","end"]}},"required":["count","from"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"aggregate"},"params":{"type":"object","properties":{"groupBy":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}]},"as":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket","as"],"additionalProperties":false},"description":"Empty gives one row, e.g. a KPI"},"metrics":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column","as"],"additionalProperties":false}},"totals":{"type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false}},"required":["groupBy","metrics"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"pivot"},"params":{"type":"object","properties":{"rows":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns kept as rows, one row per combination"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"Column whose values become output columns"},"values":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"label":{"type":"string","minLength":1,"maxLength":255}},"required":["fn","column","label"],"additionalProperties":false}},"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"},"thenBy":{"description":"Columns split under column, outer to inner, discover mode only: one output column per combination the data has","minItems":1,"maxItems":2,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}}},"required":["rows","column","values","columns","nullLabel","fill"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"window"},"params":{"type":"object","properties":{"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest value ranks 1"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","direction","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A number column"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"Column the rows are ordered by, oldest first, such as a month"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","orderBy","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\")"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","formula","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false}]},"description":"Columns added after the input columns, each over all the rows this step receives"}},"required":["columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"join"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns every input has, whose values name one row of each input, such as a region and a month"}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false}]},{"type":"null"}]}},"required":["ref"],"additionalProperties":false},"description":"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-query"},"formats":{"description":"Replaces the datasheet's formats; omit to keep them","anyOf":[{"maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false},"description":"numfmt formats by output column: give each renamed or computed number or date column one"},{"type":"null"}]}},"required":["type","datasheetRef","ops"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-read-type"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"readType":{"type":"string","enum":["aggregated","raw","image"],"description":"aggregated: its data, as the tool displays it; raw: its tidy read, to transform; image: its picture"}},"required":["type","datasheetRef","readType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-unpivot"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"unpivot":{"description":"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 one","anyOf":[{"anyOf":[{"oneOf":[{"type":"object","properties":{"rows":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":255,"description":"What the name column says on this row, such as the column's name or \"2022\""},"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"description":"The input column for each of values, in order; null leaves that value empty on this row"}},"required":["label","columns"],"additionalProperties":false},"description":"One output row per input row and entry, in this order; the input columns no entry names repeat on each"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The column that holds each row's label, such as \"Year\""},"values":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"The columns the values go in: one, such as \"Value\", or one per measure"},"mode":{"type":"string","const":"fixed","description":"Its entries name the columns turned into rows: for several values per period"}},"required":["rows","name","values","mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover","description":"Every column the range has when it is read, but the ones in except, becomes a row labelled with its name: for one value per period, so a period the sheet adds or renames still comes through"},"except":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Every column that is not turned into a row, left as it is: the row labels, the column a fill down adds, a total the sheet keeps beside its periods"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The column that holds each row's label, such as \"Year\""},"value":{"type":"string","minLength":1,"maxLength":255,"description":"The one column the values go in, such as \"Value\""}},"required":["mode","except","name","value"],"additionalProperties":false}]},{"type":"object","properties":{"rows":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":255,"description":"What the name column says on this row, such as the column's name or \"2022\""},"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"description":"The input column for each of values, in order; null leaves that value empty on this row"}},"required":["label","columns"],"additionalProperties":false},"description":"One output row per input row and entry, in this order; the input columns no entry names repeat on each"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The column that holds each row's label, such as \"Year\""},"values":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"The columns the values go in: one, such as \"Value\", or one per measure"}},"required":["rows","name","values"],"additionalProperties":false,"description":"Mode fixed, as written before unpivots had a mode"}]},{"type":"null"}]},"fillDown":{"description":"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 one","anyOf":[{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"The column holding the row labels, headings included"},"into":{"type":"string","minLength":1,"maxLength":255,"description":"The new column the headings fill, such as \"Section\""}},"required":["column","into"],"additionalProperties":false},{"type":"null"}]},"removeRows":{"description":"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","anyOf":[{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},{"type":"null"}]}},"required":["type","datasheetRef"],"additionalProperties":false}]},"description":"The changes to the report's datasheets, applied in order: `create` for a datasheet the report doesn't have yet (a query, one SQL statement, or a join and steps over elements that datasheets of the report read already, under a `temporaryId` you choose), `set-query` or `set-ops` for the data of one it has (`getReportDatasheet` gives what it is now), `set-read-type` and `set-unpivot`. Each datasheet is its reads followed by the ops over them: call `getReportDataGuide` for the query model, SQL and joins. A `temporaryId` can be used once: after a save, create the next datasheet under another."}},"required":["changes"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","oneOf":[{"type":"object","properties":{"valid":{"type":"boolean","const":true},"resolvedDatasheetIds":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"The id of each datasheet a `create` makes, by its `temporaryId`. Place a new datasheet on a slide by this id: `renderReportSlides` draws it with the same changes and `saveReportDatasheetChanges` saves it under it."},"resolvedOperationIds":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"The id of each op a change adds, by its `ref`."},"removedOperations":{"type":"array","items":{"type":"object","properties":{"datasheetId":{"type":"string"},"operationId":{"type":"string"},"summary":{"type":"string"}},"required":["datasheetId","operationId","summary"],"additionalProperties":false},"description":"The existing ops a change drops, so you can check what it replaced."},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"}},"required":["name","type"],"additionalProperties":false}},"rows":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"boolean"},{"type":"number"},{"type":"string"},{"type":"null"}]}}},"totalRowCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"truncated":{"type":"boolean"}},"required":["columns","rows","totalRowCount","truncated"],"additionalProperties":false},"description":"Each changed datasheet by id, with its columns and five sample rows."},"revisions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"The revision of each existing datasheet the changes edit, to send back to `saveReportDatasheetChanges`."}},"required":["valid","resolvedDatasheetIds","resolvedOperationIds","removedOperations","outputs","revisions"],"additionalProperties":false},{"type":"object","properties":{"valid":{"type":"boolean","const":false},"error":{"type":"string","description":"Why the changes failed, naming the datasheet, op and field when it can. Fix them and preview again."}},"required":["valid","error"],"additionalProperties":false}]}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/data\/query":{"post":{"operationId":"queryReportData","summary":"Query report data","description":"Runs one read-only SQL query over the tables of a report's datasheets, to check a figure before it goes on a slide or to explore data before shaping it. It reads the copies stored at the sources' last reads, never a source, and saves nothing: a datasheet's table is the one getReportDatasheetData answers. The query runs in an isolated in-memory engine that holds only this report's datasheet tables: it can't reach the customer's database, other reports, files or the network, and anything but one SELECT or WITH is refused before it runs. Only the report's editors may. At most 200 rows and 30 seconds a query. Your queries run one at a time, together with your previewReportDatasheetChanges and saveReportDatasheetChanges calls and the renderReportSlides calls that carry datasheetChanges: send the next only once this one answers, never several at once, and check several figures in one query, as columns of one row or rows of a UNION ALL. At most 30 queries and previewReportDatasheetChanges calls a minute per user, counted together.\n\nRequires the `slide_decks:write` scope.","tags":["Datasheets"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"sql":{"type":"string","minLength":1,"maxLength":20000,"description":"One read-only DuckDB query (`SELECT` or `WITH`). Its tables are the report's datasheets, named by their `id` from `listReportDatasheets` in double quotes, as in `SELECT region, SUM(revenue) AS revenue FROM \"<id>\" GROUP BY region`. A column is a number when every value is one, else text, dates included: `CAST` an ISO date (`YYYY-MM-DD`) to `DATE` before `year()`, `date_trunc()` or date arithmetic. Give every computed column a name with `AS`."}},"required":["sql"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"columns":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The column's name in the datasheet's table, which the report's charts and tables use to refer to it. Unless the datasheet renames it, a column read from an uploaded file or a spreadsheet range is named after its header; a blank header becomes `Column N`, after the column's position, and a repeated one gets a `_2`, `_3` suffix."},"label":{"description":"The column's display name, when its source gives one, such as a field's label in Looker or Metabase. Charts and tables drawn from the datasheet show it instead of `name`, unless a table renames the column. Omitted when the column has none.","type":"string"},"type":{"type":"string","enum":["number","date","string","boolean"],"description":"What the column's cells contain: `number` for numbers, `date` for dates and times, `string` for text, and `boolean` for `true` or `false`. Any cell can also be `null` when it is empty."}},"required":["name","type"],"additionalProperties":false},"description":"The columns of the table, in the same order as the cells of each row in `rows`."},"rows":{"type":"array","items":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"}]}},"description":"The rows of the table, starting from the first, at most `limit` of them. Each row is an array of cells in the order of `columns`. An empty cell is `null`, and a `date` cell is an ISO 8601 string in UTC, at midnight when the source gives a day without a time."},"totalRow":{"type":"boolean","const":true},"subtotals":{"description":"When the datasheet's query adds subtotals: `rowFields` are the columns its rows are grouped by, outermost first, and `levels` has one number per row in `rows`, how many of those columns the row is grouped by. A row grouped by fewer than all of them is a subtotal above its group's rows, and `0` is the total row. Charts leave those rows out. Omitted without subtotals.","type":"object","properties":{"rowFields":{"type":"array","items":{"type":"string"}},"levels":{"type":"array","items":{"type":"integer","minimum":0,"maximum":9007199254740991}}},"required":["rowFields","levels"],"additionalProperties":false},"rowFields":{"type":"array","items":{"type":"string"}},"truncated":{"type":"boolean","description":"Whether the table has more rows than `limit`, so `rows` doesn't contain all of them. Raise `limit` to get more, up to the first `1000` rows."}},"required":["columns","rows","truncated"],"additionalProperties":false,"description":"The query's table, at most 200 rows, so aggregate in SQL rather than reading raw rows. Nothing it answers is saved."}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/datasheets\/changes":{"post":{"operationId":"saveReportDatasheetChanges","summary":"Save datasheet changes","description":"Saves changes to a report's datasheets that you tried with previewReportDatasheetChanges: send the same changes with the revisions it answered. Nothing is saved when a datasheet they edit changed since, or when they fail: the answer says why, and you preview again. The charts and tables on slides that show a changed datasheet are read again, and a new datasheet is placed by the id it answers and the slides saved with saveReportSlides. Take the save back by restoring versionBeforeId with restoreReportVersion. It runs one at a time with your queryReportData and previewReportDatasheetChanges calls and the renderReportSlides calls that carry datasheetChanges: send it only once those have answered. Only the report's editors may. Counts against the 20 renders and saves a minute per user.\n\nRequires the `slide_decks:write` scope.","tags":["Datasheets"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"changes":{"minItems":1,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"create"},"temporaryId":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,63}$","description":"A stable id for the new datasheet, which later changes in this patch reference it by"},"name":{"type":"string","minLength":1,"description":"The datasheet's name"},"reads":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"alias":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$","description":"The name SQL reads this element by in FROM\/JOIN, and ops name it by as a ref"},"datasheetRef":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"An existing datasheet that reads one element: the new datasheet reads that element, with its filters"},"readType":{"description":"Omit to read it as that datasheet does","anyOf":[{"type":"string","enum":["aggregated","raw"]},{"type":"null"}]}},"required":["alias","datasheetRef"],"additionalProperties":false},"description":"The elements it reads, each once: the one a query reads, or those a join reads"},"parameters":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"parameter":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"integer"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"number"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"boolean"},"value":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"date"},"value":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"timestamp"},"value":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false}]}},"required":["key","parameter"],"additionalProperties":false},"description":"User-controlled periods, limits, thresholds and selections: SQL reads them as columns of the params input, a step as {\"type\":\"parameter\",\"key\":\"<key>\"}"},"query":{"description":"The data as the Edit data editor builds it, over the one read; give query, or ops over several reads","anyOf":[{"type":"object","properties":{"customFields":{"description":"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(); diff_days between two dates, then averaged; to_number() of a number a sheet stores as text (\"120,936\"), so it sums and sorts","maxItems":20,"type":"array","items":{"type":"object","properties":{"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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_total(), which read other rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["formula","as"],"additionalProperties":false}},"dimensions":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"The columns to group by"},"measures":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which counts rows"},"as":{"description":"Omit for the default name, such as \"Sum of Sales\"","type":"string","minLength":1,"maxLength":255},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column"],"additionalProperties":false}},"pivots":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"Dimensions whose values become columns, outer first: each level splits the one above; empty for none"},"calculations":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest ranks 1"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","direction"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"The query's only dimension, such as a month, by its name before renames: the rows are ordered by it, oldest first"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","orderBy"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\"). It reads the dimensions and measures, never another calculation: write that calculation's formula out in this one instead"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["fn","formula","as"],"additionalProperties":false}]}},"columnOrder":{"description":"Every column once, by its name before renames, in the order to show them, removed columns optional; omit for dimensions, measures, then calculations","maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"pivotLayout":{"description":"Omit for the default: columns in the order their values first appear","type":"object","properties":{"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"}},"required":["columns","nullLabel","fill"],"additionalProperties":false},"filters":{"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]},"description":"All must hold"},"renames":{"description":"Output columns under another name","minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}},"sorts":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column, by its name before renames; a split's cell by its values"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]}},"required":["column","direction"],"additionalProperties":false},"description":"Columns to sort by, the first first, each next one breaking ties; empty for none"},"limit":{"anyOf":[{"anyOf":[{"type":"integer","minimum":1,"maximum":100000},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},{"type":"null"}],"description":"Rows to keep: a number, an integer parameter, or null for all"},"limitFrom":{"type":"string","enum":["start","end"]},"totals":{"description":"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 none","type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false},"formats":{"description":"numfmt patterns by output column","maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false}},"columnChoice":{"description":"Which columns the rows show: those to leave out, or the only ones to show. Omit for every column","type":"object","properties":{"kind":{"type":"string","enum":["removed","kept"],"description":"removed: the columns to leave out of the rows while keeping the grouping, e.g. group by region and month but show no region column. kept: only for rows that aren't grouped, the only source columns to show, in this order; a column added to the source later stays out"},"columns":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"By their name before renames, each once; a split's column is named by its values"}},"required":["kind","columns"],"additionalProperties":false},"keepGroupsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsBeforeLimit":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["dimensions","measures","pivots","filters","sorts","limit"],"additionalProperties":false},{"type":"null"}]},"ops":{"description":"Only over several reads: a join step over every read first, naming each read in its inputs (from op, ref the read alias), then steps","anyOf":[{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":64,"description":"An existing op id to keep that op, or a new short name"},"title":{"description":"Omit to keep a kept op's title; a step op without one shows its step summary","anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"inputs":{"description":"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 as `input`; a new first op reads the datasheet's one read, as `source` or the read's alias","anyOf":[{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"alias":{"description":"SQL ops: the name the statement reads this input by","anyOf":[{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},{"type":"null"}]},"from":{"type":"string","enum":["previous","op"],"description":"previous: the op above (above the first op, the datasheet's one read); op: the one ref names"},"ref":{"description":"op: the ref of an earlier op in this list, or a read's operation id or alias","anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["from"],"additionalProperties":false}},{"type":"null"}]},"step":{"description":"A step op's call; on a kept op, send it only to change it","anyOf":[{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"select"},"params":{"type":"object","properties":{"mode":{"type":"string","enum":["keep","drop"],"description":"keep: exactly these columns, in this order. drop: every column but these"},"columns":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"optional":{"description":"skip a named column that isn't there (in either mode), as a split's column is once its value is gone","type":"boolean"}},"required":["mode","columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"rename"},"params":{"type":"object","properties":{"renames":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}}},"required":["renames"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"filter"},"params":{"type":"object","properties":{"match":{"type":"string","enum":["all","any"]},"conditions":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["match","conditions"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"sort"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]},"optional":{"description":"skip this key when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["column","direction","nulls"],"additionalProperties":false}}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"limit"},"params":{"type":"object","properties":{"count":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"integer","minimum":1,"maximum":100000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"from":{"type":"string","enum":["start","end"]}},"required":["count","from"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"aggregate"},"params":{"type":"object","properties":{"groupBy":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}]},"as":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket","as"],"additionalProperties":false},"description":"Empty gives one row, e.g. a KPI"},"metrics":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column","as"],"additionalProperties":false}},"totals":{"type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false}},"required":["groupBy","metrics"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"pivot"},"params":{"type":"object","properties":{"rows":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns kept as rows, one row per combination"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"Column whose values become output columns"},"values":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"label":{"type":"string","minLength":1,"maxLength":255}},"required":["fn","column","label"],"additionalProperties":false}},"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"},"thenBy":{"description":"Columns split under column, outer to inner, discover mode only: one output column per combination the data has","minItems":1,"maxItems":2,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}}},"required":["rows","column","values","columns","nullLabel","fill"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"window"},"params":{"type":"object","properties":{"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest value ranks 1"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","direction","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A number column"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"Column the rows are ordered by, oldest first, such as a month"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","orderBy","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\")"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","formula","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false}]},"description":"Columns added after the input columns, each over all the rows this step receives"}},"required":["columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"join"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns every input has, whose values name one row of each input, such as a region and a month"}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false}]},{"type":"null"}]}},"required":["ref"],"additionalProperties":false}},{"type":"null"}]},"formats":{"description":"With ops; a query has its own formats","anyOf":[{"maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false},"description":"numfmt formats by output column: give each renamed or computed number or date column one"},{"type":"null"}]},"sql":{"description":"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`)","anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["type","temporaryId","name","reads","parameters"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-query"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"parameters":{"description":"Replaces the datasheet's complete parameter set; omit to keep it","anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"parameter":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"integer"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"number"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"boolean"},"value":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"date"},"value":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"timestamp"},"value":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false}]}},"required":["key","parameter"],"additionalProperties":false}},{"type":"null"}]},"query":{"type":"object","properties":{"customFields":{"description":"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(); diff_days between two dates, then averaged; to_number() of a number a sheet stores as text (\"120,936\"), so it sums and sorts","maxItems":20,"type":"array","items":{"type":"object","properties":{"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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_total(), which read other rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["formula","as"],"additionalProperties":false}},"dimensions":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"The columns to group by"},"measures":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which counts rows"},"as":{"description":"Omit for the default name, such as \"Sum of Sales\"","type":"string","minLength":1,"maxLength":255},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column"],"additionalProperties":false}},"pivots":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}],"description":"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 (month_of_year: Jan to Dec, quarter_of_year: 1 to 4, day_of_week: Mon to Sun), else null. This year beside last year by month is month_of_year split by the year"},"as":{"description":"Omit for the default name","type":"string","minLength":1,"maxLength":255},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket"],"additionalProperties":false},"description":"Dimensions whose values become columns, outer first: each level splits the one above; empty for none"},"calculations":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest ranks 1"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","direction"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"The query's only dimension, such as a month, by its name before renames: the rows are ordered by it, oldest first"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column","orderBy"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A measure, by its name before renames"},"as":{"description":"The new column's name. Omit for the default name","type":"string","minLength":1,"maxLength":255}},"required":["fn","column"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\"). It reads the dimensions and measures, never another calculation: write that calculation's formula out in this one instead"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name"}},"required":["fn","formula","as"],"additionalProperties":false}]}},"columnOrder":{"description":"Every column once, by its name before renames, in the order to show them, removed columns optional; omit for dimensions, measures, then calculations","maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"pivotLayout":{"description":"Omit for the default: columns in the order their values first appear","type":"object","properties":{"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"}},"required":["columns","nullLabel","fill"],"additionalProperties":false},"filters":{"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]},"description":"All must hold"},"renames":{"description":"Output columns under another name","minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}},"sorts":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column, by its name before renames; a split's cell by its values"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]}},"required":["column","direction"],"additionalProperties":false},"description":"Columns to sort by, the first first, each next one breaking ties; empty for none"},"limit":{"anyOf":[{"anyOf":[{"type":"integer","minimum":1,"maximum":100000},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},{"type":"null"}],"description":"Rows to keep: a number, an integer parameter, or null for all"},"limitFrom":{"type":"string","enum":["start","end"]},"totals":{"description":"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 none","type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false},"formats":{"description":"numfmt patterns by output column","maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false}},"columnChoice":{"description":"Which columns the rows show: those to leave out, or the only ones to show. Omit for every column","type":"object","properties":{"kind":{"type":"string","enum":["removed","kept"],"description":"removed: the columns to leave out of the rows while keeping the grouping, e.g. group by region and month but show no region column. kept: only for rows that aren't grouped, the only source columns to show, in this order; a column added to the source later stays out"},"columns":{"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"By their name before renames, each once; a split's column is named by its values"}},"required":["kind","columns"],"additionalProperties":false},"keepGroupsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsBeforeLimit":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},"keepRowsWhere":{"description":"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","maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["dimensions","measures","pivots","filters","sorts","limit"],"additionalProperties":false,"description":"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 from"}},"required":["type","datasheetRef","query"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-ops"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"parameters":{"description":"Replaces the datasheet's complete parameter set; omit to keep it","anyOf":[{"maxItems":10,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"parameter":{"oneOf":[{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"string"},"value":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"integer"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"number"},"value":{"anyOf":[{"type":"number"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"boolean"},"value":{"anyOf":[{"type":"boolean"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"date"},"value":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false},{"type":"object","properties":{"label":{"type":"string","minLength":1},"type":{"type":"string","const":"timestamp"},"value":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]}},"required":["label","type","value"],"additionalProperties":false}]}},"required":["key","parameter"],"additionalProperties":false}},{"type":"null"}]},"ops":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"ref":{"type":"string","minLength":1,"maxLength":64,"description":"An existing op id to keep that op, or a new short name"},"title":{"description":"Omit to keep a kept op's title; a step op without one shows its step summary","anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"inputs":{"description":"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 as `input`; a new first op reads the datasheet's one read, as `source` or the read's alias","anyOf":[{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"alias":{"description":"SQL ops: the name the statement reads this input by","anyOf":[{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},{"type":"null"}]},"from":{"type":"string","enum":["previous","op"],"description":"previous: the op above (above the first op, the datasheet's one read); op: the one ref names"},"ref":{"description":"op: the ref of an earlier op in this list, or a read's operation id or alias","anyOf":[{"type":"string","minLength":1},{"type":"null"}]}},"required":["from"],"additionalProperties":false}},{"type":"null"}]},"step":{"description":"A step op's call; on a kept op, send it only to change it","anyOf":[{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"select"},"params":{"type":"object","properties":{"mode":{"type":"string","enum":["keep","drop"],"description":"keep: exactly these columns, in this order. drop: every column but these"},"columns":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"optional":{"description":"skip a named column that isn't there (in either mode), as a split's column is once its value is gone","type":"boolean"}},"required":["mode","columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"rename"},"params":{"type":"object","properties":{"renames":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"from":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"to":{"type":"string","minLength":1,"maxLength":255,"description":"The column's new name"},"optional":{"description":"skip this rename when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["from","to"],"additionalProperties":false}}},"required":["renames"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"filter"},"params":{"type":"object","properties":{"match":{"type":"string","enum":["all","any"]},"conditions":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["match","conditions"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"sort"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"]},"nulls":{"type":"string","enum":["first","last"]},"optional":{"description":"skip this key when its column is missing, as a split's column is once its value is gone","type":"boolean"}},"required":["column","direction","nulls"],"additionalProperties":false}}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"limit"},"params":{"type":"object","properties":{"count":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"integer","minimum":1,"maximum":100000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"from":{"type":"string","enum":["start","end"]}},"required":["count","from"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"aggregate"},"params":{"type":"object","properties":{"groupBy":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"bucket":{"anyOf":[{"type":"string","enum":["day","week","month","quarter","year","month_of_year","quarter_of_year","day_of_week"]},{"type":"null"}]},"as":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"groups":{"description":"A text column only: values shown under one name, e.g. Email and Telephone as \"Email & Tel\"; the others keep theirs","maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":255},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","minLength":1}}},"required":["name","values"],"additionalProperties":false}},"fill":{"description":"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","type":"boolean"}},"required":["column","bucket","as"],"additionalProperties":false},"description":"Empty gives one row, e.g. a KPI"},"metrics":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"filters":{"description":"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","minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}}},"required":["fn","column","as"],"additionalProperties":false}},"totals":{"type":"object","properties":{"row":{"type":"boolean","description":"A last row with the total of each column; charts leave it out"},"column":{"type":"boolean","description":"With a pivot after the aggregate: a Total column with each row across the pivot"},"subtotals":{"description":"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","type":"boolean"}},"required":["row","column"],"additionalProperties":false}},"required":["groupBy","metrics"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"pivot"},"params":{"type":"object","properties":{"rows":{"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns kept as rows, one row per combination"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"Column whose values become output columns"},"values":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"label":{"type":"string","minLength":1,"maxLength":255}},"required":["fn","column","label"],"additionalProperties":false}},"columns":{"oneOf":[{"type":"object","properties":{"mode":{"type":"string","const":"fixed"},"values":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false}]},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["value","as"],"additionalProperties":false},"description":"One column per value, each under its own name: two values never share a column"}},"required":["mode","values"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover"},"order":{"type":"string","enum":["asc","desc","first_seen"]},"limit":{"type":"integer","minimum":1,"maximum":200},"keepFirst":{"description":"Keep only the first `limit` values, in this order, and leave the rest out instead of failing","type":"boolean"}},"required":["mode","order","limit"],"additionalProperties":false}]},"nullLabel":{"anyOf":[{"type":"string","minLength":1,"maxLength":255},{"type":"null"}],"description":"Column name for NULL values; null drops them"},"fill":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"Value for empty cells; null leaves them empty"},"thenBy":{"description":"Columns split under column, outer to inner, discover mode only: one output column per combination the data has","minItems":1,"maxItems":2,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}}},"required":["rows","column","values","columns","nullLabel","fill"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"window"},"params":{"type":"object","properties":{"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"fn":{"type":"string","const":"rank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"direction":{"type":"string","enum":["asc","desc"],"description":"desc: the largest value ranks 1"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","direction","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"percent_of_total"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["difference","percent_difference"]},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A number column"},"orderBy":{"type":"string","minLength":1,"maxLength":255,"description":"Column the rows are ordered by, oldest first, such as a month"},"offset":{"description":"How many rows back to compare with; omit for 1, the previous row","type":"integer","minimum":1,"maximum":1000},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","orderBy","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"formula"},"formula":{"type":"string","minLength":1,"maxLength":2000,"description":"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), is_null(x), to_string(x), to_number(x), the number in text such as \"120,936\", \"$1.5\" or \"37.4%\" (a percent as its fraction, 0.374), empty when the text holds no number; 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, -1 the last row), where n is a number written in the formula, not an expression like count(x), 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; running_total(x), the sum of x from the first row shown down to this one, in the rows' order; one of these can go inside another, such as ${Sales} \/ sum(if(${Quarter} = max(${Quarter}), ${Sales}, 0)) for each row's share of the latest quarter; power(x, y), x to the power y (empty for a negative x with a fractional y); diff_days(start, end), the whole days from the start date to the end date, negative when the end is earlier, empty when either is empty; date_add(date, n, \"unit\"), the date moved by n units, back when n is negative, where the unit is written in the formula as \"second\", \"minute\", \"hour\", \"day\", \"week\", \"month\", \"quarter\" or \"year\" (months, quarters and years move by whole months, rounding a fraction), such as date_add(${Last updated}, -1, \"month\")"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","formula","as"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","enum":["sum","avg","min","max","median","count","count_distinct","first","last"]},"column":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}],"description":"null only with count, which then counts rows"},"as":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"}},"required":["fn","column","as"],"additionalProperties":false}]},"description":"Columns added after the input columns, each over all the rows this step receives"}},"required":["columns"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false},{"type":"object","properties":{"fn":{"type":"string","const":"join"},"params":{"type":"object","properties":{"keys":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Columns every input has, whose values name one row of each input, such as a region and a month"}},"required":["keys"],"additionalProperties":false}},"required":["fn","params"],"additionalProperties":false}]},{"type":"null"}]}},"required":["ref"],"additionalProperties":false},"description":"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-query"},"formats":{"description":"Replaces the datasheet's formats; omit to keep them","anyOf":[{"maxItems":200,"type":"array","items":{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"An output column, by the name it is shown under, after any rename"},"format":{"type":"string","minLength":1,"maxLength":255,"description":"numfmt pattern, e.g. #,##0.00, $#,##0, 0.0%, yyyy-mm-dd"}},"required":["column","format"],"additionalProperties":false},"description":"numfmt formats by output column: give each renamed or computed number or date column one"},{"type":"null"}]}},"required":["type","datasheetRef","ops"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-read-type"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"readType":{"type":"string","enum":["aggregated","raw","image"],"description":"aggregated: its data, as the tool displays it; raw: its tidy read, to transform; image: its picture"}},"required":["type","datasheetRef","readType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"set-unpivot"},"datasheetRef":{"type":"string","minLength":1,"description":"An existing datasheet id, or the temporaryId of a datasheet created earlier in this patch"},"unpivot":{"description":"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 one","anyOf":[{"anyOf":[{"oneOf":[{"type":"object","properties":{"rows":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":255,"description":"What the name column says on this row, such as the column's name or \"2022\""},"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"description":"The input column for each of values, in order; null leaves that value empty on this row"}},"required":["label","columns"],"additionalProperties":false},"description":"One output row per input row and entry, in this order; the input columns no entry names repeat on each"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The column that holds each row's label, such as \"Year\""},"values":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"The columns the values go in: one, such as \"Value\", or one per measure"},"mode":{"type":"string","const":"fixed","description":"Its entries name the columns turned into rows: for several values per period"}},"required":["rows","name","values","mode"],"additionalProperties":false},{"type":"object","properties":{"mode":{"type":"string","const":"discover","description":"Every column the range has when it is read, but the ones in except, becomes a row labelled with its name: for one value per period, so a period the sheet adds or renames still comes through"},"except":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"Every column that is not turned into a row, left as it is: the row labels, the column a fill down adds, a total the sheet keeps beside its periods"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The column that holds each row's label, such as \"Year\""},"value":{"type":"string","minLength":1,"maxLength":255,"description":"The one column the values go in, such as \"Value\""}},"required":["mode","except","name","value"],"additionalProperties":false}]},{"type":"object","properties":{"rows":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":255,"description":"What the name column says on this row, such as the column's name or \"2022\""},"columns":{"minItems":1,"maxItems":20,"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},{"type":"null"}]},"description":"The input column for each of values, in order; null leaves that value empty on this row"}},"required":["label","columns"],"additionalProperties":false},"description":"One output row per input row and entry, in this order; the input columns no entry names repeat on each"},"name":{"type":"string","minLength":1,"maxLength":255,"description":"The column that holds each row's label, such as \"Year\""},"values":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"description":"The columns the values go in: one, such as \"Value\", or one per measure"}},"required":["rows","name","values"],"additionalProperties":false,"description":"Mode fixed, as written before unpivots had a mode"}]},{"type":"null"}]},"fillDown":{"description":"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 one","anyOf":[{"type":"object","properties":{"column":{"type":"string","minLength":1,"maxLength":255,"description":"The column holding the row labels, headings included"},"into":{"type":"string","minLength":1,"maxLength":255,"description":"The new column the headings fill, such as \"Section\""}},"required":["column","into"],"additionalProperties":false},{"type":"null"}]},"removeRows":{"description":"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","anyOf":[{"minItems":1,"maxItems":20,"type":"array","items":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"compare"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["eq","neq","gt","gte","lt","lte"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","op","value"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"in"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"values":{"minItems":1,"maxItems":1000,"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"negate":{"type":"boolean"}},"required":["kind","column","values","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"from":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"to":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]}},"required":["kind","column","from","to"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"text"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"op":{"type":"string","enum":["equals","contains","starts_with","ends_with"]},"value":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"string"},"value":{"type":"string","maxLength":10000}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"boolean"},"value":{"type":"boolean"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"value":{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"timestamp"},"value":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"parameter"},"key":{"type":"string","minLength":1}},"required":["type","key"],"additionalProperties":false}]},"caseSensitive":{"type":"boolean"},"negate":{"type":"boolean"}},"required":["kind","column","op","value","caseSensitive","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"is_blank"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"negate":{"type":"boolean"}},"required":["kind","column","negate"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relative_date"},"column":{"type":"string","minLength":1,"maxLength":255,"description":"A column name, exact and case-sensitive"},"range":{"type":"string","enum":["current","last","next"]},"count":{"anyOf":[{"type":"integer","minimum":1,"maximum":1000},{"type":"null"}]},"unit":{"type":"string","enum":["day","week","month","quarter","year"]},"complete":{"description":"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. Null or left out for the window through today","anyOf":[{"type":"boolean"},{"type":"null"}]},"includeCurrent":{"description":"With complete only: the current unit too, e.g. the last 1 complete year with the current one is last year and this year. Null or left out to leave it out","anyOf":[{"type":"boolean"},{"type":"null"}]},"toDate":{"description":"current only: the unit so far, through today, e.g. this year to date. Null or left out for the whole unit","anyOf":[{"type":"boolean"},{"type":"null"}]},"offset":{"description":"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. Null or left out for the window itself","anyOf":[{"type":"object","properties":{"count":{"type":"integer","minimum":1,"maximum":1000},"unit":{"type":"string","enum":["day","week","month","quarter","year"]}},"required":["count","unit"],"additionalProperties":false},{"type":"null"}]}},"required":["kind","column","range","count","unit"],"additionalProperties":false}]}},{"type":"null"}]}},"required":["type","datasheetRef"],"additionalProperties":false}]},"description":"The changes to the report's datasheets, applied in order: `create` for a datasheet the report doesn't have yet (a query, one SQL statement, or a join and steps over elements that datasheets of the report read already, under a `temporaryId` you choose), `set-query` or `set-ops` for the data of one it has (`getReportDatasheet` gives what it is now), `set-read-type` and `set-unpivot`. Each datasheet is its reads followed by the ops over them: call `getReportDataGuide` for the query model, SQL and joins. A `temporaryId` can be used once: after a save, create the next datasheet under another."},"revisions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"The `revisions` the preview of the same changes answered. The save is refused when a datasheet they name changed since, so it never writes over someone else's edit: preview again and save the new revisions."}},"required":["changes","revisions"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","oneOf":[{"type":"object","properties":{"saved":{"type":"boolean","const":true},"versionBeforeId":{"type":"string","description":"The version of the report from before the save, which `restoreReportVersion` restores with its datasheets as they were."},"resolvedDatasheetIds":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"},"description":"The id of each datasheet a `create` made, by its `temporaryId`. Place it on a slide by this id."},"datasheets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"error":{"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id","error"],"additionalProperties":false},"description":"The datasheets on slides whose data was read again, each with its error when the read failed."}},"required":["saved","versionBeforeId","resolvedDatasheetIds","datasheets"],"additionalProperties":false},{"type":"object","properties":{"saved":{"type":"boolean","const":false},"error":{"type":"string","description":"Why nothing was saved: the changes failed, or a datasheet they edit changed since the preview. Preview again and save with the new `revisions`."}},"required":["saved","error"],"additionalProperties":false}]}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/parameters":{"get":{"operationId":"getReportParameters","summary":"Get report parameters","description":"A report's parameters, with which ones a burst can vary by, the dashboard filters and the datasheet columns a parameter can link, with the parameter that already links each.\n\nRequires the `slide_decks:read` scope.","tags":["Parameters"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"parameters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The report parameter's id. Pass it in `parameterIds` to `createBurst` when `burstable` is `true`."},"name":{"type":"string","description":"The report parameter's name, as shown in Rollstack."},"value":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false}]},{"type":"null"}],"description":"The parameter's value, which the report's datasheets read through the filters it links. `null` when it has none, and those filters keep their own values. A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only."},"columns":{"type":"array","items":{"type":"object","properties":{"datasheetId":{"type":"string","description":"The datasheet's id, as in `listReportDatasheets`."},"datasheetName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The datasheet's name, or `null` if it has none."},"column":{"type":"string","description":"The column's name in the datasheet's source."},"kind":{"type":"string","enum":["categorical","number","date"],"description":"The kind of value that filters the column, and so the `type` of a parameter value that reaches it: `categorical` takes a list, `number` a number and `date` a date."},"isLinked":{"type":"boolean","description":"`false` once the column was unlinked in Rollstack: the parameter no longer writes into it."}},"required":["datasheetId","datasheetName","column","kind","isLinked"],"additionalProperties":false},"description":"The columns of datasheets the parameter links: its value is written into each as a row filter, in that datasheet only. Empty when it links none."},"burstable":{"type":"boolean","description":"Whether a burst can vary by the parameter: it links at least one filter whose `valueType` isn't `null`, or at least one column that is still linked. A parameter that links neither can't be."}},"required":["id","name","value","columns","burstable"],"additionalProperties":false},"description":"The report's parameters, oldest first. Empty until one is created, here or in the app."},"filters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The filter's id. Pass it in `filterIds` to `createReportParameter`."},"name":{"type":"string","description":"The filter's name on its dashboard."},"connectionType":{"type":"string","enum":["GoogleSheet","GoogleExcel","MicrosoftExcel","Tableau","Salesforce","Metabase","PowerBI","Looker","RollstackVariable","Lightdash","Omni","Sigma","Snowflake","Databricks","BigQuery","CsvUpload","XlsxUpload","ManualTable","Dbt"],"description":"The kind of connection the dashboard is on, such as `Looker`."},"dashboardName":{"type":"string","description":"The dashboard the filter is on, as its connection names it."},"datasheets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The datasheet's id, as in `listReportDatasheets`."},"name":{"type":"string","description":"The datasheet's name."}},"required":["id","name"],"additionalProperties":false},"description":"The report's datasheets that read the filter's dashboard, which a parameter linking it writes its value into."},"parameterId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The parameter that links the filter, by its `id` in `parameters`. A filter follows one parameter at most, so a new parameter can only link filters where this is `null`."},"valueType":{"anyOf":[{"type":"string","enum":["categorical","date","number","text"]},{"type":"null"}],"description":"The kind of value Rollstack can set in the filter, and so the `type` of a parameter value that reaches it. `null` when only the dashboard's own embed can edit the filter: a parameter can link it, but can't set its value or be burst by it."}},"required":["id","name","connectionType","dashboardName","datasheets","parameterId","valueType"],"additionalProperties":false},"description":"The filters a parameter can link: those of the dashboards the report's datasheets read. Empty when the report reads no dashboard, such as one built only from uploaded files and spreadsheet ranges, which can't have parameters."},"columns":{"type":"array","items":{"type":"object","properties":{"datasheetId":{"type":"string","description":"The datasheet's id, as in `listReportDatasheets`. Pass it in `columns` to `createReportParameter`."},"datasheetName":{"type":"string","description":"The datasheet's name."},"column":{"type":"string","description":"The column's name in the datasheet's source."},"kind":{"type":"string","enum":["categorical","number","date"],"description":"The kind of value that filters the column: `categorical` takes a list, `number` a number and `date` a date."},"parameterId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The parameter that links the column, by its `id` in `parameters`. A column follows one parameter at most, so a new parameter can only link columns where this is `null`."}},"required":["datasheetId","datasheetName","column","kind","parameterId"],"additionalProperties":false},"description":"The columns a parameter can link: those of the datasheets the report has already read, from a source Rollstack can filter by rows, with a kind of value that can filter them. A datasheet never read, or read before Rollstack kept its columns' types, has none: see `datasheetsToRefresh`."},"datasheetsToRefresh":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false},"description":"The datasheets whose columns can be linked once the report is run again, as a run reads them."}},"required":["parameters","filters","columns","datasheetsToRefresh"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createReportParameter","summary":"Create report parameter","description":"Creates a parameter of a report, linked to the dashboard filters and datasheet columns given, as the app's report parameters editor does. With a value, writes it into those filters, and as a row filter into those columns, and reads their datasheets again. Answers the parameter. Only the report's editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Parameters"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"description":"The parameter's name, as shown in Rollstack. It can't be the name of another parameter of the report.","examples":["Region"]},"filterIds":{"default":[],"description":"The filters the parameter links, by their `id` in `filters` from `getReportParameters`: its value is written into each, in every datasheet that reads its dashboard. Each must have no `parameterId` yet. A burst can vary by the parameter only if one of them has a `valueType`, or it links a column.","maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"columns":{"default":[],"description":"The columns the parameter links, by `datasheetId` and `column` as `columns` in `getReportParameters` lists them: its value is written into each as a row filter, in that datasheet only. Each must have no `parameterId` yet. The value's `type` follows the first filter's `valueType`, or the first column's `kind` when it links no filter that can be set.","maxItems":200,"type":"array","items":{"type":"object","properties":{"datasheetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The datasheet's id, as `datasheetId` in `columns` from `getReportParameters`."},"column":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name, as `column` in `columns` from `getReportParameters`."}},"required":["datasheetId","column"],"additionalProperties":false}},"value":{"default":null,"description":"The parameter's value, of the `valueType` of the filters it links. When set, it is written into those filters and their datasheets are read again with it, so the report's slides change. If `null` or omitted, as for a parameter a burst's variants will set, the filters keep their own values. A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only.","anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"]},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"]},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"]}]},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"The report parameter's id. Pass it in `parameterIds` to `createBurst` when `burstable` is `true`."},"name":{"type":"string","description":"The report parameter's name, as shown in Rollstack."},"value":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false}]},{"type":"null"}],"description":"The parameter's value, which the report's datasheets read through the filters it links. `null` when it has none, and those filters keep their own values. A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only."},"columns":{"type":"array","items":{"type":"object","properties":{"datasheetId":{"type":"string","description":"The datasheet's id, as in `listReportDatasheets`."},"datasheetName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The datasheet's name, or `null` if it has none."},"column":{"type":"string","description":"The column's name in the datasheet's source."},"kind":{"type":"string","enum":["categorical","number","date"],"description":"The kind of value that filters the column, and so the `type` of a parameter value that reaches it: `categorical` takes a list, `number` a number and `date` a date."},"isLinked":{"type":"boolean","description":"`false` once the column was unlinked in Rollstack: the parameter no longer writes into it."}},"required":["datasheetId","datasheetName","column","kind","isLinked"],"additionalProperties":false},"description":"The columns of datasheets the parameter links: its value is written into each as a row filter, in that datasheet only. Empty when it links none."},"burstable":{"type":"boolean","description":"Whether a burst can vary by the parameter: it links at least one filter whose `valueType` isn't `null`, or at least one column that is still linked. A parameter that links neither can't be."},"runId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The run that reads again the datasheets the value was written into, as `runId` in `getReportRun`. When a run of the report is already going, it reads them after that run. `null` when no value was written, or when you can't run the report."}},"required":["id","name","value","columns","burstable","runId"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/parameters\/{parameterId}":{"patch":{"operationId":"updateReportParameter","summary":"Update report parameter","description":"Changes a parameter of a report, such as its value to show the report for another region, as the app's report parameters editor does: what you send changes and the rest stays. A new value is written into the filters and columns it links and their datasheets are read again, so the report's slides change; follow that read with runId. Answers the parameter. Only the report's editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Parameters"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"parameterId","in":"path","required":true,"description":"The parameter to act on, by its `id` in `parameters` from `getReportParameters`.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The parameter to act on, by its `id` in `parameters` from `getReportParameters`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"description":"The parameter's new name, as shown in Rollstack. It can't be the name of another parameter of the report.","examples":["Region"],"type":"string","minLength":1},"filterIds":{"description":"All the filters the parameter links from now on, by their `id` in `filters` from `getReportParameters`, replacing the ones it links: a filter left out keeps the value it holds, and a filter added must have no other `parameterId`. If omitted, it links the same filters.","maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"columns":{"description":"All the columns the parameter links from now on, by `datasheetId` and `column` as `columns` in `getReportParameters` lists them, replacing the ones it links: a column left out keeps the row filter it holds, and a column added must have no other `parameterId`. If omitted, it links the same columns.","maxItems":200,"type":"array","items":{"type":"object","properties":{"datasheetId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The datasheet's id, as `datasheetId` in `columns` from `getReportParameters`."},"column":{"type":"string","minLength":1,"maxLength":255,"description":"The column's name, as `column` in `columns` from `getReportParameters`."}},"required":["datasheetId","column"],"additionalProperties":false}},"value":{"description":"The parameter's new value, of the `valueType` of the filters it links. It is written into those filters and their datasheets are read again with it, so the report's slides change. `null` clears it, and the filters keep the values they hold. If omitted, the value stays. A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only.","anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"]},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"]},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"]}]},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"The report parameter's id. Pass it in `parameterIds` to `createBurst` when `burstable` is `true`."},"name":{"type":"string","description":"The report parameter's name, as shown in Rollstack."},"value":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false}]},{"type":"null"}],"description":"The parameter's value, which the report's datasheets read through the filters it links. `null` when it has none, and those filters keep their own values. A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only."},"columns":{"type":"array","items":{"type":"object","properties":{"datasheetId":{"type":"string","description":"The datasheet's id, as in `listReportDatasheets`."},"datasheetName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The datasheet's name, or `null` if it has none."},"column":{"type":"string","description":"The column's name in the datasheet's source."},"kind":{"type":"string","enum":["categorical","number","date"],"description":"The kind of value that filters the column, and so the `type` of a parameter value that reaches it: `categorical` takes a list, `number` a number and `date` a date."},"isLinked":{"type":"boolean","description":"`false` once the column was unlinked in Rollstack: the parameter no longer writes into it."}},"required":["datasheetId","datasheetName","column","kind","isLinked"],"additionalProperties":false},"description":"The columns of datasheets the parameter links: its value is written into each as a row filter, in that datasheet only. Empty when it links none."},"burstable":{"type":"boolean","description":"Whether a burst can vary by the parameter: it links at least one filter whose `valueType` isn't `null`, or at least one column that is still linked. A parameter that links neither can't be."},"runId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The run that reads again the datasheets the value was written into, as `runId` in `getReportRun`. When a run of the report is already going, it reads them after that run. `null` when no value was written, or when you can't run the report."}},"required":["id","name","value","columns","burstable","runId"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"deleteReportParameter","summary":"Delete report parameter","description":"Deletes a parameter of a report, as the app's report parameters editor does. The filters and columns it linked keep the last value it wrote, and a burst that varies by it stops varying by it. Refused for the last parameter a burst varies by, and on a burst's variant, whose parameters follow its template report's: delete it there. Only the report's editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Parameters"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"parameterId","in":"path","required":true,"description":"The parameter to act on, by its `id` in `parameters` from `getReportParameters`.","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","description":"The parameter to act on, by its `id` in `parameters` from `getReportParameters`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/views":{"get":{"operationId":"getReportViews","summary":"Get report views","description":"Who opened a report and how they read it, as its editors see under Views in the app: each person's visits, time spent and whether they opened it since its last successful run, who it is shared with but hasn't opened it since, and how far into it people read, slide by slide. Editors' own time editing doesn't count. Only its editors may.\n\nRequires the `slide_decks:read` scope.","tags":["Sharing"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"visits":{"type":"number","description":"How many times people opened the report to read it, editors' own edits left out. Visits a few minutes apart count as one, and ones under 5 seconds don't count."},"medianVisitSeconds":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How long a visit lasts, as the median in seconds. `null` with no visits."},"lastUpdatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's last successful run ended, which `openedSinceUpdate` compares to. `null` if it never ran."},"people":{"type":"array","items":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."}},"required":["id","name"],"additionalProperties":false},"visits":{"type":"number","description":"How many times they opened it."},"seconds":{"type":"number","description":"How long they spent on it in all, in seconds."},"lastViewedAt":{"description":"When they last had it open.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"openedSinceUpdate":{"type":"boolean","description":"Whether they opened it since its last successful run, so saw its latest numbers."}},"required":["user","visits","seconds","lastViewedAt","openedSinceUpdate"],"additionalProperties":false},"description":"Who opened the report, the most recent first."},"notOpened":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."}},"required":["id","name"],"additionalProperties":false},"description":"The members it is shared with who haven't opened it since its last successful run, you left out."},"slides":{"type":"array","items":{"type":"object","properties":{"slideId":{"type":"string","description":"The slide, as `slideId` in `getReportContent`."},"reach":{"type":"number","description":"The share of visits that reached the slide, from 0 to 1."},"medianSeconds":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"How long a visit stays on the slide, as the median in seconds."}},"required":["slideId","reach","medianSeconds"],"additionalProperties":false},"description":"How far into the report people read, slide by slide."}},"required":["visits","medianVisitSeconds","lastUpdatedAt","people","notOpened","slides"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/shares\/{userId}":{"put":{"operationId":"shareReport","summary":"Share report","description":"Shares a report of any type with a member of the organization to view or edit it, or changes their permission. They get an email. A report that updates a file, such as a Google Slides presentation, also shares the file with them, as the app does.\n\nRequires the `slide_decks:write` scope.","tags":["Sharing"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"userId","in":"path","required":true,"description":"The member to share the report with, or to unshare it from. Use their `id` from `listMembers`, which only owners and admins can call, or their `userId` in `sharedWith` from `getReport` if the report is already shared with them. You can share a report only with active members of the organization, and not with yourself. Anyone the report is shared with can unshare it from themselves, even with `view` permission.","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member to share the report with, or to unshare it from. Use their `id` from `listMembers`, which only owners and admins can call, or their `userId` in `sharedWith` from `getReport` if the report is already shared with them. You can share a report only with active members of the organization, and not with yourself. Anyone the report is shared with can unshare it from themselves, even with `view` permission."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can do with the report. `view` lets them open, export and duplicate it. `comment` also lets them add, reply to and resolve comments on its slides. `edit` also lets them change its slides, data, schedules, email and other settings, run it, send its email, chat with the slides agent about it, and manage who it's shared with. Neither lets them delete the report or transfer its ownership. If the report is already shared with the member, this replaces their permission and they aren't notified again. On a report that updates a file in Google Drive or OneDrive, Rollstack also shares the file with them, as the app does."}},"required":["permission"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"userId":{"type":"number","description":"The member the report is now shared with: the `userId` from the path."},"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can now do with the report: the `permission` you sent."}},"required":["userId","permission"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"unshareReport","summary":"Unshare report","description":"Removes a user's share of a report of any type, and their access to its file when it updates one, as the app does.\n\nRequires the `slide_decks:write` scope.","tags":["Sharing"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"userId","in":"path","required":true,"description":"The member to share the report with, or to unshare it from. Use their `id` from `listMembers`, which only owners and admins can call, or their `userId` in `sharedWith` from `getReport` if the report is already shared with them. You can share a report only with active members of the organization, and not with yourself. Anyone the report is shared with can unshare it from themselves, even with `view` permission.","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member to share the report with, or to unshare it from. Use their `id` from `listMembers`, which only owners and admins can call, or their `userId` in `sharedWith` from `getReport` if the report is already shared with them. You can share a report only with active members of the organization, and not with yourself. Anyone the report is shared with can unshare it from themselves, even with `view` permission."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/batch-share":{"post":{"operationId":"batchShareReports","summary":"Share reports in a batch","description":"Shares up to 50 reports of any type with the same members, with the same permission, as shareReport does for one. Each member gets one email listing the reports newly shared with them. Answers one result per report, each naming its id: a report you may not share fails on its own and the others are still shared, but a member who is not in the organization, or yourself, fails the whole call with nothing shared.\n\nRequires the `slide_decks:write` scope.","tags":["Sharing"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"ids":{"description":"The reports to act on, of any `type`, by their `id` from `listReports`. From 1 to 50 ids; an id listed twice is acted on once.","minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}},"userIds":{"description":"The members to share every report with, by their user `id` from `listMembers`. Each must be an active member of the organization other than you, or the whole call fails with nothing shared. From 1 to 50 ids.","minItems":1,"maxItems":50,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can do with the report. `view` lets them open, export and duplicate it. `comment` also lets them add, reply to and resolve comments on its slides. `edit` also lets them change its slides, data, schedules, email and other settings, run it, send its email, chat with the slides agent about it, and manage who it's shared with. Neither lets them delete the report or transfer its ownership. If the report is already shared with the member, this replaces their permission and they aren't notified again. On a report that updates a file in Google Drive or OneDrive, Rollstack also shares the file with them, as the app does."}},"required":["ids","userIds","permission"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"results":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"The report, by its `id` from `ids`."},"status":{"type":"string","const":"done","description":"The call succeeded on this report."},"result":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member the report is now shared with: the `userId` from the path."},"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can now do with the report: the `permission` you sent."}},"required":["userId","permission"],"additionalProperties":false},"description":"The members the report is now shared with, one for each of `userIds`."}},"required":["id","status","result"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"The report, by its `id` from `ids`."},"status":{"type":"string","const":"failed","description":"The call failed on this report and changed nothing on it. The other reports are unaffected."},"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable, machine-readable code for the error, such as `api-key-missing-scope` or `data-validation-error`. Use it, rather than `message`, to handle specific errors in your code."},"message":{"type":"string","description":"A human-readable explanation of what went wrong, to log or show to people. When the request's path parameters, query or body are invalid (`data-validation-error`), it lists each invalid field by its path, with the problem, such as `body.emails.0: Invalid email address`."},"statusCode":{"type":"number","description":"The HTTP status the same call on this report alone would answer, such as `404` or `403`."}},"required":["code","message","statusCode"],"additionalProperties":false,"description":"Why this report failed, as the endpoint for one report would answer. Retry only these reports."}},"required":["id","status","error"],"additionalProperties":false}]},"description":"One result per report, each naming its `id`."}},"required":["results"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/comments":{"get":{"operationId":"listReportComments","summary":"List comments","description":"The comments on a report's slides, oldest first: each thread's first comment, whose threadId is null and which says whether the thread is resolved, then its replies. Read the open threads to see what reviewers asked for. Members who can comment on or edit the report may.\n\nRequires the `slide_decks:read` scope.","tags":["Comments"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the comment. Pass a thread's first comment's id as `threadId` to reply to it, or to `resolveReportComment`."},"threadId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The thread the comment replies to, by its first comment's `id`. `null` for the comment that starts a thread."},"slideId":{"type":"string","description":"The slide the thread is on, as `slideId` in `getReportContent`."},"text":{"type":"string","description":"What the comment says, as plain text: a mention reads as `@` and the name, and a request to the Rollstack Agent as `@Rollstack`."},"author":{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."}},"required":["id","name"],"additionalProperties":false,"description":"Who wrote it. A reply the Rollstack Agent posted names the member who asked it."},"byAgent":{"type":"boolean","description":"Whether the Rollstack Agent posted it, answering a comment that tagged @Rollstack."},"createdAt":{"description":"When the comment was posted.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When its thread was resolved. Only a thread's first comment has it; `null` while the thread is open."},"resolvedBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"Who resolved the thread. `null` while it is open."}},"required":["id","threadId","slideId","text","author","byAgent","createdAt","resolvedAt","resolvedBy"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createReportComment","summary":"Add comment","description":"Starts a comment thread on a slide of a report, or replies to a thread, as the user. A reply notifies the thread's other participants who can still open the report. Members who can comment on the report may.\n\nRequires the `slide_decks:write` scope.","tags":["Comments"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":5000,"description":"The comment, as plain text: each line becomes a paragraph, and Markdown marks such as `**` and `#` are removed. Mentions and @Rollstack requests can only be written in the app. At most 5000 characters.","examples":["Updated the EMEA numbers on this slide."]},"slideId":{"description":"The slide to start a new thread on, as `slideId` in `getReportContent`. Leave it out with `threadId`.","type":"string"},"threadId":{"description":"The thread to reply to, by its first comment's `id` from `listReportComments`. The reply goes on the thread's slide, and the thread's other participants are notified.","type":"string"}},"required":["text"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the comment. Pass a thread's first comment's id as `threadId` to reply to it, or to `resolveReportComment`."},"threadId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The thread the comment replies to, by its first comment's `id`. `null` for the comment that starts a thread."},"slideId":{"type":"string","description":"The slide the thread is on, as `slideId` in `getReportContent`."},"text":{"type":"string","description":"What the comment says, as plain text: a mention reads as `@` and the name, and a request to the Rollstack Agent as `@Rollstack`."},"author":{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."}},"required":["id","name"],"additionalProperties":false,"description":"Who wrote it. A reply the Rollstack Agent posted names the member who asked it."},"byAgent":{"type":"boolean","description":"Whether the Rollstack Agent posted it, answering a comment that tagged @Rollstack."},"createdAt":{"description":"When the comment was posted.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When its thread was resolved. Only a thread's first comment has it; `null` while the thread is open."},"resolvedBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"Who resolved the thread. `null` while it is open."}},"required":["id","threadId","slideId","text","author","byAgent","createdAt","resolvedAt","resolvedBy"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/comments\/{commentId}\/resolve":{"post":{"operationId":"resolveReportComment","summary":"Resolve comment thread","description":"Resolves a comment thread once what it asked for is done, or opens it again, as the user. Only a thread's first comment can be resolved. Members who can comment on the report may.\n\nRequires the `slide_decks:write` scope.","tags":["Comments"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`.","schema":{"type":"string","description":"The report to act on, by its `id` from `listReports` or `createReport`. Only reports whose `type` is `SlideDeck` work here: another type, such as a Google Slides presentation, returns `400`. You can also copy it from the report's link in Rollstack: it's the part right after `\/slides\/`."}},{"name":"commentId","in":"path","required":true,"description":"The thread to act on, by its first comment's `id` from `listReportComments`, the one whose `threadId` is `null`.","schema":{"type":"string","description":"The thread to act on, by its first comment's `id` from `listReportComments`, the one whose `threadId` is `null`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"resolved":{"default":true,"description":"`true` to resolve the thread, `false` to open it again. Defaults to `true`.","type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the comment. Pass a thread's first comment's id as `threadId` to reply to it, or to `resolveReportComment`."},"threadId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The thread the comment replies to, by its first comment's `id`. `null` for the comment that starts a thread."},"slideId":{"type":"string","description":"The slide the thread is on, as `slideId` in `getReportContent`."},"text":{"type":"string","description":"What the comment says, as plain text: a mention reads as `@` and the name, and a request to the Rollstack Agent as `@Rollstack`."},"author":{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."}},"required":["id","name"],"additionalProperties":false,"description":"Who wrote it. A reply the Rollstack Agent posted names the member who asked it."},"byAgent":{"type":"boolean","description":"Whether the Rollstack Agent posted it, answering a comment that tagged @Rollstack."},"createdAt":{"description":"When the comment was posted.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When its thread was resolved. Only a thread's first comment has it; `null` while the thread is open."},"resolvedBy":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."}},"required":["id","name"],"additionalProperties":false},{"type":"null"}],"description":"Who resolved the thread. `null` while it is open."}},"required":["id","threadId","slideId","text","author","byAgent","createdAt","resolvedAt","resolvedBy"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/schedules":{"get":{"operationId":"getReportSchedules","summary":"List schedules","description":"The schedules of a report of any type, with the syncs each updates, whether each is active or paused, and when each runs next, or null for one that is paused or never runs again. Read them before `updateReportSchedules`, which replaces them all.\n\nRequires the `slide_decks:read` scope.","tags":["Schedules"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the schedule. `updateReportSchedules` replaces every schedule, so the ids change each time you call it."},"frequency":{"type":"string","enum":["daily","weekly","monthly","quarterly","hourly","yearly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires; those made in the app run every day, on chosen weekdays, on chosen days of the month, or every three months, respectively. `yearly` can't be set through the API or the app, and also runs on `cronExpression`."},"cronExpression":{"type":"string","description":"When the schedule runs, as a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`. For an `hourly` schedule, Rollstack generates it from `selectedTimes` and runs the report at those times instead. Monthly schedules made in the app can use `L` and `#`, such as `0 9 L * *` (last day of the month) or `0 9 ? * 1#1` (first Monday)."},"selectedTimes":{"type":"array","items":{"type":"string"},"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`. Other frequencies don't use it; it's empty on those set through the API."},"startDate":{"description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule ends: it never runs the report after this date and time. `null` if the schedule never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC."},"timezone":{"type":"string","description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`."},"syncIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does."},"status":{"type":"string","enum":["active","paused"],"description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again."},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule will next run the report. `null` if it is `paused` or has no runs left before its `endDate`. Unlike `startDate` and `endDate`, this is an actual UTC time."}},"required":["id","frequency","cronExpression","selectedTimes","startDate","endDate","timezone","syncIds","status","nextRunAt"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"put":{"operationId":"updateReportSchedules","summary":"Replace report schedules","description":"Replaces the schedules of a report of any type, at most 10; an empty list removes them all. Only its editors may. A scheduled run updates the whole report: an AI update on a SlideDeck report, and a refresh of every sync on a report of another type, or only the `syncIds` a schedule names. Schedules are checked every 15 minutes, so a cron that fires more often still runs at most once per 15 minutes. To pause a schedule without losing it, send it with `status` `paused`; send `active` to resume it.\n\nRequires the `slide_decks:write` scope.","tags":["Schedules"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"schedules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"frequency":{"type":"string","enum":["hourly","daily","weekly","monthly","quarterly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`, and takes no `cronExpression`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires, and take no `selectedTimes`. For those, the frequency doesn't change when the report runs, but the app uses it to describe and edit the schedule, so pick the one that matches your cron expression."},"cronExpression":{"description":"When a `daily`, `weekly`, `monthly` or `quarterly` schedule runs: a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`, such as `0 9 * * 1` for every Monday at 9:00, or `0 9 L * *` for 9:00 on the last day of each month. Required for those frequencies; omit it for `hourly`. Rollstack checks schedules every 15 minutes, so the minute field must include 0, 15, 30 or 45, and runs at other minutes are skipped. At most 100 characters.","examples":["0 9 * * 1"],"type":"string","maxLength":100},"selectedTimes":{"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`, such as `09:00` or `13:45`. Required for `hourly`; omit it for other frequencies. Each time must be on the quarter hour (`:00`, `:15`, `:30` or `:45`). From 1 to 96 times.","minItems":1,"maxItems":96,"type":"array","items":{"type":"string","pattern":"^([01]\\d|2[0-3]):(00|15|30|45)$","examples":["09:00"]}},"startDate":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC. For frequencies other than `hourly`, set it to the date and time of the first run: the app shows its time as the schedule's time, and when someone changes the schedule's frequency or days there, it rebuilds `cronExpression` at that time.","examples":["2026-11-02T09:00:00Z"]},"endDate":{"default":null,"description":"When the schedule ends: it never runs the report after this date and time. Omit it or pass `null` for a schedule that never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC. Must be later than `startDate`. Set it later than the last run you want: a run at exactly this time may be skipped.","examples":["2027-11-02T09:00:00Z"],"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"timezone":{"type":"string","minLength":1,"description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`. UTC offsets such as `+05:30` aren't accepted.","examples":["America\/New_York"]},"status":{"default":"active","description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again. Omit it for `active`. To pause or resume a schedule, send the schedules from `getReportSchedules` with its `status` changed.","examples":["paused"],"type":"string","enum":["active","paused"]},"syncIds":{"default":null,"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does. Omit it or pass `null` to update the whole report. Each id must be a sync of this report, so it only works on a report other than a `SlideDeck`. Keep the `syncIds` `getReportSchedules` returns for schedules you don't mean to change. A sync deleted later is skipped, so a schedule whose syncs are all gone updates nothing.","anyOf":[{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"type":"null"}]}},"required":["frequency","startDate","timezone"],"additionalProperties":false},"description":"The report's new schedules. They replace all of its current schedules, so read them with `getReportSchedules` first and include any you want to keep, with their `syncIds`; send an empty list to remove them all. When several schedules fall at the same time, the report runs once. Up to 10."}},"required":["schedules"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the schedule. `updateReportSchedules` replaces every schedule, so the ids change each time you call it."},"frequency":{"type":"string","enum":["daily","weekly","monthly","quarterly","hourly","yearly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires; those made in the app run every day, on chosen weekdays, on chosen days of the month, or every three months, respectively. `yearly` can't be set through the API or the app, and also runs on `cronExpression`."},"cronExpression":{"type":"string","description":"When the schedule runs, as a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`. For an `hourly` schedule, Rollstack generates it from `selectedTimes` and runs the report at those times instead. Monthly schedules made in the app can use `L` and `#`, such as `0 9 L * *` (last day of the month) or `0 9 ? * 1#1` (first Monday)."},"selectedTimes":{"type":"array","items":{"type":"string"},"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`. Other frequencies don't use it; it's empty on those set through the API."},"startDate":{"description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule ends: it never runs the report after this date and time. `null` if the schedule never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC."},"timezone":{"type":"string","description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`."},"syncIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does."},"status":{"type":"string","enum":["active","paused"],"description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again."},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule will next run the report. `null` if it is `paused` or has no runs left before its `endDate`. Unlike `startDate` and `endDate`, this is an actual UTC time."}},"required":["id","frequency","cronExpression","selectedTimes","startDate","endDate","timezone","syncIds","status","nextRunAt"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/batch-update-schedules":{"post":{"operationId":"batchUpdateReportSchedules","summary":"Replace schedules of reports in a batch","description":"Gives up to 50 reports of any type the same schedules, replacing all of each report's current ones, as updateReportSchedules does for one; an empty list removes them all. Each schedule updates its whole report. Only the reports' editors may. Answers one result per report, each naming its id, with its new schedules: a report you can't edit fails on its own and keeps its schedules, while the others are still changed.\n\nRequires the `slide_decks:write` scope.","tags":["Schedules"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"ids":{"description":"The reports to act on, of any `type`, by their `id` from `listReports`. From 1 to 50 ids; an id listed twice is acted on once.","minItems":1,"maxItems":50,"type":"array","items":{"type":"string"}},"schedules":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"frequency":{"type":"string","enum":["hourly","daily","weekly","monthly","quarterly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`, and takes no `cronExpression`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires, and take no `selectedTimes`. For those, the frequency doesn't change when the report runs, but the app uses it to describe and edit the schedule, so pick the one that matches your cron expression."},"cronExpression":{"description":"When a `daily`, `weekly`, `monthly` or `quarterly` schedule runs: a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`, such as `0 9 * * 1` for every Monday at 9:00, or `0 9 L * *` for 9:00 on the last day of each month. Required for those frequencies; omit it for `hourly`. Rollstack checks schedules every 15 minutes, so the minute field must include 0, 15, 30 or 45, and runs at other minutes are skipped. At most 100 characters.","examples":["0 9 * * 1"],"type":"string","maxLength":100},"selectedTimes":{"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`, such as `09:00` or `13:45`. Required for `hourly`; omit it for other frequencies. Each time must be on the quarter hour (`:00`, `:15`, `:30` or `:45`). From 1 to 96 times.","minItems":1,"maxItems":96,"type":"array","items":{"type":"string","pattern":"^([01]\\d|2[0-3]):(00|15|30|45)$","examples":["09:00"]}},"startDate":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC. For frequencies other than `hourly`, set it to the date and time of the first run: the app shows its time as the schedule's time, and when someone changes the schedule's frequency or days there, it rebuilds `cronExpression` at that time.","examples":["2026-11-02T09:00:00Z"]},"endDate":{"default":null,"description":"When the schedule ends: it never runs the report after this date and time. Omit it or pass `null` for a schedule that never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC. Must be later than `startDate`. Set it later than the last run you want: a run at exactly this time may be skipped.","examples":["2027-11-02T09:00:00Z"],"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}]},"timezone":{"type":"string","minLength":1,"description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`. UTC offsets such as `+05:30` aren't accepted.","examples":["America\/New_York"]},"status":{"default":"active","description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again. Omit it for `active`. To pause or resume a schedule, send the schedules from `getReportSchedules` with its `status` changed.","examples":["paused"],"type":"string","enum":["active","paused"]}},"required":["frequency","startDate","timezone"],"additionalProperties":false},"description":"The new schedules of every report. They replace all of each report's current schedules; send an empty list to remove them all. Each schedule updates the whole report: to update only some syncs of a report, set its schedules with `updateReportSchedules`. Up to 10."}},"required":["ids","schedules"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"results":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","description":"The report, by its `id` from `ids`."},"status":{"type":"string","const":"done","description":"The call succeeded on this report."},"result":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the schedule. `updateReportSchedules` replaces every schedule, so the ids change each time you call it."},"frequency":{"type":"string","enum":["daily","weekly","monthly","quarterly","hourly","yearly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires; those made in the app run every day, on chosen weekdays, on chosen days of the month, or every three months, respectively. `yearly` can't be set through the API or the app, and also runs on `cronExpression`."},"cronExpression":{"type":"string","description":"When the schedule runs, as a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`. For an `hourly` schedule, Rollstack generates it from `selectedTimes` and runs the report at those times instead. Monthly schedules made in the app can use `L` and `#`, such as `0 9 L * *` (last day of the month) or `0 9 ? * 1#1` (first Monday)."},"selectedTimes":{"type":"array","items":{"type":"string"},"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`. Other frequencies don't use it; it's empty on those set through the API."},"startDate":{"description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule ends: it never runs the report after this date and time. `null` if the schedule never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC."},"timezone":{"type":"string","description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`."},"syncIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does."},"status":{"type":"string","enum":["active","paused"],"description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again."},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule will next run the report. `null` if it is `paused` or has no runs left before its `endDate`. Unlike `startDate` and `endDate`, this is an actual UTC time."}},"required":["id","frequency","cronExpression","selectedTimes","startDate","endDate","timezone","syncIds","status","nextRunAt"],"additionalProperties":false},"description":"The report's schedules, as `getReportSchedules` answers them."}},"required":["id","status","result"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","description":"The report, by its `id` from `ids`."},"status":{"type":"string","const":"failed","description":"The call failed on this report and changed nothing on it. The other reports are unaffected."},"error":{"type":"object","properties":{"code":{"type":"string","description":"A stable, machine-readable code for the error, such as `api-key-missing-scope` or `data-validation-error`. Use it, rather than `message`, to handle specific errors in your code."},"message":{"type":"string","description":"A human-readable explanation of what went wrong, to log or show to people. When the request's path parameters, query or body are invalid (`data-validation-error`), it lists each invalid field by its path, with the problem, such as `body.emails.0: Invalid email address`."},"statusCode":{"type":"number","description":"The HTTP status the same call on this report alone would answer, such as `404` or `403`."}},"required":["code","message","statusCode"],"additionalProperties":false,"description":"Why this report failed, as the endpoint for one report would answer. Retry only these reports."}},"required":["id","status","error"],"additionalProperties":false}]},"description":"One result per report, each naming its `id`."}},"required":["results"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/emails":{"get":{"operationId":"listEmails","summary":"List sent emails of all reports","description":"The emails every report the user can see sent, of any type, newest first, each with its report, as the app's Email sends page lists them: pass status failed and since to find the ones that didn't go out, and burstId for one burst's. Same fields as listReportEmails. Answers up to limit emails, 20 by default and 200 at most, and a nextCursor: pass it as cursor for the next page, until it is null.\n\nRequires the `slide_decks:read` scope.","tags":["Email"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"limit","in":"query","required":false,"description":"Maximum number of emails to return on this page, from 1 to 200. Defaults to `20`.","schema":{"default":20,"description":"Maximum number of emails to return on this page, from 1 to 200. Defaults to `20`.","type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","schema":{"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","examples":["6c1f9a2e-3b4d-4e8f-9a1b-2c3d4e5f6a7b"],"type":"string"}},{"name":"status","in":"query","required":false,"description":"Only the emails in this state, as the Email sends page filters them: `failed` the ones that could not be sent, `opened` the ones a recipient opened, and `delivered` the ones the email server accepted, opened or not. If omitted, every email.","schema":{"description":"Only the emails in this state, as the Email sends page filters them: `failed` the ones that could not be sent, `opened` the ones a recipient opened, and `delivered` the ones the email server accepted, opened or not. If omitted, every email.","type":"string","enum":["delivered","failed","opened"]}},{"name":"since","in":"query","required":false,"description":"Only what happened at or after this time, as an ISO 8601 date and time in UTC, such as `2026-11-08T18:00:00Z`. If omitted, from the start.","schema":{"description":"Only what happened at or after this time, as an ISO 8601 date and time in UTC, such as `2026-11-08T18:00:00Z`. If omitted, from the start.","examples":["2026-11-08T18:00:00Z"],"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},{"name":"burstId","in":"query","required":false,"description":"Only the emails of this burst, by its `id` from `listBursts`: each variant's own emails, and the emails its email configurations sent, which list its template as their report. If omitted, every report's.","schema":{"description":"Only the emails of this burst, by its `id` from `listBursts`: each variant's own emails, and the emails its email configurations sent, which list its template as their report. If omitted, every report's.","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the sent email."},"sentAt":{"description":"When it was sent.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"status":{"description":"`delivered` when the email server accepted it, `failed` when it could not be sent (`error` says why), and `opened` once a recipient opened it, which Rollstack sees only when the organization has email analytics on.","type":"string","enum":["delivered","failed","opened"]},"trigger":{"anyOf":[{"type":"string","enum":["manual","scheduled"]},{"type":"null"}],"description":"`scheduled` when a scheduled run of the report sent it; `manual` when someone sent it, in the app or with `sendReportEmail`. `null` when it was not recorded."},"sender":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"type":"string"}},"required":["name","email"],"additionalProperties":false,"description":"The member it was sent as: who sent it, or whose run sent it."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The email's subject. `null` unless you own the report or it is shared with you directly, as on the Email sends page."},"to":{"type":"array","items":{"type":"string"},"description":"The addresses it was sent to. Empty unless you own the report, it is shared with you directly, or you are an owner or admin of the organization."},"cc":{"type":"array","items":{"type":"string"},"description":"The addresses copied on it, under the same rule as `to`."},"bcc":{"type":"array","items":{"type":"string"},"description":"The addresses it was blind-copied to, under the same rule as `to`."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it could not be sent, when it `failed`. `null` otherwise, or when you may not see its `subject`."},"report":{"type":"object","properties":{"id":{"type":"string","description":"The report's `id`, to pass to the `\/reports\/{id}` endpoints, such as `getReport`."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's name."}},"required":["id","name"],"additionalProperties":false,"description":"The report that sent it."}},"required":["id","sentAt","status","trigger","sender","subject","to","cc","bcc","error","report"],"additionalProperties":false},"description":"The emails every report you can see sent, of any type, newest first, with what the Email sends page hides from you left empty. To find the emails that failed, pass `status` `failed` and `since`."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass it as `cursor` to get the next page of emails. `null` when there are no more."}},"required":["data","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/email-config":{"get":{"operationId":"getReportEmailConfig","summary":"Get email settings","description":"Who a report's email goes to and how it is sent, for a report of any type. Answers 404 until its email is set up, as on a burst's variant that sends no email of its own. For a burst, read `listBurstVariants`, which has every variant's recipients, and `listBurstEmailConfigs` rather than calling this on each variant. On an older report that sends to several recipient groups, `to`, `cc`, `bcc` and `replyTo` list every group's addresses together.\n\nRequires the `slide_decks:read` scope.","tags":["Email"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"to":{"type":"array","items":{"type":"string"},"description":"The addresses the report's email is sent to. When empty, no one receives it: the report's runs send no email and `sendReportEmail` returns 400."},"cc":{"type":"array","items":{"type":"string"},"description":"The addresses copied on the report's email, which every recipient can see."},"bcc":{"type":"array","items":{"type":"string"},"description":"The addresses that also receive the report's email without the other recipients seeing them."},"replyTo":{"type":"array","items":{"type":"string"},"description":"The addresses recipients' replies go to instead of the sender. They don't receive the email themselves. Empty when replies go to the sender."},"groupRecipients":{"type":"boolean","description":"Whether all the addresses in `to` receive one email together. When `false`, each address in `to` gets its own email with the same `cc`, `bcc` and `replyTo`, so the addresses in `cc` and `bcc` receive one copy per address in `to`."},"smtpServerId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SMTP connection the report's email is sent through, from `listSmtpConnections`; recipients see its `from` address as the sender. `null` when the email is sent from Rollstack's own address."},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"],"description":"How the email delivers the report. `pdf` and `ppt` send it as a PDF or PowerPoint file, attached or behind a download button (see `sendAttachmentAsLink`); a slide deck leaves its hidden slides out. `link` sends a link to the Google Drive or OneDrive file an older report updates, shared with the recipients as set in the app; an email report sends its content in the email itself, and a slide deck has no such file, so one whose settings still contain `link` is emailed as a PDF behind a download button. `cloudLink` (Exported link in the app), for slide decks only, sends a link to the copy exported to Google Drive or OneDrive and shares it with the addresses in `to`, `cc` and `bcc` with the sharing permission set in the app, viewer unless changed there; if no permission is set, as after PDF or PPT was picked in the app, the copy isn't shared with them."},"sendAttachmentAsLink":{"type":"boolean","description":"Whether the email puts the `pdf` or `ppt` file behind a Download PDF or Download PPT button instead of attaching it. When `false`, the file is attached. Has no effect with `cloudLink`."},"trigger":{"type":"string","enum":["all","none","scheduled"],"description":"Which of the report's runs email it automatically. A run emails it when it updates everything, or when all its failures are in `ignoredFailureStatusMessages`. On a slide deck, `all` and `scheduled` work the same way: only runs started by its schedules (see `getReportSchedules`) send the email, and a slide deck with no datasheets is never emailed by its runs. On an older report, `all` emails after every run of the whole report, whether started by a schedule, with `startReportRun` or in the app, and `scheduled` only after runs its schedules start; a run of only some syncs never emails it. With `none` (Manual in the app), no run sends it: the email goes out only when sent with `sendReportEmail` or from the app."},"ignoredFailureStatusMessages":{"type":"array","items":{"type":"string","enum":["tableau_view_not_found","dashboard_not_found","dashboard_tab_not_found","dashboard_not_ready","dashboard_has_errors","dashboard_invalid_layout","metabase_element_not_found","looker_element_not_found","element_not_found","google_slide_not_found","slide_not_found","file_not_found","sheet_not_found","sheet_hidden","range_not_found","duplicate_file_failed","merged_range_on_filter_range","insufficient_permissions","image_cropping_failed","visualization_not_found","visualization_not_ready","visualization_has_errors","visualization_empty","invalid_credentials","missing_credentials","instance_unavailable","column_not_found","empty_data","fetch_summary_data_error","fetch_visual_specification_error","incorrect_data_structure","missing_data","missing_formatted_value","malformed_data","viz_not_ready","worksheet_not_found","sync_not_found","file_update_failed","internal_server_error"]},"description":"The failures that don't stop a run from emailing the report (see `trigger`). A run with failures still sends the email when all of them are in this list. On a slide deck, a run in which every datasheet fails never does. A slide deck's run records each failed datasheet as `internal_server_error`, so on a slide deck that is the only value with an effect. An older report's run records each failed sync's own reason, the `error.code` `listReportSyncs` shows.\n\nThe other values describe why a sync of an older report failed, and have an effect only on older reports:\n\n- `dashboard_not_found`, or the older `tableau_view_not_found`: the dashboard, Tableau workbook, Power BI report or spreadsheet could not be found.\n- `dashboard_tab_not_found`: the dashboard tab, Tableau view, Power BI report page or spreadsheet sheet could not be found.\n- `dashboard_not_ready`: the dashboard took too long to load.\n- `dashboard_has_errors`: the dashboard or spreadsheet failed to load because of an error in the tool it comes from.\n- `dashboard_invalid_layout`: the dashboard's layout is invalid, and it needs to be saved again.\n- `element_not_found`, or the older `metabase_element_not_found` and `looker_element_not_found`: the visualization could not be found.\n- `slide_not_found`, or the older `google_slide_not_found`: the slide that shows the visualization could not be found.\n- `file_not_found`: the spreadsheet file the visualization comes from could not be found.\n- `sheet_not_found`: the spreadsheet sheet could not be found.\n- `sheet_hidden`: the spreadsheet sheet is hidden and needs to be unhidden.\n- `range_not_found`: the spreadsheet range could not be found.\n- `duplicate_file_failed`: Rollstack could not prepare the spreadsheet file for the update.\n- `merged_range_on_filter_range`: the visualization has merged cells, which filters can't be applied to.\n- `insufficient_permissions`: the owner doesn't have edit access to the file.\n- `image_cropping_failed`: Rollstack could not crop the visualization's image.\n- `visualization_not_found`: the visualization could not be found in the dashboard.\n- `visualization_not_ready`: the visualization took too long to load.\n- `visualization_has_errors`: the visualization failed to load because of an error in the tool it comes from.\n- `visualization_empty`, or the older `empty_data`: the visualization is empty.\n- `invalid_credentials`: the connection's credentials are invalid.\n- `missing_credentials`: the connection's credentials were deleted, or the owner's access to it was suspended.\n- `instance_unavailable`: the data source's instance is temporarily unavailable.\n- `column_not_found`: a column the native chart uses is missing from its data.\n- `fetch_summary_data_error`, `fetch_visual_specification_error`, `missing_data`, `missing_formatted_value` and `viz_not_ready`: Rollstack could not fetch the data of a native chart.\n- `incorrect_data_structure`: the native chart's structure doesn't fit its data.\n- `malformed_data`: Rollstack could not fetch the data of a native chart or, from Snowflake, Databricks or BigQuery, the query is invalid.\n- `worksheet_not_found`: the Tableau worksheet could not be found.\n- `sync_not_found`: the visualization was deleted.\n- `file_update_failed`: the data was fetched but could not be written into the file."},"emailAnalyticsEnabled":{"type":"boolean","description":"Whether Rollstack tracks when recipients open the report's email; opened emails show as Opened in the report's Email sends panel in the app. Opens are tracked only while email analytics is also on for the organization (`emailAnalyticsEnabled` from `getOrganization`). Rollstack detects them through an invisible image in the email."},"createdAt":{"description":"When the report's email settings were created. Until they exist, `getReportEmailConfig` returns 404.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's email settings were last saved. Changes the slides agent makes to the recipients alone don't update it.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["to","cc","bcc","replyTo","groupRecipients","smtpServerId","sharingFormat","sendAttachmentAsLink","trigger","ignoredFailureStatusMessages","emailAnalyticsEnabled","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"put":{"operationId":"updateReportEmailConfig","summary":"Replace email settings","description":"Sets who a report's email goes to and how it is sent, for a report of any type, replacing the settings this endpoint covers; Drive sharing, attachment folders and the email's subject and body stay as set in the app. Only its editors may. The sender must be the user's own or shared with the organization. A report that sends to several recipient groups returns 400: change those in the app.\n\nRequires the `slide_decks:email` scope.","tags":["Email"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"to":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"The addresses to send the report's email to. If empty, no one receives it: the report's runs send no email and `sendReportEmail` returns 400. At most 100 addresses across `to`, `cc` and `bcc`."},"cc":{"default":[],"description":"The addresses to copy on the report's email, which every recipient can see. If omitted, no one is copied. Counts toward the 100 addresses allowed across `to`, `cc` and `bcc`.","type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]}},"bcc":{"default":[],"description":"The addresses to also send the report's email to without the other recipients seeing them. If omitted, no one is blind-copied. Counts toward the 100 addresses allowed across `to`, `cc` and `bcc`.","type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]}},"replyTo":{"default":[],"description":"The addresses recipients' replies should go to instead of the sender. They don't receive the email themselves. If omitted, replies go to the sender.","type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]}},"groupRecipients":{"default":true,"description":"Whether to send one email to all the addresses in `to` together. Set it to `false` to send each address in `to` its own email with the same `cc`, `bcc` and `replyTo`; the addresses in `cc` and `bcc` then receive one copy per address in `to`. Defaults to `true`.","type":"boolean"},"smtpServerId":{"default":null,"description":"The SMTP connection to send the report's email through, from `listSmtpConnections`; recipients see its `from` address as the sender. If `null` or omitted, the email is sent from Rollstack's own address. A connection `listSmtpConnections` doesn't list, or a Google or Microsoft account Rollstack can no longer send from, returns 403 unless it is already the report's sender.","examples":["9f8e7d6c-5b4a-4392-8170-6f5e4d3c2b1a"],"anyOf":[{"type":"string"},{"type":"null"}]},"sharingFormat":{"description":"How the email delivers the report. `pdf` and `ppt` send it as a PDF or PowerPoint file, attached or behind a download button (see `sendAttachmentAsLink`); a slide deck leaves its hidden slides out. `link` sends a link to the Google Drive or OneDrive file an older report updates, shared with the recipients as set in the app; an email report sends its content in the email itself, and a slide deck has no such file, so one whose settings still contain `link` is emailed as a PDF behind a download button. `cloudLink` (Exported link in the app), for slide decks only, sends a link to the copy exported to Google Drive or OneDrive and shares it with the addresses in `to`, `cc` and `bcc` with the sharing permission set in the app, viewer unless changed there; if no permission is set, as after PDF or PPT was picked in the app, the copy isn't shared with them. `cloudLink` on an older report, `link` on a slide deck, or `ppt` on a Google Docs or Word report returns 400. For `cloudLink`, set up the export in the report's Update runs settings in the app first. If omitted, keeps the current format, or for a report whose email isn't set up yet, `pdf` on a slide deck and `link` on an older report.","type":"string","enum":["link","pdf","ppt","cloudLink"]},"sendAttachmentAsLink":{"description":"Whether the email puts the `pdf` or `ppt` file behind a Download PDF or Download PPT button instead of attaching it. When `false`, the file is attached. Has no effect with `cloudLink`. If omitted, keeps the current setting, or for a report whose email isn't set up yet, `true` on a slide deck and `false` on an older report.","type":"boolean"},"trigger":{"default":"all","description":"Which of the report's runs email it automatically. A run emails it when it updates everything, or when all its failures are in `ignoredFailureStatusMessages`. On a slide deck, `all` and `scheduled` work the same way: only runs started by its schedules (see `getReportSchedules`) send the email, and a slide deck with no datasheets is never emailed by its runs. On an older report, `all` emails after every run of the whole report, whether started by a schedule, with `startReportRun` or in the app, and `scheduled` only after runs its schedules start; a run of only some syncs never emails it. With `none` (Manual in the app), no run sends it: the email goes out only when sent with `sendReportEmail` or from the app. Defaults to `all`.","type":"string","enum":["all","none","scheduled"]},"ignoredFailureStatusMessages":{"default":["slide_not_found"],"description":"The failures that shouldn't stop a run from emailing the report (see `trigger`). A run with failures still sends the email when all of them are in this list. On a slide deck, a run in which every datasheet fails never does. On a slide deck, include `internal_server_error` to email the report even when some of its datasheets fail. On an older report, include the `error.code` values from `listReportSyncs` to ignore. Defaults to `slide_not_found` alone, so by default a slide deck's run with any failed datasheet sends no email, and an older report's run still emails when only syncs on a missing slide fail.\n\nThe other values describe why a sync of an older report failed, and have an effect only on older reports:\n\n- `dashboard_not_found`, or the older `tableau_view_not_found`: the dashboard, Tableau workbook, Power BI report or spreadsheet could not be found.\n- `dashboard_tab_not_found`: the dashboard tab, Tableau view, Power BI report page or spreadsheet sheet could not be found.\n- `dashboard_not_ready`: the dashboard took too long to load.\n- `dashboard_has_errors`: the dashboard or spreadsheet failed to load because of an error in the tool it comes from.\n- `dashboard_invalid_layout`: the dashboard's layout is invalid, and it needs to be saved again.\n- `element_not_found`, or the older `metabase_element_not_found` and `looker_element_not_found`: the visualization could not be found.\n- `slide_not_found`, or the older `google_slide_not_found`: the slide that shows the visualization could not be found.\n- `file_not_found`: the spreadsheet file the visualization comes from could not be found.\n- `sheet_not_found`: the spreadsheet sheet could not be found.\n- `sheet_hidden`: the spreadsheet sheet is hidden and needs to be unhidden.\n- `range_not_found`: the spreadsheet range could not be found.\n- `duplicate_file_failed`: Rollstack could not prepare the spreadsheet file for the update.\n- `merged_range_on_filter_range`: the visualization has merged cells, which filters can't be applied to.\n- `insufficient_permissions`: the owner doesn't have edit access to the file.\n- `image_cropping_failed`: Rollstack could not crop the visualization's image.\n- `visualization_not_found`: the visualization could not be found in the dashboard.\n- `visualization_not_ready`: the visualization took too long to load.\n- `visualization_has_errors`: the visualization failed to load because of an error in the tool it comes from.\n- `visualization_empty`, or the older `empty_data`: the visualization is empty.\n- `invalid_credentials`: the connection's credentials are invalid.\n- `missing_credentials`: the connection's credentials were deleted, or the owner's access to it was suspended.\n- `instance_unavailable`: the data source's instance is temporarily unavailable.\n- `column_not_found`: a column the native chart uses is missing from its data.\n- `fetch_summary_data_error`, `fetch_visual_specification_error`, `missing_data`, `missing_formatted_value` and `viz_not_ready`: Rollstack could not fetch the data of a native chart.\n- `incorrect_data_structure`: the native chart's structure doesn't fit its data.\n- `malformed_data`: Rollstack could not fetch the data of a native chart or, from Snowflake, Databricks or BigQuery, the query is invalid.\n- `worksheet_not_found`: the Tableau worksheet could not be found.\n- `sync_not_found`: the visualization was deleted.\n- `file_update_failed`: the data was fetched but could not be written into the file.","type":"array","items":{"type":"string","enum":["tableau_view_not_found","dashboard_not_found","dashboard_tab_not_found","dashboard_not_ready","dashboard_has_errors","dashboard_invalid_layout","metabase_element_not_found","looker_element_not_found","element_not_found","google_slide_not_found","slide_not_found","file_not_found","sheet_not_found","sheet_hidden","range_not_found","duplicate_file_failed","merged_range_on_filter_range","insufficient_permissions","image_cropping_failed","visualization_not_found","visualization_not_ready","visualization_has_errors","visualization_empty","invalid_credentials","missing_credentials","instance_unavailable","column_not_found","empty_data","fetch_summary_data_error","fetch_visual_specification_error","incorrect_data_structure","missing_data","missing_formatted_value","malformed_data","viz_not_ready","worksheet_not_found","sync_not_found","file_update_failed","internal_server_error"]}},"emailAnalyticsEnabled":{"default":false,"description":"Whether to track when recipients open the report's email; opened emails show as Opened in the report's Email sends panel in the app. Setting it to `true` returns 403 unless email analytics is on for the organization (`emailAnalyticsEnabled` from `getOrganization`). Defaults to `false`.","type":"boolean"}},"required":["to"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"to":{"type":"array","items":{"type":"string"},"description":"The addresses the report's email is sent to. When empty, no one receives it: the report's runs send no email and `sendReportEmail` returns 400."},"cc":{"type":"array","items":{"type":"string"},"description":"The addresses copied on the report's email, which every recipient can see."},"bcc":{"type":"array","items":{"type":"string"},"description":"The addresses that also receive the report's email without the other recipients seeing them."},"replyTo":{"type":"array","items":{"type":"string"},"description":"The addresses recipients' replies go to instead of the sender. They don't receive the email themselves. Empty when replies go to the sender."},"groupRecipients":{"type":"boolean","description":"Whether all the addresses in `to` receive one email together. When `false`, each address in `to` gets its own email with the same `cc`, `bcc` and `replyTo`, so the addresses in `cc` and `bcc` receive one copy per address in `to`."},"smtpServerId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SMTP connection the report's email is sent through, from `listSmtpConnections`; recipients see its `from` address as the sender. `null` when the email is sent from Rollstack's own address."},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"],"description":"How the email delivers the report. `pdf` and `ppt` send it as a PDF or PowerPoint file, attached or behind a download button (see `sendAttachmentAsLink`); a slide deck leaves its hidden slides out. `link` sends a link to the Google Drive or OneDrive file an older report updates, shared with the recipients as set in the app; an email report sends its content in the email itself, and a slide deck has no such file, so one whose settings still contain `link` is emailed as a PDF behind a download button. `cloudLink` (Exported link in the app), for slide decks only, sends a link to the copy exported to Google Drive or OneDrive and shares it with the addresses in `to`, `cc` and `bcc` with the sharing permission set in the app, viewer unless changed there; if no permission is set, as after PDF or PPT was picked in the app, the copy isn't shared with them."},"sendAttachmentAsLink":{"type":"boolean","description":"Whether the email puts the `pdf` or `ppt` file behind a Download PDF or Download PPT button instead of attaching it. When `false`, the file is attached. Has no effect with `cloudLink`."},"trigger":{"type":"string","enum":["all","none","scheduled"],"description":"Which of the report's runs email it automatically. A run emails it when it updates everything, or when all its failures are in `ignoredFailureStatusMessages`. On a slide deck, `all` and `scheduled` work the same way: only runs started by its schedules (see `getReportSchedules`) send the email, and a slide deck with no datasheets is never emailed by its runs. On an older report, `all` emails after every run of the whole report, whether started by a schedule, with `startReportRun` or in the app, and `scheduled` only after runs its schedules start; a run of only some syncs never emails it. With `none` (Manual in the app), no run sends it: the email goes out only when sent with `sendReportEmail` or from the app."},"ignoredFailureStatusMessages":{"type":"array","items":{"type":"string","enum":["tableau_view_not_found","dashboard_not_found","dashboard_tab_not_found","dashboard_not_ready","dashboard_has_errors","dashboard_invalid_layout","metabase_element_not_found","looker_element_not_found","element_not_found","google_slide_not_found","slide_not_found","file_not_found","sheet_not_found","sheet_hidden","range_not_found","duplicate_file_failed","merged_range_on_filter_range","insufficient_permissions","image_cropping_failed","visualization_not_found","visualization_not_ready","visualization_has_errors","visualization_empty","invalid_credentials","missing_credentials","instance_unavailable","column_not_found","empty_data","fetch_summary_data_error","fetch_visual_specification_error","incorrect_data_structure","missing_data","missing_formatted_value","malformed_data","viz_not_ready","worksheet_not_found","sync_not_found","file_update_failed","internal_server_error"]},"description":"The failures that don't stop a run from emailing the report (see `trigger`). A run with failures still sends the email when all of them are in this list. On a slide deck, a run in which every datasheet fails never does. A slide deck's run records each failed datasheet as `internal_server_error`, so on a slide deck that is the only value with an effect. An older report's run records each failed sync's own reason, the `error.code` `listReportSyncs` shows.\n\nThe other values describe why a sync of an older report failed, and have an effect only on older reports:\n\n- `dashboard_not_found`, or the older `tableau_view_not_found`: the dashboard, Tableau workbook, Power BI report or spreadsheet could not be found.\n- `dashboard_tab_not_found`: the dashboard tab, Tableau view, Power BI report page or spreadsheet sheet could not be found.\n- `dashboard_not_ready`: the dashboard took too long to load.\n- `dashboard_has_errors`: the dashboard or spreadsheet failed to load because of an error in the tool it comes from.\n- `dashboard_invalid_layout`: the dashboard's layout is invalid, and it needs to be saved again.\n- `element_not_found`, or the older `metabase_element_not_found` and `looker_element_not_found`: the visualization could not be found.\n- `slide_not_found`, or the older `google_slide_not_found`: the slide that shows the visualization could not be found.\n- `file_not_found`: the spreadsheet file the visualization comes from could not be found.\n- `sheet_not_found`: the spreadsheet sheet could not be found.\n- `sheet_hidden`: the spreadsheet sheet is hidden and needs to be unhidden.\n- `range_not_found`: the spreadsheet range could not be found.\n- `duplicate_file_failed`: Rollstack could not prepare the spreadsheet file for the update.\n- `merged_range_on_filter_range`: the visualization has merged cells, which filters can't be applied to.\n- `insufficient_permissions`: the owner doesn't have edit access to the file.\n- `image_cropping_failed`: Rollstack could not crop the visualization's image.\n- `visualization_not_found`: the visualization could not be found in the dashboard.\n- `visualization_not_ready`: the visualization took too long to load.\n- `visualization_has_errors`: the visualization failed to load because of an error in the tool it comes from.\n- `visualization_empty`, or the older `empty_data`: the visualization is empty.\n- `invalid_credentials`: the connection's credentials are invalid.\n- `missing_credentials`: the connection's credentials were deleted, or the owner's access to it was suspended.\n- `instance_unavailable`: the data source's instance is temporarily unavailable.\n- `column_not_found`: a column the native chart uses is missing from its data.\n- `fetch_summary_data_error`, `fetch_visual_specification_error`, `missing_data`, `missing_formatted_value` and `viz_not_ready`: Rollstack could not fetch the data of a native chart.\n- `incorrect_data_structure`: the native chart's structure doesn't fit its data.\n- `malformed_data`: Rollstack could not fetch the data of a native chart or, from Snowflake, Databricks or BigQuery, the query is invalid.\n- `worksheet_not_found`: the Tableau worksheet could not be found.\n- `sync_not_found`: the visualization was deleted.\n- `file_update_failed`: the data was fetched but could not be written into the file."},"emailAnalyticsEnabled":{"type":"boolean","description":"Whether Rollstack tracks when recipients open the report's email; opened emails show as Opened in the report's Email sends panel in the app. Opens are tracked only while email analytics is also on for the organization (`emailAnalyticsEnabled` from `getOrganization`). Rollstack detects them through an invisible image in the email."},"createdAt":{"description":"When the report's email settings were created. Until they exist, `getReportEmailConfig` returns 404.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's email settings were last saved. Changes the slides agent makes to the recipients alone don't update it.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["to","cc","bcc","replyTo","groupRecipients","smtpServerId","sharingFormat","sendAttachmentAsLink","trigger","ignoredFailureStatusMessages","emailAnalyticsEnabled","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/emails":{"get":{"operationId":"listReportEmails","summary":"List sent emails","description":"The emails a report of any type sent, newest first: when, how, to whom, and whether each was delivered, failed or opened. To check many reports, call listEmails instead, which lists every report's emails with their report, and a burst's with its burstId. Answers up to limit emails, 20 by default and 200 at most, and a nextCursor: pass it as cursor for the next page, until it is null.\n\nRequires the `slide_decks:read` scope.","tags":["Email"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"limit","in":"query","required":false,"description":"Maximum number of emails to return on this page, from 1 to 200. Defaults to `20`.","schema":{"default":20,"description":"Maximum number of emails to return on this page, from 1 to 200. Defaults to `20`.","type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","schema":{"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","examples":["6c1f9a2e-3b4d-4e8f-9a1b-2c3d4e5f6a7b"],"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the sent email."},"sentAt":{"description":"When it was sent.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"status":{"description":"`delivered` when the email server accepted it, `failed` when it could not be sent (`error` says why), and `opened` once a recipient opened it, which Rollstack sees only when the organization has email analytics on.","type":"string","enum":["delivered","failed","opened"]},"trigger":{"anyOf":[{"type":"string","enum":["manual","scheduled"]},{"type":"null"}],"description":"`scheduled` when a scheduled run of the report sent it; `manual` when someone sent it, in the app or with `sendReportEmail`. `null` when it was not recorded."},"sender":{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}]},"email":{"type":"string"}},"required":["name","email"],"additionalProperties":false,"description":"The member it was sent as: who sent it, or whose run sent it."},"subject":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The email's subject. `null` unless you own the report or it is shared with you directly, as on the Email sends page."},"to":{"type":"array","items":{"type":"string"},"description":"The addresses it was sent to. Empty unless you own the report, it is shared with you directly, or you are an owner or admin of the organization."},"cc":{"type":"array","items":{"type":"string"},"description":"The addresses copied on it, under the same rule as `to`."},"bcc":{"type":"array","items":{"type":"string"},"description":"The addresses it was blind-copied to, under the same rule as `to`."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why it could not be sent, when it `failed`. `null` otherwise, or when you may not see its `subject`."}},"required":["id","sentAt","status","trigger","sender","subject","to","cc","bcc","error"],"additionalProperties":false},"description":"The emails the report sent, newest first: the ones sent with `sendReportEmail` or from the app, and the ones its schedules' runs sent. Set up who gets them with `updateReportEmailConfig`."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass it as `cursor` to get the next page of emails. `null` when there are no more."}},"required":["data","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"sendReportEmail","summary":"Send email","description":"Emails a report to its recipients now, as it is. Only its editors may. Answers 400 when it has no recipients. An email report needs its email template set up in the app first. Sends in the background; while the user's send of the report is going, starts nothing. At most 5 sends a minute per user, test sends included. From an AI client, the send only asks the user to confirm it in Rollstack: it answers `confirmation-required` and runs once they confirm.\n\nRequires the `slide_decks:email` scope.","tags":["Email"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/emails\/test":{"post":{"operationId":"sendReportTestEmail","summary":"Send test email","description":"Sends a report's email to the user only, and waits until it is sent. Only its editors may. Counts against the 5 sends a minute.\n\nRequires the `slide_decks:email` scope.","tags":["Email"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts":{"get":{"operationId":"listBursts","summary":"List bursts","description":"The bursts of reports the user can see, newest first: those of Rollstack reports, whose variants differ by report parameters, and those of older reports such as Google Slides or PowerPoint files, whose variants differ by filters, as kind says. Each comes with what its variants differ by and the template report they are copied from. You can filter by name, ignoring case. Answers up to limit bursts, 50 by default and 200 at most, and a nextCursor: pass it as cursor for the next page, until it is null. listReports leaves out the reports of a burst, its template and variants.\n\nRequires the `slide_decks:read` scope.","tags":["Bursts"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"name","in":"query","required":false,"description":"Only return bursts whose name contains this text, ignoring case: `region` matches `Regional Review`.","schema":{"description":"Only return bursts whose name contains this text, ignoring case: `region` matches `Regional Review`.","examples":["regional"],"type":"string","minLength":1}},{"name":"limit","in":"query","required":false,"description":"Maximum number of bursts to return on this page, from 1 to 200. Defaults to `50`.","schema":{"default":50,"description":"Maximum number of bursts to return on this page, from 1 to 200. Defaults to `50`.","type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","schema":{"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","examples":["6c1f9a2e-3b4d-4e8f-9a1b-2c3d4e5f6a7b"],"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the burst. Pass it as `id` to the other `\/bursts\/{id}` endpoints."},"name":{"type":"string","description":"Name of the burst, as members see it in Rollstack. It is the template report's name when the burst is created, and is part of each variant report's name unless `variantNaming` is `sameName`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the burst is in, by its `id` in `listFolders`. `null` when the burst is at the top level."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the burst: whoever created it, unless ownership has since been transferred in the app."},"templateReportId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The template report, which every variant was copied from when it was added, by its `id` for `getReport` and the other `\/reports\/{id}` endpoints. Changes to the template reach existing variants only when pushed from the app; variants added later copy it as it is then. `null` if the template was deleted."},"variantNaming":{"type":"string","enum":["sameName","prefix","suffix"],"description":"How each variant's report is named from the burst's name and the name the variant is added with, `EMEA` in a burst named `Regional Review`: `suffix` gives `Regional Review - EMEA`, `prefix` gives `EMEA - Regional Review`, and `sameName` gives `EMEA`. It applies to variants added from then on."},"kind":{"type":"string","enum":["parameters","filters"],"description":"What the variants differ by. `parameters`: report parameters of a Rollstack report, listed in `parameters` and set with `parameters` in `addBurstVariants`. `filters`: filters of an older report's syncs, such as a Google Slides or PowerPoint file, listed in `filters` and set with `filters` in `addBurstVariants`."},"reportType":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The type of report the burst copies, as `type` in `listReports`: `SlideDeck` for a Rollstack report, which bursts by `parameters`, any other type for an older report, which bursts by `filters`."},"parameters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The report parameter's id on the template report. Use it as a key of `parameters` in `addBurstVariants`."},"name":{"type":"string","description":"The report parameter's name, as shown in Rollstack."},"value":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false}]},{"type":"null"}],"description":"The template's value of the parameter, which a variant keeps when it doesn't set one. `null` when the template has none. A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only."}},"required":["id","name","value"],"additionalProperties":false},"description":"The template report's parameters the variants differ by, in the order their values name a variant. Each variant holds its own value of each, which its datasheets' filters read. Empty for a burst by `filters`."},"filters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The filter's id. Use it as a key of `filters` in `addBurstVariants`."},"name":{"type":"string","description":"The filter's name on its dashboard, as shown in Rollstack."},"primary":{"type":"boolean","description":"Whether the filter names the variants: a variant added without a `name` is named after its primary filters' values, in order. A secondary filter only narrows what each variant shows."},"valueType":{"anyOf":[{"type":"string","enum":["categorical","date","number","text"]},{"type":"null"}],"description":"The kind of value the filter takes, and so the `type` of a variant's value of it. `null` when Rollstack doesn't know the filter's editor: copy the shape of a variant's value instead."}},"required":["id","name","primary","valueType"],"additionalProperties":false},"description":"The filters of the template report's syncs that the variants differ by, primary ones first in the order their values name a variant. Each variant holds its own value of each, applied to the syncs that read the filter's dashboard. Empty for a burst by `parameters`."},"variantCount":{"type":"number","description":"How many variants the burst has, including any you can't open."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the burst in Rollstack."},"createdAt":{"description":"When the burst was created. `listBursts` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the burst's details last changed.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","folderId","owner","templateReportId","variantNaming","kind","reportType","parameters","filters","variantCount","appUrl","createdAt","updatedAt"],"additionalProperties":false},"description":"The bursts on this page, most recently created first."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass it as `cursor` to get the next page of bursts. `null` when there are no more."}},"required":["data","nextCursor"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createBurst","summary":"Create burst","description":"Makes a report the template of a new burst, and answers the burst, named after the report and with no variants yet. Add them with addBurstVariants. A Rollstack report's variants differ by the report parameters in parameterIds, found with getReportParameters. An older report's variants differ by the filters in filters, found with listReportSyncFilters: a folder is made for the burst in Google Drive or OneDrive and the report's file is copied into it as the template, which can take a minute. Only the report's editors may.\n\nRequires the `slide_decks:write` scope.","tags":["Bursts"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"templateReportId":{"type":"string","description":"The report to make the template of the burst, by its `id` from `listReports`. You must be able to edit it, and it can't already be part of a burst. A Rollstack report must have datasheets, and becomes the template as it is. An older report must have syncs: its file is copied into a new folder for the burst, and the copy becomes the template.","examples":["6c1f9a2e-3b4d-4e8f-9a1b-2c3d4e5f6a7b"]},"parameterIds":{"description":"For a Rollstack report: the template report's parameters the variants differ by, by their `id` from `getReportParameters`, in the order their values name a variant. Each must be `burstable` there. At least one.","minItems":1,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","examples":["5e7a9c1b-3d5f-4b7d-9e1a-3c5e7a9b1d3f"]}},"filters":{"description":"For an older report, such as a Google Slides or PowerPoint file: the filters of its syncs the variants differ by.","type":"object","properties":{"primaryIds":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string"},"description":"The filters that name the variants, by their `id` from `listReportSyncFilters`, in the order their values name a variant. 1 to 3. With more than one, each variant's file goes in a folder per value, one level per filter."},"secondaryIds":{"default":[],"description":"Filters a variant can also set, which don't name it, by their `id` from `listReportSyncFilters`.","type":"array","items":{"type":"string"}}},"required":["primaryIds"],"additionalProperties":false},"parentFolderId":{"description":"For an older report: the Google Drive or OneDrive folder to create the burst's folder in, by its id in that drive. The template and the variants' files go in the burst's folder. Defaults to the top of your drive.","type":"string"},"driveId":{"description":"For an older report: the shared drive `parentFolderId` is in. Leave it out for a folder in your own drive.","type":"string"},"variantNaming":{"default":"suffix","description":"How each variant's report is named from the burst's name and the name the variant is added with, `EMEA` in a burst named `Regional Review`: `suffix` gives `Regional Review - EMEA`, `prefix` gives `EMEA - Regional Review`, and `sameName` gives `EMEA`. It applies to variants added from then on. Defaults to `suffix`.","type":"string","enum":["sameName","prefix","suffix"]}},"required":["templateReportId"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the burst. Pass it as `id` to the other `\/bursts\/{id}` endpoints."},"name":{"type":"string","description":"Name of the burst, as members see it in Rollstack. It is the template report's name when the burst is created, and is part of each variant report's name unless `variantNaming` is `sameName`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the burst is in, by its `id` in `listFolders`. `null` when the burst is at the top level."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the burst: whoever created it, unless ownership has since been transferred in the app."},"templateReportId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The template report, which every variant was copied from when it was added, by its `id` for `getReport` and the other `\/reports\/{id}` endpoints. Changes to the template reach existing variants only when pushed from the app; variants added later copy it as it is then. `null` if the template was deleted."},"variantNaming":{"type":"string","enum":["sameName","prefix","suffix"],"description":"How each variant's report is named from the burst's name and the name the variant is added with, `EMEA` in a burst named `Regional Review`: `suffix` gives `Regional Review - EMEA`, `prefix` gives `EMEA - Regional Review`, and `sameName` gives `EMEA`. It applies to variants added from then on."},"kind":{"type":"string","enum":["parameters","filters"],"description":"What the variants differ by. `parameters`: report parameters of a Rollstack report, listed in `parameters` and set with `parameters` in `addBurstVariants`. `filters`: filters of an older report's syncs, such as a Google Slides or PowerPoint file, listed in `filters` and set with `filters` in `addBurstVariants`."},"reportType":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The type of report the burst copies, as `type` in `listReports`: `SlideDeck` for a Rollstack report, which bursts by `parameters`, any other type for an older report, which bursts by `filters`."},"parameters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The report parameter's id on the template report. Use it as a key of `parameters` in `addBurstVariants`."},"name":{"type":"string","description":"The report parameter's name, as shown in Rollstack."},"value":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false}]},{"type":"null"}],"description":"The template's value of the parameter, which a variant keeps when it doesn't set one. `null` when the template has none. A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only."}},"required":["id","name","value"],"additionalProperties":false},"description":"The template report's parameters the variants differ by, in the order their values name a variant. Each variant holds its own value of each, which its datasheets' filters read. Empty for a burst by `filters`."},"filters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The filter's id. Use it as a key of `filters` in `addBurstVariants`."},"name":{"type":"string","description":"The filter's name on its dashboard, as shown in Rollstack."},"primary":{"type":"boolean","description":"Whether the filter names the variants: a variant added without a `name` is named after its primary filters' values, in order. A secondary filter only narrows what each variant shows."},"valueType":{"anyOf":[{"type":"string","enum":["categorical","date","number","text"]},{"type":"null"}],"description":"The kind of value the filter takes, and so the `type` of a variant's value of it. `null` when Rollstack doesn't know the filter's editor: copy the shape of a variant's value instead."}},"required":["id","name","primary","valueType"],"additionalProperties":false},"description":"The filters of the template report's syncs that the variants differ by, primary ones first in the order their values name a variant. Each variant holds its own value of each, applied to the syncs that read the filter's dashboard. Empty for a burst by `parameters`."},"variantCount":{"type":"number","description":"How many variants the burst has, including any you can't open."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the burst in Rollstack."},"createdAt":{"description":"When the burst was created. `listBursts` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the burst's details last changed.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","folderId","owner","templateReportId","variantNaming","kind","reportType","parameters","filters","variantCount","appUrl","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/conversions\/latest":{"get":{"operationId":"getBurstConversion","summary":"Get burst conversion","description":"How the latest conversion of a burst of an older report, started with convertBurst, is going: `running`, `failed` with why, or `completed` with the new burst and what became of each filter, variant and sync, with the reason for each that was not converted, and what the older burst had that wasn't carried over. The template starts its update to fill its charts unless startUpdate is false, and every converted variant with updateVariants: otherwise each variant fills on its first update, which startBurstRun starts for all of them. Only the older burst's editors may.\n\nRequires the `slide_decks:read` scope.","tags":["Bursts"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"running","description":"It is still converting: ask again in a few seconds."}},"required":["status"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"failed","description":"It stopped before the new burst was made, and what it made was deleted."},"reason":{"type":"string","description":"Why."}},"required":["status","reason"],"additionalProperties":false},{"type":"object","properties":{"report":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the report. Pass it as `id` to the other `\/reports\/{id}` endpoints."},"type":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The kind of report, which decides the endpoints that work on it.\n\n- `SlideDeck`: a slide deck built in Rollstack. Every `\/reports\/{id}` endpoint works on it, except `listReportSyncs` and `convertReport`.\n- `GoogleSlides`, `GoogleDocs`, `MicrosoftPowerPoint`, `MicrosoftWord`: a file in Google Drive or OneDrive that Rollstack updates with its visualizations.\n- `UploadedPPTXFile`: a PowerPoint file uploaded to Rollstack, which it updates the same way.\n- `Email`: an email report, whose visualizations Rollstack sends in an email.\n\nOn a report that isn't a `SlideDeck`, only `getReport`, `updateReport`, `deleteReport`, `shareReport`, `unshareReport`, `getReportSchedules`, `updateReportSchedules`, `startReportRun`, `listReportRuns`, `getReportRun`, `cancelReportRun`, `listReportSyncs` and the email endpoints (`getReportEmailConfig`, `updateReportEmailConfig`, `listReportEmails`, `sendReportEmail`, `sendReportTestEmail`) work, and `convertReport` on a `GoogleSlides` or `MicrosoftPowerPoint` report. The other `\/reports\/{id}` endpoints take `SlideDeck` reports only, as their `id` says, and return `400`."},"name":{"type":"string","description":"Name of the report, as members see it in Rollstack. Change it with `updateReport`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the report is in, by its `id` in `listFolders`. `null` when the report is at the top level, outside any folder."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address. Rollstack emails this address when a scheduled run of the report fails, while `notifyOnFailure` is `true`."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the report: whoever created it, unless ownership has since been transferred, in the app or with `transferReportOwnership`. Only the owner can delete the report."},"permission":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"description":"Your access to the report, as the user the API key belongs to. `view` lets you open and export it: on a `SlideDeck`, read its slides with `getReportContent` and `getReportSlideImages`; on any other report, also see its runs, schedules and email setup. `comment` also lets you read, add, reply to and resolve comments on a `SlideDeck`'s slides. `edit` also lets you change it: rename or move it, chat with the slides agent about it, read its slide HTML, datasheets and their data, report parameters, history, runs, schedules and email setup, start runs, set its schedules and email, send its email, and share it. It's never `null` here, since the API only returns reports you can at least view."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's timezone, such as `America\/New_York`. The slides agent uses it to tell today's date, and the report's emails show the time of its last successful update (`{{last_updated_at}}`) in it. On a report that updates a file, such as a Google Slides presentation, it's also the timezone of the file's date variables, unless the organization's `timezone` replaces it. Schedules don't use it: each has its own `timezone`. `null` when the report has none, in which case the slides agent uses UTC. Reports created with `createReport` start with the organization's `timezone` from `getOrganization`, if it has one."},"notifyOnFailure":{"type":"boolean","description":"Whether Rollstack emails the report's owner when a scheduled run fails or some of its datasheets, or a file's visualizations, fail to refresh, copying everyone in `notificationMailingList`. Runs started in the app or with `startReportRun` never send this email. New reports start with `true`."},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest run ended, whatever its outcome. `null` if the report has never run."},"lastSuccessfulUpdateAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest fully successful run ended: one that refreshed every datasheet it ran on, or every visualization on a report that updates a file, with none failing. Runs with nothing to refresh don't count. The report's emails show this time as `{{last_updated_at}}`. `null` until the report has had such a run."},"lastRunStatus":{"anyOf":[{"type":"string","enum":["running","completed","failed","cancelled","timed_out"]},{"type":"null"}],"description":"How the report's latest run ended. `completed`: it finished, even if some datasheets or visualizations failed to refresh or it had none to refresh; on a `SlideDeck` report, `listReportDatasheets` shows each datasheet's `error`. `failed`: it stopped on an error, or none of its datasheets or visualizations could be refreshed. `cancelled`: it was stopped before it finished, for example with `cancelReportRun`. `null` if the report has never run. `running` and `timed_out` never appear here: check `running` to see whether a run is in progress."},"running":{"type":"boolean","description":"Whether a run of the report is in progress, whoever started it, such as you with `startReportRun`, a member in the app, or one of its schedules. While it's `true`, `startReportRun` returns that run instead of starting another."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the report in Rollstack."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link that opens the Google Slides, Google Docs, PowerPoint or Word file the report updates. `null` for a slide deck, an email report or an uploaded PowerPoint file, which have no file to open, and for a Microsoft file whose link Rollstack has not read yet."},"createdAt":{"description":"When the report was created. `listReports` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's details last changed, such as its name, folder or owner, or the outcome of its latest run.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"notificationMailingList":{"description":"Email addresses Rollstack copies when it emails the owner about a failed scheduled run, while `notifyOnFailure` is `true`. Change the list with `updateReport`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"string"}},"schedules":{"description":"The report's schedules: when Rollstack runs the report on its own to update it with fresh data. Empty if it has none, in which case the report only runs when someone starts a run. Replace them with `updateReportSchedules`. Absent on a `SlideDeck` you can only view or comment on.","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the schedule. `updateReportSchedules` replaces every schedule, so the ids change each time you call it."},"frequency":{"type":"string","enum":["daily","weekly","monthly","quarterly","hourly","yearly"],"description":"How often the schedule runs. `hourly` runs every day at each time in `selectedTimes`. `daily`, `weekly`, `monthly` and `quarterly` run whenever `cronExpression` fires; those made in the app run every day, on chosen weekdays, on chosen days of the month, or every three months, respectively. `yearly` can't be set through the API or the app, and also runs on `cronExpression`."},"cronExpression":{"type":"string","description":"When the schedule runs, as a five-field cron expression (minute, hour, day of month, month, day of week) in the schedule's `timezone`. For an `hourly` schedule, Rollstack generates it from `selectedTimes` and runs the report at those times instead. Monthly schedules made in the app can use `L` and `#`, such as `0 9 L * *` (last day of the month) or `0 9 ? * 1#1` (first Monday)."},"selectedTimes":{"type":"array","items":{"type":"string"},"description":"The times of day an `hourly` schedule runs, every day, as 24-hour `HH:mm` in the schedule's `timezone`. Other frequencies don't use it; it's empty on those set through the API."},"startDate":{"description":"When the schedule starts: it never runs the report before this date and time. This is a local date and time in the schedule's `timezone`, written as if it were UTC: `2026-11-02T09:00:00Z` means 9:00 on November 2, 2026 in that timezone, not 9:00 UTC.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"endDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule ends: it never runs the report after this date and time. `null` if the schedule never ends. Like `startDate`, this is a local date and time in the schedule's `timezone`, written as if it were UTC."},"timezone":{"type":"string","description":"The timezone the schedule runs in. Its run times (`cronExpression` or `selectedTimes`), `startDate` and `endDate` are all local times in this timezone, so a schedule set for 9:00 keeps running at 9:00 local time when daylight saving time starts or ends. Given as an IANA timezone name, such as `America\/New_York`."},"syncIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The syncs, from `listReportSyncs`, that the schedule updates on a report other than a `SlideDeck`. `null` when it updates the whole report, which a slide deck always does."},"status":{"type":"string","enum":["active","paused"],"description":"Whether the schedule runs. `active` runs the report at its times; `paused` never runs it, and keeps the schedule so it can be resumed by setting `active` again."},"nextRunAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the schedule will next run the report. `null` if it is `paused` or has no runs left before its `endDate`. Unlike `startDate` and `endDate`, this is an actual UTC time."}},"required":["id","frequency","cronExpression","selectedTimes","startDate","endDate","timezone","syncIds","status","nextRunAt"],"additionalProperties":false}},"sharedWith":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id. Pass it as `userId` to `shareReport` to change their access, or to `unshareReport` to remove it."},"email":{"type":"string","description":"The member's email address, as shown in Rollstack."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"permission":{"type":"string","enum":["view","comment","edit"],"description":"What the member can do with the report. `view` lets them open, export and duplicate it. `comment` also lets them add, reply to and resolve comments on its slides. `edit` also lets them change its slides, data, schedules, email and other settings, run it, send its email, chat with the slides agent about it, and manage who it's shared with. Neither lets them delete the report or transfer its ownership."}},"required":["userId","email","name","permission"],"additionalProperties":false},"description":"Members the report is shared with directly, with their access. Members who can open it through its folder aren't listed. Change this list with `shareReport` and `unshareReport`."}},"required":["id","type","name","folderId","owner","permission","timezone","notifyOnFailure","lastSyncedAt","lastSuccessfulUpdateAt","lastRunStatus","running","appUrl","fileUrl","createdAt","updatedAt","sharedWith"],"additionalProperties":false,"description":"The new template report, of type `SlideDeck`: the older burst's template, converted."},"conversion":{"anyOf":[{"type":"object","properties":{"converted":{"type":"array","items":{"type":"object","properties":{"syncId":{"type":"string","description":"The sync of the older report, as `listReportSyncs` lists it."},"name":{"type":"string","description":"The sync's name."},"settings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"filter"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A filter on this column."},{"type":"object","properties":{"type":{"type":"string","const":"sort"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"Its sort by this column. Not applied when no column of the datasheet is where the sort was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A split by this column. Not applied past the first 3."},{"type":"object","properties":{"type":{"type":"string","const":"format"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"format":{"type":"string"},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","format","applied"],"additionalProperties":false,"description":"A format on this column. Not applied when no column of the datasheet is where the format was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split_order"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"The order set for the columns this column splits into. Never applied: they come in the data's order."},{"type":"object","properties":{"type":{"type":"string","const":"second_chart_category"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A combo chart's second chart's own category. Never applied: both charts share the first chart's."}]},"description":"The sync's settings, such as its filters and sort, each with whether its datasheet and tile apply it."},"datasheetId":{"type":"string","description":"The datasheet that now reads its source."},"slideId":{"type":"string","description":"The slide whose tile now shows it."},"needsRun":{"type":"boolean","description":"Whether its chart stays empty until the new report's update reads the datasheet's data. Unless `startUpdate` was false, the conversion starts that update, so it fills when the run ends."}},"required":["syncId","name","settings","datasheetId","slideId","needsRun"],"additionalProperties":false},"description":"The syncs that are now tiles on the slides, each drawn from a datasheet."},"notPlaced":{"type":"array","items":{"type":"object","properties":{"syncId":{"type":"string","description":"The sync of the older report, as `listReportSyncs` lists it."},"name":{"type":"string","description":"The sync's name."},"settings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"filter"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A filter on this column."},{"type":"object","properties":{"type":{"type":"string","const":"sort"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"Its sort by this column. Not applied when no column of the datasheet is where the sort was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A split by this column. Not applied past the first 3."},{"type":"object","properties":{"type":{"type":"string","const":"format"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"format":{"type":"string"},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","format","applied"],"additionalProperties":false,"description":"A format on this column. Not applied when no column of the datasheet is where the format was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split_order"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"The order set for the columns this column splits into. Never applied: they come in the data's order."},{"type":"object","properties":{"type":{"type":"string","const":"second_chart_category"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A combo chart's second chart's own category. Never applied: both charts share the first chart's."}]},"description":"The sync's settings, such as its filters and sort, each with whether its datasheet and tile apply it."},"datasheetId":{"type":"string","description":"The datasheet that now reads its source."},"reason":{"type":"string","description":"Why no element of the slides could show it."}},"required":["syncId","name","settings","datasheetId","reason"],"additionalProperties":false},"description":"The syncs that got a datasheet, but no tile: the slides agent can build one from the datasheet."},"notConverted":{"type":"array","items":{"type":"object","properties":{"syncId":{"type":"string","description":"The sync of the older report, as `listReportSyncs` lists it."},"name":{"type":"string","description":"The sync's name."},"reason":{"type":"string","description":"Why it was not converted."}},"required":["syncId","name","reason"],"additionalProperties":false},"description":"The syncs left as they were in the new report's slides, such as a burst variant's."}},"required":["converted","notPlaced","notConverted"],"additionalProperties":false},{"type":"null"}],"description":"What became of the older report's syncs, or null when converting them failed."},"conversionError":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the syncs could not be converted, when they couldn't. The new report still exists with the file's slides, so don't convert the report again."},"notMigrated":{"type":"array","items":{"type":"string"},"description":"What the older burst had that wasn't carried over, such as its schedules, which it keeps, or automatic variant creation."},"status":{"type":"string","const":"completed","description":"The conversion ended: the new reports exist."},"burst":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the burst. Pass it as `id` to the other `\/bursts\/{id}` endpoints."},"name":{"type":"string","description":"Name of the burst, as members see it in Rollstack. It is the template report's name when the burst is created, and is part of each variant report's name unless `variantNaming` is `sameName`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the burst is in, by its `id` in `listFolders`. `null` when the burst is at the top level."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the burst: whoever created it, unless ownership has since been transferred in the app."},"templateReportId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The template report, which every variant was copied from when it was added, by its `id` for `getReport` and the other `\/reports\/{id}` endpoints. Changes to the template reach existing variants only when pushed from the app; variants added later copy it as it is then. `null` if the template was deleted."},"variantNaming":{"type":"string","enum":["sameName","prefix","suffix"],"description":"How each variant's report is named from the burst's name and the name the variant is added with, `EMEA` in a burst named `Regional Review`: `suffix` gives `Regional Review - EMEA`, `prefix` gives `EMEA - Regional Review`, and `sameName` gives `EMEA`. It applies to variants added from then on."},"kind":{"type":"string","enum":["parameters","filters"],"description":"What the variants differ by. `parameters`: report parameters of a Rollstack report, listed in `parameters` and set with `parameters` in `addBurstVariants`. `filters`: filters of an older report's syncs, such as a Google Slides or PowerPoint file, listed in `filters` and set with `filters` in `addBurstVariants`."},"reportType":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The type of report the burst copies, as `type` in `listReports`: `SlideDeck` for a Rollstack report, which bursts by `parameters`, any other type for an older report, which bursts by `filters`."},"parameters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The report parameter's id on the template report. Use it as a key of `parameters` in `addBurstVariants`."},"name":{"type":"string","description":"The report parameter's name, as shown in Rollstack."},"value":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false}]},{"type":"null"}],"description":"The template's value of the parameter, which a variant keeps when it doesn't set one. `null` when the template has none. A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only."}},"required":["id","name","value"],"additionalProperties":false},"description":"The template report's parameters the variants differ by, in the order their values name a variant. Each variant holds its own value of each, which its datasheets' filters read. Empty for a burst by `filters`."},"filters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The filter's id. Use it as a key of `filters` in `addBurstVariants`."},"name":{"type":"string","description":"The filter's name on its dashboard, as shown in Rollstack."},"primary":{"type":"boolean","description":"Whether the filter names the variants: a variant added without a `name` is named after its primary filters' values, in order. A secondary filter only narrows what each variant shows."},"valueType":{"anyOf":[{"type":"string","enum":["categorical","date","number","text"]},{"type":"null"}],"description":"The kind of value the filter takes, and so the `type` of a variant's value of it. `null` when Rollstack doesn't know the filter's editor: copy the shape of a variant's value instead."}},"required":["id","name","primary","valueType"],"additionalProperties":false},"description":"The filters of the template report's syncs that the variants differ by, primary ones first in the order their values name a variant. Each variant holds its own value of each, applied to the syncs that read the filter's dashboard. Empty for a burst by `parameters`."},"variantCount":{"type":"number","description":"How many variants the burst has, including any you can't open."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the burst in Rollstack."},"createdAt":{"description":"When the burst was created. `listBursts` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the burst's details last changed.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","folderId","owner","templateReportId","variantNaming","kind","reportType","parameters","filters","variantCount","appUrl","createdAt","updatedAt"],"additionalProperties":false},{"type":"null"}],"description":"The new burst, of kind `parameters`, whose template is the new report. `null` when no filter of the older burst could become a report parameter: the new report is then a report of its own."},"parameters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name of the filter, and of the report parameter it became."},"parameterId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report parameter the burst now varies by. `null` when the filter was not converted."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the filter was not converted. `null` when it was."}},"required":["name","parameterId","reason"],"additionalProperties":false},"description":"The older burst's filters, and what became of each."},"variants":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The older variant's report name."},"reportId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The new variant's report, by its `id` for `getReport`. `null` when the variant was not converted."},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the variant was not converted. `null` when it was."},"skippedValues":{"type":"number","description":"How many of the older variant's filter values no report parameter could take: the new variant keeps the template's value there."}},"required":["name","reportId","reason","skippedValues"],"additionalProperties":false},"description":"The older burst's variants, and what became of each."},"runs":{"type":"object","properties":{"started":{"type":"number","description":"How many reports started their update: the template unless `startUpdate` was false, and every converted variant with `updateVariants`."},"failed":{"type":"number","description":"How many reports' updates could not start: start them with `startBurstRun`, or `startReportRun` for the template."}},"required":["started","failed"],"additionalProperties":false,"description":"The updates the conversion started to fill the new reports' charts with data. Without `updateVariants`, each variant fills on its first update: start them all with `startBurstRun`."}},"required":["report","conversion","conversionError","notMigrated","status","burst","parameters","variants","runs"],"additionalProperties":false}]}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/email-configs":{"get":{"operationId":"listBurstEmailConfigs","summary":"List burst email configurations","description":"A burst's email configurations, as the app's Burst email settings show them: each one email to its own recipients that includes every variant it selects, sent only when you send it. Unlike each variant's own email, which its runs send to its own recipients. What both sent is in listEmails with burstId.\n\nRequires the `slide_decks:read` scope.","tags":["Bursts"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the configuration. Pass it as `configId` to the other `\/email-configs\/{configId}` endpoints."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The configuration's name, as shown in the burst's Emailing tab in the app."},"variantIds":{"type":"array","items":{"type":"string"},"description":"The variants the email includes, by their `id` in `listBurstVariants`. Empty includes every variant, also those added later."},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"],"description":"How the email delivers the report. `pdf` and `ppt` send it as a PDF or PowerPoint file, attached or behind a download button (see `sendAttachmentAsLink`); a slide deck leaves its hidden slides out. `link` sends a link to the Google Drive or OneDrive file an older report updates, shared with the recipients as set in the app; an email report sends its content in the email itself, and a slide deck has no such file, so one whose settings still contain `link` is emailed as a PDF behind a download button. `cloudLink` (Exported link in the app), for slide decks only, sends a link to the copy exported to Google Drive or OneDrive and shares it with the addresses in `to`, `cc` and `bcc` with the sharing permission set in the app, viewer unless changed there; if no permission is set, as after PDF or PPT was picked in the app, the copy isn't shared with them."},"sendAttachmentAsLink":{"type":"boolean","description":"Whether the email puts the `pdf` or `ppt` file behind a Download PDF or Download PPT button instead of attaching it. When `false`, the file is attached. Has no effect with `cloudLink`."},"zipAttachments":{"type":"boolean","description":"Whether the variants' files come in one zip file, with a file format."},"emailAnalyticsEnabled":{"type":"boolean","description":"Whether opens of the email are tracked."},"smtpServerId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SMTP connection the email is sent through, from `listSmtpConnections`; `null` sends from Rollstack's own address."},"to":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"The addresses the email goes to."},"cc":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"The addresses copied on the email, which every recipient can see."},"bcc":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"The addresses that also receive the email without the others seeing them."},"replyTo":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"Where replies to the email go."},"createdAt":{"description":"When the configuration was created.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the configuration last changed.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","variantIds","sharingFormat","sendAttachmentAsLink","zipAttachments","emailAnalyticsEnabled","smtpServerId","to","cc","bcc","replyTo","createdAt","updatedAt"],"additionalProperties":false},"description":"The burst's email configurations, each one email to its own recipients with the variants it includes."}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createBurstEmailConfig","summary":"Create burst email configuration","description":"Adds an email configuration to a burst and answers it: one email to its recipients with the variants it selects, every variant by default. Sends nothing. Only the burst's owner and admins may.\n\nRequires the `slide_decks:email` scope.","tags":["Bursts"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The configuration's name, as shown in the burst's Emailing tab in the app."},"variantIds":{"type":"array","items":{"type":"string"},"description":"The variants the email includes, by their `id` in `listBurstVariants`. Empty includes every variant, also those added later."},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"],"description":"How the email delivers the report. `pdf` and `ppt` send it as a PDF or PowerPoint file, attached or behind a download button (see `sendAttachmentAsLink`); a slide deck leaves its hidden slides out. `link` sends a link to the Google Drive or OneDrive file an older report updates, shared with the recipients as set in the app; an email report sends its content in the email itself, and a slide deck has no such file, so one whose settings still contain `link` is emailed as a PDF behind a download button. `cloudLink` (Exported link in the app), for slide decks only, sends a link to the copy exported to Google Drive or OneDrive and shares it with the addresses in `to`, `cc` and `bcc` with the sharing permission set in the app, viewer unless changed there; if no permission is set, as after PDF or PPT was picked in the app, the copy isn't shared with them."},"sendAttachmentAsLink":{"type":"boolean","description":"Whether the email puts the `pdf` or `ppt` file behind a Download PDF or Download PPT button instead of attaching it. When `false`, the file is attached. Has no effect with `cloudLink`."},"zipAttachments":{"type":"boolean","description":"Whether the variants' files come in one zip file, with a file format."},"emailAnalyticsEnabled":{"type":"boolean","description":"Whether opens of the email are tracked."},"smtpServerId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SMTP connection the email is sent through, from `listSmtpConnections`; `null` sends from Rollstack's own address."},"to":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"The addresses the email goes to."},"cc":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"The addresses copied on the email, which every recipient can see."},"bcc":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"The addresses that also receive the email without the others seeing them."},"replyTo":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"Where replies to the email go."}},"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Identifies the configuration. Pass it as `configId` to the other `\/email-configs\/{configId}` endpoints."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The configuration's name, as shown in the burst's Emailing tab in the app."},"variantIds":{"type":"array","items":{"type":"string"},"description":"The variants the email includes, by their `id` in `listBurstVariants`. Empty includes every variant, also those added later."},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"],"description":"How the email delivers the report. `pdf` and `ppt` send it as a PDF or PowerPoint file, attached or behind a download button (see `sendAttachmentAsLink`); a slide deck leaves its hidden slides out. `link` sends a link to the Google Drive or OneDrive file an older report updates, shared with the recipients as set in the app; an email report sends its content in the email itself, and a slide deck has no such file, so one whose settings still contain `link` is emailed as a PDF behind a download button. `cloudLink` (Exported link in the app), for slide decks only, sends a link to the copy exported to Google Drive or OneDrive and shares it with the addresses in `to`, `cc` and `bcc` with the sharing permission set in the app, viewer unless changed there; if no permission is set, as after PDF or PPT was picked in the app, the copy isn't shared with them."},"sendAttachmentAsLink":{"type":"boolean","description":"Whether the email puts the `pdf` or `ppt` file behind a Download PDF or Download PPT button instead of attaching it. When `false`, the file is attached. Has no effect with `cloudLink`."},"zipAttachments":{"type":"boolean","description":"Whether the variants' files come in one zip file, with a file format."},"emailAnalyticsEnabled":{"type":"boolean","description":"Whether opens of the email are tracked."},"smtpServerId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SMTP connection the email is sent through, from `listSmtpConnections`; `null` sends from Rollstack's own address."},"to":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"The addresses the email goes to."},"cc":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"The addresses copied on the email, which every recipient can see."},"bcc":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"The addresses that also receive the email without the others seeing them."},"replyTo":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"Where replies to the email go."},"createdAt":{"description":"When the configuration was created.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the configuration last changed.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","variantIds","sharingFormat","sendAttachmentAsLink","zipAttachments","emailAnalyticsEnabled","smtpServerId","to","cc","bcc","replyTo","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/runs":{"get":{"operationId":"getBurstRun","summary":"Get burst run","description":"Where the runs of a burst's variants stand, such as those startBurstRun started, with how each variant's latest run ended. Waits up to waitSeconds for none of them to be running and answers as soon as that happens, so call it again while the status is running. A run started in the app or by a schedule counts too.\n\nRequires the `slide_decks:read` scope.","tags":["Bursts"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"waitSeconds","in":"query","required":false,"description":"How long this call waits for the work to finish, in seconds: the message to the slides agent on `getReportMessage`, the run on `getReportRun`, the batch of variants being added on `getBurstVariantBatch`, the runs of a burst's variants on `getBurstRun`, the export on `getRunsExport`. It returns as soon as the work is done, or as things stand once the time is up, so call it again while `status` is still `queued` or `running`. `0` returns at once. Defaults to `20`; at most `30`.","schema":{"default":20,"description":"How long this call waits for the work to finish, in seconds: the message to the slides agent on `getReportMessage`, the run on `getReportRun`, the batch of variants being added on `getBurstVariantBatch`, the runs of a burst's variants on `getBurstRun`, the export on `getRunsExport`. It returns as soon as the work is done, or as things stand once the time is up, so call it again while `status` is still `queued` or `running`. `0` returns at once. Defaults to `20`; at most `30`.","type":"integer","minimum":0,"maximum":30}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"status":{"type":"string","enum":["running","completed"],"description":"Where the burst's run stands. `running`: some variants are still running; call `getBurstRun` again to keep waiting. `completed`: none is running, and each variant's `lastRunStatus` says how its latest run ended."},"variants":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The variant's report id."},"name":{"type":"string","description":"The variant's report name."},"runId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The variant's run in progress, whoever started it. Pass it with the variant's `id` to `getReportRun` or `cancelReportRun`. `null` once the variant isn't running."},"lastRunStatus":{"anyOf":[{"type":"string","enum":["running","completed","failed","cancelled","timed_out"]},{"type":"null"}],"description":"How the variant's latest run that ended went: `completed`, `failed` or `cancelled`, as `lastRunStatus` on the report says. `null` if it has never run. Check `lastSyncedAt` to tell whether that run is the one you started; `listReportRuns` says why a run failed."},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the variant's latest run ended, whatever its outcome. `null` if it has never run."}},"required":["id","name","runId","lastRunStatus","lastSyncedAt"],"additionalProperties":false},"description":"The burst's variants you can see, oldest first."}},"required":["status","variants"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"startBurstRun","summary":"Run burst variants","description":"Starts a run of every variant of a burst, or of the variants passed, as startReportRun does for each: it refreshes the variant's data, and repairs a Rollstack report's slides with AI. An older report's variants run together as the app's Update runs them, in batches and behind the organization's other burst runs, so a variant can wait its turn before its run shows. Each such run updates the variant's file when it has one, and emails the variant to its recipients when its email trigger is `all`, as startReportRun does. The template report isn't run; run it with startReportRun. Answers each variant's run at once: follow them all with getBurstRun until none is running, or one with getReportRun, passing the variant's id and runId. A variant already running answers that run and starts nothing. From an AI client, a run that emails variants only asks the user to confirm it in Rollstack: it answers `confirmation-required` and runs once they confirm.\n\nRequires the `slide_decks:run` scope.","tags":["Bursts"],"x-scope":"slide_decks:run","security":[{"apiKey":[]},{"oauth2":["slide_decks:run"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","default":{},"type":"object","properties":{"variantIds":{"description":"The variants to run, by their `id` in `listBurstVariants`, instead of every variant, such as those whose last run failed. Each must be a variant of this burst. 1 to 500 ids.","minItems":1,"maxItems":500,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}}},"responses":{"202":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"runs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The variant's report id."},"name":{"type":"string","description":"The variant's report name."},"runId":{"type":"string","description":"The variant's run. Follow the burst's runs together with `getBurstRun`, or this one with the variant's `id` on `getReportRun`; cancel it with `cancelReportRun`."},"started":{"type":"boolean","description":"Whether this request started the run. `false` when a run of the variant was already going, whoever started it; `runId` is then that run's."}},"required":["id","name","runId","started"],"additionalProperties":false},"description":"The variants running, each as a run of its own report."},"failed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The variant's report id."},"name":{"type":"string","description":"The variant's report name."},"code":{"type":"string","description":"Why its run could not start, as an error code, such as `forbidden`."},"message":{"type":"string","description":"Why its run could not start, in words."}},"required":["id","name","code","message"],"additionalProperties":false},"description":"The variants whose run could not start, such as those you can't run since you only contribute to the burst. The others still started."}},"required":["runs","failed"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/settings":{"get":{"operationId":"getBurstSettings","summary":"Get burst settings","description":"A burst's settings, as its Settings tab in the app shows them: how its variants are named, and for an older report's burst, how each variant's run updates its file, what it does with empty charts, how it archives and how its filters match. Its folders and schedules are set in the app.\n\nRequires the `slide_decks:read` scope.","tags":["Bursts"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"kind":{"type":"string","enum":["parameters","filters"],"description":"What the burst's variants differ by, as `kind` in `listBursts`."},"variantNaming":{"type":"string","enum":["sameName","prefix","suffix"],"description":"How each variant's report is named from the burst's name and the name the variant is added with, `EMEA` in a burst named `Regional Review`: `suffix` gives `Regional Review - EMEA`, `prefix` gives `EMEA - Regional Review`, and `sameName` gives `EMEA`. It applies to variants added from then on."},"updateMethod":{"type":"string","enum":["update","archive","updateVisualizations"],"description":"How each variant's run changes its file. `update` updates the same file with the latest data. `archive` first saves a copy of the file, named with the date of its previous run, then updates the original. `updateVisualizations` is the method email reports are created with. It applies to new variants and to the existing ones. For an older report's burst only: a Rollstack report's burst returns 400."},"variantEmptyVisualizations":{"type":"string","enum":["show","hideNoCascade","hideCascade","hideCascadeIfAtLeastOneVisualizationIsEmpty"],"description":"What a variant's run does with a chart or table that has no data for its values. `show` places it empty, `hideNoCascade` leaves it out of the file, `hideCascade` hides its slide when every visualization on the slide is empty, and `hideCascadeIfAtLeastOneVisualizationIsEmpty` hides its slide when any of them is. For an older report's burst only: a Rollstack report's burst returns 400."},"archiveVariantsInFolder":{"type":"boolean","description":"With `updateMethod` `archive`: whether each variant's archived copies go in an archive folder next to its file, rather than beside it. For an older report's burst only: a Rollstack report's burst returns 400."},"datestampSuffix":{"type":"string","description":"With `updateMethod` `archive`: the date format added to the name of each archived copy. For an older report's burst only: a Rollstack report's burst returns 400."},"caseInsensitiveFilters":{"type":"boolean","description":"Whether a variant's filter values match the dashboard's values whatever their case. It applies when filters are next applied, such as with `reapplyBurstFilters`. For an older report's burst only: a Rollstack report's burst returns 400."}},"required":["kind","variantNaming","updateMethod","variantEmptyVisualizations","archiveVariantsInFolder","datestampSuffix","caseInsensitiveFilters"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"patch":{"operationId":"updateBurstSettings","summary":"Update burst settings","description":"Changes the settings passed and answers them all. A Rollstack report's burst takes only variantNaming. An older report's run settings, such as updateMethod, also apply to its existing variants. Only the burst's owner and admins may.\n\nRequires the `slide_decks:write` scope.","tags":["Bursts"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"variantNaming":{"type":"string","enum":["sameName","prefix","suffix"],"description":"How each variant's report is named from the burst's name and the name the variant is added with, `EMEA` in a burst named `Regional Review`: `suffix` gives `Regional Review - EMEA`, `prefix` gives `EMEA - Regional Review`, and `sameName` gives `EMEA`. It applies to variants added from then on."},"updateMethod":{"type":"string","enum":["update","archive","updateVisualizations"],"description":"How each variant's run changes its file. `update` updates the same file with the latest data. `archive` first saves a copy of the file, named with the date of its previous run, then updates the original. `updateVisualizations` is the method email reports are created with. It applies to new variants and to the existing ones. For an older report's burst only: a Rollstack report's burst returns 400."},"variantEmptyVisualizations":{"type":"string","enum":["show","hideNoCascade","hideCascade","hideCascadeIfAtLeastOneVisualizationIsEmpty"],"description":"What a variant's run does with a chart or table that has no data for its values. `show` places it empty, `hideNoCascade` leaves it out of the file, `hideCascade` hides its slide when every visualization on the slide is empty, and `hideCascadeIfAtLeastOneVisualizationIsEmpty` hides its slide when any of them is. For an older report's burst only: a Rollstack report's burst returns 400."},"archiveVariantsInFolder":{"type":"boolean","description":"With `updateMethod` `archive`: whether each variant's archived copies go in an archive folder next to its file, rather than beside it. For an older report's burst only: a Rollstack report's burst returns 400."},"datestampSuffix":{"type":"string","description":"With `updateMethod` `archive`: the date format added to the name of each archived copy. For an older report's burst only: a Rollstack report's burst returns 400."},"caseInsensitiveFilters":{"type":"boolean","description":"Whether a variant's filter values match the dashboard's values whatever their case. It applies when filters are next applied, such as with `reapplyBurstFilters`. For an older report's burst only: a Rollstack report's burst returns 400."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"kind":{"type":"string","enum":["parameters","filters"],"description":"What the burst's variants differ by, as `kind` in `listBursts`."},"variantNaming":{"type":"string","enum":["sameName","prefix","suffix"],"description":"How each variant's report is named from the burst's name and the name the variant is added with, `EMEA` in a burst named `Regional Review`: `suffix` gives `Regional Review - EMEA`, `prefix` gives `EMEA - Regional Review`, and `sameName` gives `EMEA`. It applies to variants added from then on."},"updateMethod":{"type":"string","enum":["update","archive","updateVisualizations"],"description":"How each variant's run changes its file. `update` updates the same file with the latest data. `archive` first saves a copy of the file, named with the date of its previous run, then updates the original. `updateVisualizations` is the method email reports are created with. It applies to new variants and to the existing ones. For an older report's burst only: a Rollstack report's burst returns 400."},"variantEmptyVisualizations":{"type":"string","enum":["show","hideNoCascade","hideCascade","hideCascadeIfAtLeastOneVisualizationIsEmpty"],"description":"What a variant's run does with a chart or table that has no data for its values. `show` places it empty, `hideNoCascade` leaves it out of the file, `hideCascade` hides its slide when every visualization on the slide is empty, and `hideCascadeIfAtLeastOneVisualizationIsEmpty` hides its slide when any of them is. For an older report's burst only: a Rollstack report's burst returns 400."},"archiveVariantsInFolder":{"type":"boolean","description":"With `updateMethod` `archive`: whether each variant's archived copies go in an archive folder next to its file, rather than beside it. For an older report's burst only: a Rollstack report's burst returns 400."},"datestampSuffix":{"type":"string","description":"With `updateMethod` `archive`: the date format added to the name of each archived copy. For an older report's burst only: a Rollstack report's burst returns 400."},"caseInsensitiveFilters":{"type":"boolean","description":"Whether a variant's filter values match the dashboard's values whatever their case. It applies when filters are next applied, such as with `reapplyBurstFilters`. For an older report's burst only: a Rollstack report's burst returns 400."}},"required":["kind","variantNaming","updateMethod","variantEmptyVisualizations","archiveVariantsInFolder","datestampSuffix","caseInsensitiveFilters"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/variants":{"get":{"operationId":"listBurstVariants","summary":"List burst variants","description":"A burst's variants the user can open, oldest first, each with its values of the burst's parameters or filters, how its latest run went, whether one is going, and who its email goes to. adding lists the variants the user is still adding. Answers up to limit variants, 50 by default and 200 at most, and a nextCursor: pass it as cursor for the next page, until it is null.\n\nRequires the `slide_decks:read` scope.","tags":["Bursts"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"limit","in":"query","required":false,"description":"Maximum number of variants to return on this page, from 1 to 200. Defaults to `50`.","schema":{"default":50,"description":"Maximum number of variants to return on this page, from 1 to 200. Defaults to `50`.","type":"integer","minimum":1,"maximum":200}},{"name":"cursor","in":"query","required":false,"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","schema":{"description":"Where to continue the list: pass the `nextCursor` returned with the previous page to get the next one. Omit it for the first page.","examples":["6c1f9a2e-3b4d-4e8f-9a1b-2c3d4e5f6a7b"],"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the report. Pass it as `id` to the other `\/reports\/{id}` endpoints."},"type":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The kind of report, which decides the endpoints that work on it.\n\n- `SlideDeck`: a slide deck built in Rollstack. Every `\/reports\/{id}` endpoint works on it, except `listReportSyncs` and `convertReport`.\n- `GoogleSlides`, `GoogleDocs`, `MicrosoftPowerPoint`, `MicrosoftWord`: a file in Google Drive or OneDrive that Rollstack updates with its visualizations.\n- `UploadedPPTXFile`: a PowerPoint file uploaded to Rollstack, which it updates the same way.\n- `Email`: an email report, whose visualizations Rollstack sends in an email.\n\nOn a report that isn't a `SlideDeck`, only `getReport`, `updateReport`, `deleteReport`, `shareReport`, `unshareReport`, `getReportSchedules`, `updateReportSchedules`, `startReportRun`, `listReportRuns`, `getReportRun`, `cancelReportRun`, `listReportSyncs` and the email endpoints (`getReportEmailConfig`, `updateReportEmailConfig`, `listReportEmails`, `sendReportEmail`, `sendReportTestEmail`) work, and `convertReport` on a `GoogleSlides` or `MicrosoftPowerPoint` report. The other `\/reports\/{id}` endpoints take `SlideDeck` reports only, as their `id` says, and return `400`."},"name":{"type":"string","description":"Name of the report, as members see it in Rollstack. Change it with `updateReport`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the report is in, by its `id` in `listFolders`. `null` when the report is at the top level, outside any folder."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address. Rollstack emails this address when a scheduled run of the report fails, while `notifyOnFailure` is `true`."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the report: whoever created it, unless ownership has since been transferred, in the app or with `transferReportOwnership`. Only the owner can delete the report."},"permission":{"anyOf":[{"type":"string","enum":["view","comment","edit"]},{"type":"null"}],"description":"Your access to the report, as the user the API key belongs to. `view` lets you open and export it: on a `SlideDeck`, read its slides with `getReportContent` and `getReportSlideImages`; on any other report, also see its runs, schedules and email setup. `comment` also lets you read, add, reply to and resolve comments on a `SlideDeck`'s slides. `edit` also lets you change it: rename or move it, chat with the slides agent about it, read its slide HTML, datasheets and their data, report parameters, history, runs, schedules and email setup, start runs, set its schedules and email, send its email, and share it. It's never `null` here, since the API only returns reports you can at least view."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The report's timezone, such as `America\/New_York`. The slides agent uses it to tell today's date, and the report's emails show the time of its last successful update (`{{last_updated_at}}`) in it. On a report that updates a file, such as a Google Slides presentation, it's also the timezone of the file's date variables, unless the organization's `timezone` replaces it. Schedules don't use it: each has its own `timezone`. `null` when the report has none, in which case the slides agent uses UTC. Reports created with `createReport` start with the organization's `timezone` from `getOrganization`, if it has one."},"notifyOnFailure":{"type":"boolean","description":"Whether Rollstack emails the report's owner when a scheduled run fails or some of its datasheets, or a file's visualizations, fail to refresh, copying everyone in `notificationMailingList`. Runs started in the app or with `startReportRun` never send this email. New reports start with `true`."},"lastSyncedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest run ended, whatever its outcome. `null` if the report has never run."},"lastSuccessfulUpdateAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the report's latest fully successful run ended: one that refreshed every datasheet it ran on, or every visualization on a report that updates a file, with none failing. Runs with nothing to refresh don't count. The report's emails show this time as `{{last_updated_at}}`. `null` until the report has had such a run."},"lastRunStatus":{"anyOf":[{"type":"string","enum":["running","completed","failed","cancelled","timed_out"]},{"type":"null"}],"description":"How the report's latest run ended. `completed`: it finished, even if some datasheets or visualizations failed to refresh or it had none to refresh; on a `SlideDeck` report, `listReportDatasheets` shows each datasheet's `error`. `failed`: it stopped on an error, or none of its datasheets or visualizations could be refreshed. `cancelled`: it was stopped before it finished, for example with `cancelReportRun`. `null` if the report has never run. `running` and `timed_out` never appear here: check `running` to see whether a run is in progress."},"running":{"type":"boolean","description":"Whether a run of the report is in progress, whoever started it, such as you with `startReportRun`, a member in the app, or one of its schedules. While it's `true`, `startReportRun` returns that run instead of starting another."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the report in Rollstack."},"fileUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Link that opens the Google Slides, Google Docs, PowerPoint or Word file the report updates. `null` for a slide deck, an email report or an uploaded PowerPoint file, which have no file to open, and for a Microsoft file whose link Rollstack has not read yet."},"createdAt":{"description":"When the report was created. `listReports` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the report's details last changed, such as its name, folder or owner, or the outcome of its latest run.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"customName":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name the variant was given, when added with a `name` or renamed with `renameBurst`. Its report's name is built from it as the burst's `variantNaming` says. `null` when it's named after its values instead."},"parameters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The report parameter's id on the template report. Use it as a key of `parameters` in `addBurstVariants`."},"name":{"type":"string","description":"The report parameter's name, as shown in Rollstack."},"value":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false}]},{"type":"null"}],"description":"The value the variant holds: the one it was added with, or the template's when it set none. `null` when neither had one."}},"required":["id","name","value"],"additionalProperties":false},"description":"The variant's value of each parameter the burst varies by, in the burst's order. Empty for a burst by `filters`."},"filters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The filter's id. Use it as a key of `filters` in `addBurstVariants`."},"name":{"type":"string","description":"The filter's name on its dashboard, as shown in Rollstack."},"value":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false}]},{"type":"null"}],"description":"The value the variant applies to the filter, as it was added with. `null` when it sets none, and the filter keeps its value on the dashboard."}},"required":["id","name","value"],"additionalProperties":false},"description":"The variant's value of each filter the burst varies by, in the burst's order. Empty for a burst by `parameters`."},"recipients":{"type":"object","properties":{"to":{"type":"array","items":{"type":"string"},"description":"The addresses the report's email is sent to. When empty, no one receives it: the report's runs send no email and `sendReportEmail` returns 400."},"cc":{"type":"array","items":{"type":"string"},"description":"The addresses copied on the report's email, which every recipient can see."},"bcc":{"type":"array","items":{"type":"string"},"description":"The addresses that also receive the report's email without the other recipients seeing them."}},"required":["to","cc","bcc"],"additionalProperties":false,"description":"Who the variant's email goes to, all empty until its own email is set up, as on a variant whose burst emails only through the configurations `listBurstEmailConfigs` lists. Set them with `updateBurstVariantRecipients`."}},"required":["id","type","name","folderId","owner","permission","timezone","notifyOnFailure","lastSyncedAt","lastSuccessfulUpdateAt","lastRunStatus","running","appUrl","fileUrl","createdAt","updatedAt","customName","parameters","filters","recipients"],"additionalProperties":false},"description":"The variants on this page that you can open, oldest first. Each variant is a report of the burst's `reportType`: pass its `id` to `getReport`, `startReportRun` and the other `\/reports\/{id}` endpoints its type takes. `running` and `lastRunStatus` tell where its runs stand."},"nextCursor":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Pass it as `cursor` to get the next page of variants. `null` when there are no more."},"adding":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name the variant is added with, as `addBurstVariants` returned it."},"status":{"type":"string","enum":["queued","running","completed","failed","cancelled"],"description":"Where adding it stands. `queued`: it waits for the variants before it. `running`: its report is being copied from the template and run for the first time. `completed`: it is among the burst's variants in `listBurstVariants`, though its first run may have only partly completed, as its `lastRunStatus` says. `failed`: either it could not be added, or its report was added but its first run failed. Look for it in `listBurstVariants` to tell which. `cancelled`: it was cancelled in the app, before it was added or during its first run. Its report may still be among the burst's variants."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the variant failed, when that is known, while `status` is `failed`. `null` otherwise, including when its report was added and only its first run failed."}},"required":["name","status","error"],"additionalProperties":false},"description":"The variants you are adding with `addBurstVariants` or in the app, while that is still going. Empty once every one is done. To wait for variants you added, follow the `batchId` from `addBurstVariants` with `getBurstVariantBatch` rather than listing again."}},"required":["data","nextCursor","adding"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"addBurstVariants","summary":"Add burst variants","description":"Adds variants to a burst by their values of its report parameters, or of its filters for an older report's burst: each is a copy of the template report with its own values, then runs once to fetch its data. An older report's variant is a copy of its file in the burst's folder. Report parameter values and filter ids are checked first, so a request with one the burst can't take adds nothing. Answers at once with the batch's batchId and the names the variants are added with: follow the batch with getBurstVariantBatch until it ends.\n\nRequires the `slide_decks:write` scope.","tags":["Bursts"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"variants":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"name":{"description":"The variant's name, which its report's name is built from as the burst's `variantNaming` says. If omitted, it is named after the values it sets, like `EMEA - Q1 2026`: its parameters' values, or its primary filters' values.","type":"string","minLength":1},"parameters":{"description":"For a burst by `parameters`: the value the variant sets of each report parameter, by its `id` in the burst's `parameters`. A parameter left out keeps the template's value. A value must be one the template's datasheet filters can take, or the request returns 400 and adds nothing.","type":"object","propertyNames":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$","examples":["5e7a9c1b-3d5f-4b7d-9e1a-3c5e7a9b1d3f"]},"additionalProperties":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"]},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"]},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"]}],"description":"A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only."},"examples":[{"5e7a9c1b-3d5f-4b7d-9e1a-3c5e7a9b1d3f":{"type":"categorical","values":["EMEA"]}}]},"filters":{"description":"For a burst by `filters`: the value the variant applies to each filter, by its `id` in the burst's `filters`, at least one. A filter left out keeps its value on the dashboard. An id that isn't one of the burst's filters returns 400 and adds nothing.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"]},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"]},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"]},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"]}],"description":"A value of a filter, in the shape of its `valueType`, the same shapes as a report parameter value. Copy the shape of a variant's value of the filter in `listBurstVariants`."},"examples":[{"3b1f8c2e-6a4d-4f1e-9b2a-7c5d8e1f2a3b":{"type":"categorical","values":["EMEA"]}}]}},"additionalProperties":false},"description":"The variants to add, 1 to 500. Variants may hold the same values as one another or as an existing variant: each is added as its own report."}},"required":["variants"],"additionalProperties":false}}}},"responses":{"202":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"batchId":{"type":"string","description":"Identifies the batch of variants being added. Pass it to `getBurstVariantBatch`, which waits for them to be added. Variants you add while another of your batches on the burst is going join it, under the same id."},"variants":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name the variant is added with."}},"required":["name"],"additionalProperties":false},"description":"The variants being added, in the order sent."}},"required":["batchId","variants"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/variants\/batches\/{batchId}":{"get":{"operationId":"getBurstVariantBatch","summary":"Get burst variant batch","description":"A batch of variants being added to a burst, with where each variant stands: copied from the template report, then run once to fetch its data. Waits up to waitSeconds for the batch to end and answers as soon as it does, so call it again while the status is running. Your later batch on the burst reuses the id, so this describes the latest one.\n\nRequires the `slide_decks:read` scope.","tags":["Bursts"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"batchId","in":"path","required":true,"description":"The batch, by the `batchId` that `addBurstVariants` returned. A member's batches on a burst share one id, so it always refers to their latest.","schema":{"type":"string","description":"The batch, by the `batchId` that `addBurstVariants` returned. A member's batches on a burst share one id, so it always refers to their latest."}},{"name":"waitSeconds","in":"query","required":false,"description":"How long this call waits for the work to finish, in seconds: the message to the slides agent on `getReportMessage`, the run on `getReportRun`, the batch of variants being added on `getBurstVariantBatch`, the runs of a burst's variants on `getBurstRun`, the export on `getRunsExport`. It returns as soon as the work is done, or as things stand once the time is up, so call it again while `status` is still `queued` or `running`. `0` returns at once. Defaults to `20`; at most `30`.","schema":{"default":20,"description":"How long this call waits for the work to finish, in seconds: the message to the slides agent on `getReportMessage`, the run on `getReportRun`, the batch of variants being added on `getBurstVariantBatch`, the runs of a burst's variants on `getBurstRun`, the export on `getRunsExport`. It returns as soon as the work is done, or as things stand once the time is up, so call it again while `status` is still `queued` or `running`. `0` returns at once. Defaults to `20`; at most `30`.","type":"integer","minimum":0,"maximum":30}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"batchId":{"type":"string","description":"Identifies the batch, as returned by `addBurstVariants`."},"status":{"type":"string","enum":["running","completed","failed","cancelled"],"description":"Where the batch stands. It stays `running` until every variant in it is added and has run once, then says how it ended.\n\n- `running`: variants are still being added. Call `getBurstVariantBatch` again to keep waiting.\n- `completed`: the batch finished. Each of `variants` says how it went; find the added ones among the burst's variants in `listBurstVariants`.\n- `failed`: every variant failed, or the batch stopped on an error. A variant fails both when it can't be added and when it is added but its first run fails, so some may still be among the burst's variants in `listBurstVariants`.\n- `cancelled`: the batch was stopped in the app before it finished."},"startedAt":{"description":"When the batch started.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"finishedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the batch ended, whatever its outcome. `null` while it is `running`."},"variants":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The name the variant is added with, as `addBurstVariants` returned it."},"status":{"type":"string","enum":["queued","running","completed","failed","cancelled"],"description":"Where adding it stands. `queued`: it waits for the variants before it. `running`: its report is being copied from the template and run for the first time. `completed`: it is among the burst's variants in `listBurstVariants`, though its first run may have only partly completed, as its `lastRunStatus` says. `failed`: either it could not be added, or its report was added but its first run failed. Look for it in `listBurstVariants` to tell which. `cancelled`: it was cancelled in the app, before it was added or during its first run. Its report may still be among the burst's variants."},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Why the variant failed, when that is known, while `status` is `failed`. `null` otherwise, including when its report was added and only its first run failed."}},"required":["name","status","error"],"additionalProperties":false},"description":"The variants in the batch, in the order they were sent, each with where adding it stands."}},"required":["batchId","status","startedAt","finishedAt","variants"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/reports\/{id}\/syncs\/{syncId}\/filters":{"get":{"operationId":"listReportSyncFilters","summary":"List sync filters","description":"The filters of the dashboard an older report's sync reads, which a burst of the report can vary by: pass their ids in filters to createBurst. Read from the dashboard with your access to its connection, so it can take a few seconds. Find the report's syncs with listReportSyncs. A Rollstack report bursts by report parameters instead: see getReportParameters.\n\nRequires the `slide_decks:read` scope.","tags":["Bursts"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`.","schema":{"type":"string","description":"The report to act on, of any `type`, by its `id` from `listReports` or `createReport`. You can also copy it from the report's link in Rollstack (`appUrl`): it's the part right after `\/slides\/` or `\/destinations\/`."}},{"name":"syncId","in":"path","required":true,"description":"The sync whose dashboard filters to list, by its `id` from `listReportSyncs`.","schema":{"type":"string","description":"The sync whose dashboard filters to list, by its `id` from `listReportSyncs`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"filters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The filter's id. Pass it in `filters` to `createBurst` to make a burst whose variants differ by it."},"name":{"type":"string","description":"The filter's name on the sync's dashboard."},"valueType":{"anyOf":[{"type":"string","enum":["categorical","date","number","text"]},{"type":"null"}],"description":"The kind of value Rollstack can set in the filter: the `type` of each variant's value of it. `null` when Rollstack doesn't know the filter's editor."}},"required":["id","name","valueType"],"additionalProperties":false},"description":"The filters of the sync's dashboard a burst can vary by, by name."},"unsupported":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The filter's name on the dashboard."}},"required":["name"],"additionalProperties":false},"description":"The dashboard's filters Rollstack can't set, so a burst can't vary by them."}},"required":["filters","unsupported"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/conversions":{"post":{"operationId":"convertBurst","summary":"Convert burst to slide deck burst","description":"Checks first by default: with `dryRun` (the default) it answers what converting would do and writes nothing (which syncs would convert, which filters would become report parameters and why not, and the variants), so show the person what it would leave out, then send `dryRun: false` to convert. Turns a burst of an older report, a Google Slides or PowerPoint file, into a new burst of Rollstack reports of type SlideDeck, as Convert to Rollstack slides does for one report. The burst's template is converted as convertReport does, each filter the variants differ by becomes a report parameter on it, and each variant chosen with `variantIds` (all by default) becomes a report of its own with its values of those parameters. The options say what else carries over. By default the older burst's sharing, failure notices and email settings are copied onto the new burst and its reports, and its schedules aren't: the older burst keeps running on them, so a copy would update and email alongside it (copySchedules). The older burst and its files stay as they are. It converts in the background and answers right away: follow it with getBurstConversion, which answers the new burst and what became of each filter, variant and sync once it ends. A burst converts once at a time. Only the older burst's editors may. Counts against the 10 imports a minute per user.\n\nRequires the `slide_decks:write` scope.","tags":["Bursts"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","default":{},"type":"object","properties":{"name":{"description":"Name for the new report, as members will see it in Rollstack. Leading and trailing spaces are removed, and it can't be blank. If omitted, it takes the older report's name.","examples":["Q4 business review"],"type":"string","minLength":1},"folderId":{"description":"The folder to put the new report in, by its `id` from `listFolders`; it must be one you can add reports to. If omitted, it goes at the top level, as in the app.","examples":["a3d5e7f9-1b2c-4d6e-8f0a-1b2c3d4e5f6a"],"type":"string"},"startUpdate":{"default":true,"description":"Whether the new report's update starts right after converting, which reads the dashboards to fill its charts with their latest data: for a burst, its template's. Send false to leave it for later: the answer's `needsRun` says which charts stay empty until you start one with `startReportRun`.","examples":[false],"type":"boolean"},"copySharing":{"default":true,"description":"Share the new report, or the new burst and its reports, with the people the older ones are shared with, and tell the same people when an update fails. The older report's or burst's owner can always edit the new one.","type":"boolean"},"copyEmailSettings":{"default":true,"description":"Copy the email recipients and templates of the older report, or of the burst and its reports. A slide deck emails only after a scheduled update or when someone sends it, so they send nothing on their own.","type":"boolean"},"copySchedules":{"default":false,"description":"Copy the schedules of the older report, or of the burst and its reports. The older one keeps its own, so until it is turned off both update, read the BI tool and email the same people.","type":"boolean"},"dryRun":{"default":true,"description":"Only check what converting would do, and write nothing: which visualizations would convert and why others would not, and for a burst which filters would become report parameters and its variants. Send false to convert, once the person has seen what the check says would be left out.","type":"boolean"},"updateVariants":{"default":false,"description":"Start every converted variant's update, to fill its charts. When false, each variant fills on its first update.","type":"boolean"},"variantIds":{"description":"The older variants to convert, by the `variantId` the check answers. Left out, every variant is converted; an empty list converts only the template, and the burst's variants can be added later.","type":"array","items":{"type":"string"}}},"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","anyOf":[{"type":"object","properties":{"dryRun":{"type":"boolean","const":true,"description":"Only checked: nothing was converted."},"syncs":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"syncId":{"type":"string","description":"The sync of the older report, as `listReportSyncs` lists it."},"name":{"type":"string","description":"The sync's name."},"status":{"type":"string","const":"converts","description":"It would get a datasheet reading the same source. Whether a tile draws it on a slide is only known once the file is imported."},"settings":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"filter"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A filter on this column."},{"type":"object","properties":{"type":{"type":"string","const":"sort"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"Its sort by this column. Not applied when no column of the datasheet is where the sort was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A split by this column. Not applied past the first 3."},{"type":"object","properties":{"type":{"type":"string","const":"format"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"format":{"type":"string"},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","format","applied"],"additionalProperties":false,"description":"A format on this column. Not applied when no column of the datasheet is where the format was, as a split value."},{"type":"object","properties":{"type":{"type":"string","const":"split_order"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"The order set for the columns this column splits into. Never applied: they come in the data's order."},{"type":"object","properties":{"type":{"type":"string","const":"second_chart_category"},"column":{"type":"string","description":"The column: the name the sync stored for it, else its rename, else its name in its tool when known (a Tableau field's caption), else the id the sync holds it by."},"applied":{"type":"boolean","description":"Whether the datasheet and tile apply it."}},"required":["type","column","applied"],"additionalProperties":false,"description":"A combo chart's second chart's own category. Never applied: both charts share the first chart's."}]},"description":"The sync's settings, such as its filters and sort, each with whether its datasheet and tile apply it."}},"required":["syncId","name","status","settings"],"additionalProperties":false},{"type":"object","properties":{"syncId":{"type":"string","description":"The sync of the older report, as `listReportSyncs` lists it."},"name":{"type":"string","description":"The sync's name."},"status":{"type":"string","const":"unsupported","description":"No datasheet can read it, so it would stay as it is in the new report's slides."},"reason":{"type":"string","description":"Why."}},"required":["syncId","name","status","reason"],"additionalProperties":false}]},"description":"What converting would do with each sync of the older burst's template."},"becomes":{"type":"string","enum":["burst","single_report"],"description":"`burst` when at least one filter would become a report parameter for the variants to differ by. `single_report` when none would: the template would convert as a report of its own, with no variants."},"parameters":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"status":{"type":"string","const":"parameter","description":"It would become a report parameter the variants differ by."},"name":{"type":"string","description":"The report parameter's name."}},"required":["status","name"],"additionalProperties":false},{"type":"object","properties":{"status":{"type":"string","const":"blocked","description":"It would not become a report parameter."},"name":{"type":"string","description":"The filter's name."},"reason":{"type":"string","enum":["no_datasheet","filter_not_read","filter_not_settable"],"description":"`no_datasheet` when no converted datasheet would read a dashboard the filter is on. `filter_not_read` when Rollstack hasn't read the filter from its dashboard yet, so it doesn't know what value to write into it: it does when someone opens the filter in the app. `filter_not_settable` when only the source's own embed can set its value."}},"required":["status","name","reason"],"additionalProperties":false}]},"description":"Each filter the older burst's variants differ by."},"variants":{"type":"array","items":{"type":"object","properties":{"variantId":{"type":"string","description":"The older variant's id, to choose which to convert with `variantIds`."},"name":{"type":"string","description":"The variant's name."},"values":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"parameter":{"type":"string","description":"The report parameter's name."},"status":{"type":"string","const":"value","description":"The variant sets its own value."},"value":{"type":"string","description":"Its value, as the app shows it."}},"required":["parameter","status","value"],"additionalProperties":false},{"type":"object","properties":{"parameter":{"type":"string","description":"The report parameter's name."},"status":{"type":"string","const":"none","description":"The variant has no value of its own, so it keeps the template's, as it did before."}},"required":["parameter","status"],"additionalProperties":false},{"type":"object","properties":{"parameter":{"type":"string","description":"The report parameter's name."},"status":{"type":"string","const":"not_settable","description":"The parameter can't take the variant's value, so it would keep the template's instead."}},"required":["parameter","status"],"additionalProperties":false}]},"description":"Its value of each report parameter."}},"required":["variantId","name","values"],"additionalProperties":false},"description":"The variants the new burst would hold, each a report of its own. Empty when it would be a single report."},"notCarriedOver":{"type":"array","items":{"type":"string"},"description":"What the older burst has that a burst of slide decks can't keep."}},"required":["dryRun","syncs","becomes","parameters","variants","notCarriedOver"],"additionalProperties":false},{"type":"object","properties":{"dryRun":{"type":"boolean","const":false,"description":"It started converting in the background: follow it with `getBurstConversion`."}},"required":["dryRun"],"additionalProperties":false}]}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/email-configs\/{configId}\/send":{"post":{"operationId":"sendBurstEmailConfig","summary":"Send burst email configuration","description":"Sends a burst's email configuration now: one email to its recipients with each variant it selects. Building it outlasts the request, so it goes out after the answer. Send a test with sendBurstEmailConfigTest first to check how it looks. Only the burst's owner and admins may. Sends have a low rate limit. From an AI client, the send only asks the user to confirm it in Rollstack: it answers `confirmation-required` and runs once they confirm.\n\nRequires the `slide_decks:email` scope.","tags":["Bursts"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"configId","in":"path","required":true,"description":"The email configuration, by its `id` from `listBurstEmailConfigs`.","schema":{"type":"string","description":"The email configuration, by its `id` from `listBurstEmailConfigs`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"202":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"The email configuration."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The email configuration's name."}},"required":["id","name"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/variants\/emails":{"post":{"operationId":"sendBurstVariantEmails","summary":"Send variant emails","description":"Sends each variant's own email now, to its own recipients, as the app's Send does: every variant, or those passed. The template sends nothing. Every recipient gets an email. Only the burst's owner and admins may. Sends have a low rate limit. From an AI client, the send only asks the user to confirm it in Rollstack: it answers `confirmation-required` and runs once they confirm.\n\nRequires the `slide_decks:email` scope.","tags":["Bursts"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","default":{},"type":"object","properties":{"variantIds":{"description":"The variants to act on, by their `id` in `listBurstVariants`, instead of every variant. Each must be a variant of this burst. 1 to 500 ids.","minItems":1,"maxItems":500,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}}},"responses":{"202":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"sending":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The report's id."},"name":{"type":"string","description":"The report's name."}},"required":["id","name"],"additionalProperties":false},"description":"The variants whose email is going out now, each to its own recipients. See each one's sends with `listReportEmails`."},"skipped":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The report's id."},"name":{"type":"string","description":"The report's name."}},"required":["id","name"],"additionalProperties":false},"description":"The variants left out since their email has no one in `to`. Set them with `updateBurstVariantRecipients`."}},"required":["sending","skipped"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}":{"patch":{"operationId":"renameBurst","summary":"Rename burst","description":"Renames a burst and answers it, and with renameVariants all its reports too, or with variants the ones picked, each with the name it's given. Before renaming reports, list the variants with listBurstVariants, and the template with getReport on the burst's templateReportId when renaming it, and show the user each report's current name next to its new one, since reports someone renamed by hand lose that name. Only the burst's owner and admins may.\n\nRequires the `slide_decks:write` scope.","tags":["Bursts"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"description":"The burst's new name."},"renameVariants":{"default":false,"description":"Whether to rename every report in the burst after the new name too, as `variantNaming` builds each name from the variant's `customName`, else its values, the template included. A Rollstack report's burst renames the template, which is the report the burst was made from. This also renames reports someone renamed by hand: to rename only some, pass `variants` instead. Defaults to `false`.","type":"boolean"},"variants":{"description":"Instead of `renameVariants`: the reports to rename after the new name, each built as `variantNaming` says from its `customName`, else its values. The other reports keep their names. To rename only reports, pass the burst's current `name`.","maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The variant, by its report id from `listBurstVariants`, or the template by its report id."},"customName":{"description":"The variant's own name to build its report's name from. `null` names it after its values again. If omitted, it keeps its `customName`.","anyOf":[{"type":"string"},{"type":"null"}]}},"required":["id"],"additionalProperties":false}},"renameFiles":{"default":false,"description":"For a burst of Google Slides, Google Docs, PowerPoint or Word reports: whether to also rename the burst's folders, and each renamed report's file, in Google Drive or OneDrive. It goes on after the answer. Defaults to `false`.","type":"boolean"}},"required":["name"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the burst. Pass it as `id` to the other `\/bursts\/{id}` endpoints."},"name":{"type":"string","description":"Name of the burst, as members see it in Rollstack. It is the template report's name when the burst is created, and is part of each variant report's name unless `variantNaming` is `sameName`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the burst is in, by its `id` in `listFolders`. `null` when the burst is at the top level."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the burst: whoever created it, unless ownership has since been transferred in the app."},"templateReportId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The template report, which every variant was copied from when it was added, by its `id` for `getReport` and the other `\/reports\/{id}` endpoints. Changes to the template reach existing variants only when pushed from the app; variants added later copy it as it is then. `null` if the template was deleted."},"variantNaming":{"type":"string","enum":["sameName","prefix","suffix"],"description":"How each variant's report is named from the burst's name and the name the variant is added with, `EMEA` in a burst named `Regional Review`: `suffix` gives `Regional Review - EMEA`, `prefix` gives `EMEA - Regional Review`, and `sameName` gives `EMEA`. It applies to variants added from then on."},"kind":{"type":"string","enum":["parameters","filters"],"description":"What the variants differ by. `parameters`: report parameters of a Rollstack report, listed in `parameters` and set with `parameters` in `addBurstVariants`. `filters`: filters of an older report's syncs, such as a Google Slides or PowerPoint file, listed in `filters` and set with `filters` in `addBurstVariants`."},"reportType":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The type of report the burst copies, as `type` in `listReports`: `SlideDeck` for a Rollstack report, which bursts by `parameters`, any other type for an older report, which bursts by `filters`."},"parameters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The report parameter's id on the template report. Use it as a key of `parameters` in `addBurstVariants`."},"name":{"type":"string","description":"The report parameter's name, as shown in Rollstack."},"value":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false}]},{"type":"null"}],"description":"The template's value of the parameter, which a variant keeps when it doesn't set one. `null` when the template has none. A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only."}},"required":["id","name","value"],"additionalProperties":false},"description":"The template report's parameters the variants differ by, in the order their values name a variant. Each variant holds its own value of each, which its datasheets' filters read. Empty for a burst by `filters`."},"filters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The filter's id. Use it as a key of `filters` in `addBurstVariants`."},"name":{"type":"string","description":"The filter's name on its dashboard, as shown in Rollstack."},"primary":{"type":"boolean","description":"Whether the filter names the variants: a variant added without a `name` is named after its primary filters' values, in order. A secondary filter only narrows what each variant shows."},"valueType":{"anyOf":[{"type":"string","enum":["categorical","date","number","text"]},{"type":"null"}],"description":"The kind of value the filter takes, and so the `type` of a variant's value of it. `null` when Rollstack doesn't know the filter's editor: copy the shape of a variant's value instead."}},"required":["id","name","primary","valueType"],"additionalProperties":false},"description":"The filters of the template report's syncs that the variants differ by, primary ones first in the order their values name a variant. Each variant holds its own value of each, applied to the syncs that read the filter's dashboard. Empty for a burst by `parameters`."},"variantCount":{"type":"number","description":"How many variants the burst has, including any you can't open."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the burst in Rollstack."},"createdAt":{"description":"When the burst was created. `listBursts` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the burst's details last changed.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","folderId","owner","templateReportId","variantNaming","kind","reportType","parameters","filters","variantCount","appUrl","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"deleteBurst","summary":"Delete burst","description":"Deletes a burst with every report in it, the template included, as the app does, which moves it to the Trash for 30 days. A Rollstack report's burst uses the report it was made from as its template, so that report is deleted too. Files in Google Drive or OneDrive stay. Only the burst's owner may. From an AI client, the deletion only asks the user to confirm it in Rollstack: it answers `confirmation-required` and runs once they confirm.\n\nRequires the `slide_decks:write` scope.","tags":["Bursts"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"The deleted burst."},"name":{"type":"string","description":"The deleted burst's name."}},"required":["id","name"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/variants\/email-settings":{"patch":{"operationId":"updateBurstVariantEmailSettings","summary":"Set variant email settings","description":"Changes how the variants' own emails are sent, as the app's Burst settings in its Emailing tab do: only the settings passed, on the template, whose settings new variants copy, and on the variants. Each keeps its recipients: set them with updateBurstVariantRecipients. Sends no email. Members who only contribute change their own variants. See a report's settings with getReportEmailConfig.\n\nRequires the `slide_decks:email` scope.","tags":["Bursts"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"variantIds":{"description":"The reports to change, by their `id`: variants from `listBurstVariants`, and the burst's `templateReportId`, whose settings new variants copy. If omitted, the template and every variant you can edit.","minItems":1,"maxItems":500,"type":"array","items":{"type":"string"}},"smtpServerId":{"description":"The SMTP connection to send the emails through, from `listSmtpConnections`; `null` sends from Rollstack's own address. If omitted, each report keeps its own sender.","anyOf":[{"type":"string"},{"type":"null"}]},"sharingFormat":{"description":"How the email delivers the report. `pdf` and `ppt` send it as a PDF or PowerPoint file, attached or behind a download button (see `sendAttachmentAsLink`); a slide deck leaves its hidden slides out. `link` sends a link to the Google Drive or OneDrive file an older report updates, shared with the recipients as set in the app; an email report sends its content in the email itself, and a slide deck has no such file, so one whose settings still contain `link` is emailed as a PDF behind a download button. `cloudLink` (Exported link in the app), for slide decks only, sends a link to the copy exported to Google Drive or OneDrive and shares it with the addresses in `to`, `cc` and `bcc` with the sharing permission set in the app, viewer unless changed there; if no permission is set, as after PDF or PPT was picked in the app, the copy isn't shared with them. If omitted, stays as it is.","type":"string","enum":["link","pdf","ppt","cloudLink"]},"sendAttachmentAsLink":{"description":"Whether the email puts the `pdf` or `ppt` file behind a Download PDF or Download PPT button instead of attaching it. When `false`, the file is attached. Has no effect with `cloudLink`. If omitted, stays as it is.","type":"boolean"},"trigger":{"description":"Which of the report's runs email it automatically. A run emails it when it updates everything, or when all its failures are in `ignoredFailureStatusMessages`. On a slide deck, `all` and `scheduled` work the same way: only runs started by its schedules (see `getReportSchedules`) send the email, and a slide deck with no datasheets is never emailed by its runs. On an older report, `all` emails after every run of the whole report, whether started by a schedule, with `startReportRun` or in the app, and `scheduled` only after runs its schedules start; a run of only some syncs never emails it. With `none` (Manual in the app), no run sends it: the email goes out only when sent with `sendReportEmail` or from the app. If omitted, stays as it is.","type":"string","enum":["all","none","scheduled"]},"groupRecipients":{"description":"Whether each variant sends one email to all its `to` addresses together, rather than one email per address. If omitted, stays as it is.","type":"boolean"},"ignoredFailureStatusMessages":{"description":"The failures that shouldn't stop a run from emailing a variant (see `trigger`), such as the `error.code` values from `listReportSyncs`. If omitted, stays as it is.\n\nThe other values describe why a sync of an older report failed, and have an effect only on older reports:\n\n- `dashboard_not_found`, or the older `tableau_view_not_found`: the dashboard, Tableau workbook, Power BI report or spreadsheet could not be found.\n- `dashboard_tab_not_found`: the dashboard tab, Tableau view, Power BI report page or spreadsheet sheet could not be found.\n- `dashboard_not_ready`: the dashboard took too long to load.\n- `dashboard_has_errors`: the dashboard or spreadsheet failed to load because of an error in the tool it comes from.\n- `dashboard_invalid_layout`: the dashboard's layout is invalid, and it needs to be saved again.\n- `element_not_found`, or the older `metabase_element_not_found` and `looker_element_not_found`: the visualization could not be found.\n- `slide_not_found`, or the older `google_slide_not_found`: the slide that shows the visualization could not be found.\n- `file_not_found`: the spreadsheet file the visualization comes from could not be found.\n- `sheet_not_found`: the spreadsheet sheet could not be found.\n- `sheet_hidden`: the spreadsheet sheet is hidden and needs to be unhidden.\n- `range_not_found`: the spreadsheet range could not be found.\n- `duplicate_file_failed`: Rollstack could not prepare the spreadsheet file for the update.\n- `merged_range_on_filter_range`: the visualization has merged cells, which filters can't be applied to.\n- `insufficient_permissions`: the owner doesn't have edit access to the file.\n- `image_cropping_failed`: Rollstack could not crop the visualization's image.\n- `visualization_not_found`: the visualization could not be found in the dashboard.\n- `visualization_not_ready`: the visualization took too long to load.\n- `visualization_has_errors`: the visualization failed to load because of an error in the tool it comes from.\n- `visualization_empty`, or the older `empty_data`: the visualization is empty.\n- `invalid_credentials`: the connection's credentials are invalid.\n- `missing_credentials`: the connection's credentials were deleted, or the owner's access to it was suspended.\n- `instance_unavailable`: the data source's instance is temporarily unavailable.\n- `column_not_found`: a column the native chart uses is missing from its data.\n- `fetch_summary_data_error`, `fetch_visual_specification_error`, `missing_data`, `missing_formatted_value` and `viz_not_ready`: Rollstack could not fetch the data of a native chart.\n- `incorrect_data_structure`: the native chart's structure doesn't fit its data.\n- `malformed_data`: Rollstack could not fetch the data of a native chart or, from Snowflake, Databricks or BigQuery, the query is invalid.\n- `worksheet_not_found`: the Tableau worksheet could not be found.\n- `sync_not_found`: the visualization was deleted.\n- `file_update_failed`: the data was fetched but could not be written into the file.","type":"array","items":{"type":"string","enum":["tableau_view_not_found","dashboard_not_found","dashboard_tab_not_found","dashboard_not_ready","dashboard_has_errors","dashboard_invalid_layout","metabase_element_not_found","looker_element_not_found","element_not_found","google_slide_not_found","slide_not_found","file_not_found","sheet_not_found","sheet_hidden","range_not_found","duplicate_file_failed","merged_range_on_filter_range","insufficient_permissions","image_cropping_failed","visualization_not_found","visualization_not_ready","visualization_has_errors","visualization_empty","invalid_credentials","missing_credentials","instance_unavailable","column_not_found","empty_data","fetch_summary_data_error","fetch_visual_specification_error","incorrect_data_structure","missing_data","missing_formatted_value","malformed_data","viz_not_ready","worksheet_not_found","sync_not_found","file_update_failed","internal_server_error"]}},"emailAnalyticsEnabled":{"description":"Whether to track when recipients open the emails. `true` returns 403 unless email analytics is on for the organization. If omitted, stays as it is.","type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"updated":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The report's id."},"name":{"type":"string","description":"The report's name."}},"required":["id","name"],"additionalProperties":false},"description":"The reports whose email settings changed. Their recipients stay as they were."}},"required":["updated"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/email-configs\/{configId}":{"patch":{"operationId":"updateBurstEmailConfig","summary":"Update burst email configuration","description":"Changes the fields passed of a burst's email configuration and answers it. Sends nothing. Only the burst's owner and admins may.\n\nRequires the `slide_decks:email` scope.","tags":["Bursts"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"configId","in":"path","required":true,"description":"The email configuration, by its `id` from `listBurstEmailConfigs`.","schema":{"type":"string","description":"The email configuration, by its `id` from `listBurstEmailConfigs`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The configuration's name, as shown in the burst's Emailing tab in the app."},"variantIds":{"type":"array","items":{"type":"string"},"description":"The variants the email includes, by their `id` in `listBurstVariants`. Empty includes every variant, also those added later."},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"],"description":"How the email delivers the report. `pdf` and `ppt` send it as a PDF or PowerPoint file, attached or behind a download button (see `sendAttachmentAsLink`); a slide deck leaves its hidden slides out. `link` sends a link to the Google Drive or OneDrive file an older report updates, shared with the recipients as set in the app; an email report sends its content in the email itself, and a slide deck has no such file, so one whose settings still contain `link` is emailed as a PDF behind a download button. `cloudLink` (Exported link in the app), for slide decks only, sends a link to the copy exported to Google Drive or OneDrive and shares it with the addresses in `to`, `cc` and `bcc` with the sharing permission set in the app, viewer unless changed there; if no permission is set, as after PDF or PPT was picked in the app, the copy isn't shared with them."},"sendAttachmentAsLink":{"type":"boolean","description":"Whether the email puts the `pdf` or `ppt` file behind a Download PDF or Download PPT button instead of attaching it. When `false`, the file is attached. Has no effect with `cloudLink`."},"zipAttachments":{"type":"boolean","description":"Whether the variants' files come in one zip file, with a file format."},"emailAnalyticsEnabled":{"type":"boolean","description":"Whether opens of the email are tracked."},"smtpServerId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SMTP connection the email is sent through, from `listSmtpConnections`; `null` sends from Rollstack's own address."},"to":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"The addresses the email goes to."},"cc":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"The addresses copied on the email, which every recipient can see."},"bcc":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"The addresses that also receive the email without the others seeing them."},"replyTo":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"Where replies to the email go."}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Identifies the configuration. Pass it as `configId` to the other `\/email-configs\/{configId}` endpoints."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The configuration's name, as shown in the burst's Emailing tab in the app."},"variantIds":{"type":"array","items":{"type":"string"},"description":"The variants the email includes, by their `id` in `listBurstVariants`. Empty includes every variant, also those added later."},"sharingFormat":{"type":"string","enum":["link","pdf","ppt","cloudLink"],"description":"How the email delivers the report. `pdf` and `ppt` send it as a PDF or PowerPoint file, attached or behind a download button (see `sendAttachmentAsLink`); a slide deck leaves its hidden slides out. `link` sends a link to the Google Drive or OneDrive file an older report updates, shared with the recipients as set in the app; an email report sends its content in the email itself, and a slide deck has no such file, so one whose settings still contain `link` is emailed as a PDF behind a download button. `cloudLink` (Exported link in the app), for slide decks only, sends a link to the copy exported to Google Drive or OneDrive and shares it with the addresses in `to`, `cc` and `bcc` with the sharing permission set in the app, viewer unless changed there; if no permission is set, as after PDF or PPT was picked in the app, the copy isn't shared with them."},"sendAttachmentAsLink":{"type":"boolean","description":"Whether the email puts the `pdf` or `ppt` file behind a Download PDF or Download PPT button instead of attaching it. When `false`, the file is attached. Has no effect with `cloudLink`."},"zipAttachments":{"type":"boolean","description":"Whether the variants' files come in one zip file, with a file format."},"emailAnalyticsEnabled":{"type":"boolean","description":"Whether opens of the email are tracked."},"smtpServerId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The SMTP connection the email is sent through, from `listSmtpConnections`; `null` sends from Rollstack's own address."},"to":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"The addresses the email goes to."},"cc":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"The addresses copied on the email, which every recipient can see."},"bcc":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"The addresses that also receive the email without the others seeing them."},"replyTo":{"type":"array","items":{"type":"string","examples":["jane@acme.com"]},"description":"Where replies to the email go."},"createdAt":{"description":"When the configuration was created.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the configuration last changed.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","variantIds","sharingFormat","sendAttachmentAsLink","zipAttachments","emailAnalyticsEnabled","smtpServerId","to","cc","bcc","replyTo","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"deleteBurstEmailConfig","summary":"Delete burst email configuration","description":"Deletes a burst's email configuration. Its past sends stay. Only the burst's owner and admins may.\n\nRequires the `slide_decks:email` scope.","tags":["Bursts"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"configId","in":"path","required":true,"description":"The email configuration, by its `id` from `listBurstEmailConfigs`.","schema":{"type":"string","description":"The email configuration, by its `id` from `listBurstEmailConfigs`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"The email configuration."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The email configuration's name."}},"required":["id","name"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/variants\/recipients":{"put":{"operationId":"updateBurstVariantRecipients","summary":"Set variant recipients","description":"Sets who each variant's email goes to, replacing its to, cc and bcc. Its other email settings, such as its sender and which runs send it, stay as copied from the template; a variant without email settings gets the defaults. Sends no email. As in the app, the burst's owner and admins can set any variant's recipients, other members only those of variants they own or can edit; the others are skipped, as is a variant with several recipient groups, which the app asks to reconcile first.\n\nRequires the `slide_decks:email` scope.","tags":["Bursts"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"variants":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The variant, by its `id` in `listBurstVariants`."},"to":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"The addresses to send the variant's email to. If empty, no one receives it. At most 100 addresses across `to`, `cc` and `bcc`."},"cc":{"default":[],"description":"The addresses to copy on the variant's email, which every recipient can see. If omitted, no one is copied.","type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]}},"bcc":{"default":[],"description":"The addresses to also send the variant's email to without the other recipients seeing them. If omitted, no one is blind-copied.","type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]}}},"required":["id","to"],"additionalProperties":false},"description":"The variants whose recipients to replace, 1 to 500. The other variants, and the rest of each variant's email settings, stay as they are."}},"required":["variants"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"updated":{"type":"array","items":{"type":"string"},"description":"The variants whose recipients were replaced, by their `id`."},"skipped":{"type":"array","items":{"type":"string"},"description":"The variants passed that were left as they were, by their `id`: those you can't edit, since you only contribute to the burst, and ids that aren't variants of it."}},"required":["updated","skipped"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/filters":{"put":{"operationId":"updateBurstFilters","summary":"Update burst filters","description":"Replaces the filters an older report's burst varies by, then writes every variant's values into its syncs again, which can take a minute, and answers the burst. A filter left out is removed with every variant's value of it, unless replace carries those values to its new filter: confirm with the user first. Variants keep their files and names. Only the burst's owner and admins may. A Rollstack report's burst varies by report parameters and returns 400.\n\nRequires the `slide_decks:write` scope.","tags":["Bursts"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"primaryIds":{"minItems":1,"maxItems":3,"type":"array","items":{"type":"string"},"description":"The filters that name the variants, by their `id` in the burst's `filters` or from `listReportSyncFilters`, in the order their values name a variant. 1 to 3."},"secondaryIds":{"default":[],"description":"Filters a variant can also set, which don't name it.","type":"array","items":{"type":"string"}},"replace":{"default":[],"description":"Carries every variant's value of a filter you're replacing to its new filter, such as one moved to another dashboard. Without it, a filter left out is removed together with every variant's value of it, which can't be undone.","type":"array","items":{"type":"object","properties":{"fromId":{"type":"string","description":"A filter the burst varies by now, by its `id` in its `filters`."},"toId":{"type":"string","description":"The new filter, among `primaryIds` or `secondaryIds`, that takes its values."}},"required":["fromId","toId"],"additionalProperties":false}}},"required":["primaryIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the burst. Pass it as `id` to the other `\/bursts\/{id}` endpoints."},"name":{"type":"string","description":"Name of the burst, as members see it in Rollstack. It is the template report's name when the burst is created, and is part of each variant report's name unless `variantNaming` is `sameName`."},"folderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder the burst is in, by its `id` in `listFolders`. `null` when the burst is at the top level."},"owner":{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The owner's name, as shown in Rollstack."},"email":{"type":"string","description":"The owner's email address."}},"required":["id","name","email"],"additionalProperties":false,"description":"The member who owns the burst: whoever created it, unless ownership has since been transferred in the app."},"templateReportId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The template report, which every variant was copied from when it was added, by its `id` for `getReport` and the other `\/reports\/{id}` endpoints. Changes to the template reach existing variants only when pushed from the app; variants added later copy it as it is then. `null` if the template was deleted."},"variantNaming":{"type":"string","enum":["sameName","prefix","suffix"],"description":"How each variant's report is named from the burst's name and the name the variant is added with, `EMEA` in a burst named `Regional Review`: `suffix` gives `Regional Review - EMEA`, `prefix` gives `EMEA - Regional Review`, and `sameName` gives `EMEA`. It applies to variants added from then on."},"kind":{"type":"string","enum":["parameters","filters"],"description":"What the variants differ by. `parameters`: report parameters of a Rollstack report, listed in `parameters` and set with `parameters` in `addBurstVariants`. `filters`: filters of an older report's syncs, such as a Google Slides or PowerPoint file, listed in `filters` and set with `filters` in `addBurstVariants`."},"reportType":{"type":"string","enum":["GoogleDocs","GoogleSlides","MicrosoftPowerPoint","MicrosoftWord","Email","UploadedPPTXFile","SlideDeck"],"description":"The type of report the burst copies, as `type` in `listReports`: `SlideDeck` for a Rollstack report, which bursts by `parameters`, any other type for an older report, which bursts by `filters`."},"parameters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The report parameter's id on the template report. Use it as a key of `parameters` in `addBurstVariants`."},"name":{"type":"string","description":"The report parameter's name, as shown in Rollstack."},"value":{"anyOf":[{"anyOf":[{"type":"object","properties":{"type":{"type":"string","const":"categorical"},"values":{"type":"array","items":{"anyOf":[{"type":"string"},{"type":"number"}]}},"operator":{"type":"string","enum":["is","is_not","contains","doesnt_contain"]}},"required":["type","values"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_range"},"startDate":{"type":"string"},"endDate":{"type":"string"}},"required":["type","subtype","startDate","endDate"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_relative"},"rangeType":{"type":"string","enum":["current","lastN","nextN"]},"rangeN":{"type":"number"},"periodType":{"type":"string","enum":["days","weeks","months","quarters","years","completeDays","completeWeeks","completeMonths","completeQuarters","completeYears"]}},"required":["type","subtype","rangeType","rangeN","periodType"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_month_year"},"month":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","month","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_quarter_year"},"quarter":{"type":"number"},"year":{"type":"number"}},"required":["type","subtype","quarter","year"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_single"},"date":{"type":"string"}},"required":["type","subtype","date"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"date"},"subtype":{"type":"string","const":"date_null"}},"required":["type","subtype"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"number"},"value":{"type":"number"}},"required":["type","value"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"text"},"value":{"type":"string","minLength":1}},"required":["type","value"],"additionalProperties":false}]},{"type":"null"}],"description":"The template's value of the parameter, which a variant keeps when it doesn't set one. `null` when the template has none. A value of a report parameter, in the shape of its type. Copy the shape of the parameter's `value` in `listBursts`, or of a variant's in `listBurstVariants`:\n\n- A list of values: `{ \"type\": \"categorical\", \"values\": [\"EMEA\"] }`, with at least one value. `operator` can also be `is_not`, `contains` or `doesnt_contain`; it is `is` when left out.\n- A number: `{ \"type\": \"number\", \"value\": 10 }`. Text: `{ \"type\": \"text\", \"value\": \"EMEA\" }`.\n- A date range: `{ \"type\": \"date\", \"subtype\": \"date_range\", \"startDate\": \"2026-01-01\", \"endDate\": \"2026-03-31\" }`. One date: `{ \"type\": \"date\", \"subtype\": \"date_single\", \"date\": \"2026-03-31\" }`.\n- A month or a quarter: `{ \"type\": \"date\", \"subtype\": \"date_month_year\", \"month\": 3, \"year\": 2026 }` (months 1 to 12), `{ \"type\": \"date\", \"subtype\": \"date_quarter_year\", \"quarter\": 1, \"year\": 2026 }`.\n- A relative period: `{ \"type\": \"date\", \"subtype\": \"date_relative\", \"rangeType\": \"lastN\", \"rangeN\": 3, \"periodType\": \"months\" }`. `rangeType` is `current`, `lastN` or `nextN`; `periodType` is `days`, `weeks`, `months`, `quarters` or `years`, or `completeDays` through `completeYears` for whole periods only."}},"required":["id","name","value"],"additionalProperties":false},"description":"The template report's parameters the variants differ by, in the order their values name a variant. Each variant holds its own value of each, which its datasheets' filters read. Empty for a burst by `filters`."},"filters":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The filter's id. Use it as a key of `filters` in `addBurstVariants`."},"name":{"type":"string","description":"The filter's name on its dashboard, as shown in Rollstack."},"primary":{"type":"boolean","description":"Whether the filter names the variants: a variant added without a `name` is named after its primary filters' values, in order. A secondary filter only narrows what each variant shows."},"valueType":{"anyOf":[{"type":"string","enum":["categorical","date","number","text"]},{"type":"null"}],"description":"The kind of value the filter takes, and so the `type` of a variant's value of it. `null` when Rollstack doesn't know the filter's editor: copy the shape of a variant's value instead."}},"required":["id","name","primary","valueType"],"additionalProperties":false},"description":"The filters of the template report's syncs that the variants differ by, primary ones first in the order their values name a variant. Each variant holds its own value of each, applied to the syncs that read the filter's dashboard. Empty for a burst by `parameters`."},"variantCount":{"type":"number","description":"How many variants the burst has, including any you can't open."},"appUrl":{"type":"string","format":"uri","description":"Link that opens the burst in Rollstack."},"createdAt":{"description":"When the burst was created. `listBursts` returns the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the burst's details last changed.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","name","folderId","owner","templateReportId","variantNaming","kind","reportType","parameters","filters","variantCount","appUrl","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/filters\/reapply":{"post":{"operationId":"reapplyBurstFilters","summary":"Reapply burst filters","description":"Writes each variant's filter values into its syncs again, as the app's Reapply does: after syncs were added to the template, or a filter changed on its dashboard. It reads the dashboards with your access to their connections, and runs nothing: run the variants afterwards with startBurstRun. Members who only contribute reapply their own variants. A Rollstack report's burst returns 400.\n\nRequires the `slide_decks:write` scope.","tags":["Bursts"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","default":{},"type":"object","properties":{"variantIds":{"description":"The variants to act on, by their `id` in `listBurstVariants`, instead of every variant. Each must be a variant of this burst. 1 to 500 ids.","minItems":1,"maxItems":500,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"reapplied":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The variant's report id."},"name":{"type":"string","description":"The variant's report name."}},"required":["id","name"],"additionalProperties":false},"description":"The variants whose filter values were written into their syncs again. Run them with `startBurstRun` to see the change."}},"required":["reapplied"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/variants\/remove":{"post":{"operationId":"removeBurstVariants","summary":"Remove burst variants","description":"Removes variants of a burst by their ids, which moves their reports to the Trash for 30 days, where they can be restored. Find the ids with listBurstVariants, which shows each variant's parameter or filter values, and confirm them with the user. An older report's variant file stays in Google Drive or OneDrive. The user must be able to edit every variant passed, or nothing is removed: the burst's owner and admins can edit them all, other members only their own. From an AI client, the removal only asks the user to confirm it in Rollstack: it answers `confirmation-required` and runs once they confirm.\n\nRequires the `slide_decks:write` scope.","tags":["Bursts"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"variantIds":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"string"},"description":"The variants to remove, by their `id` in `listBurstVariants`, which shows each one's parameter or filter values. Each must be a variant of this burst. 1 to 500 ids."}},"required":["variantIds"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"removed":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The removed variant's report id."},"name":{"type":"string","description":"The removed variant's report name."}},"required":["id","name"],"additionalProperties":false},"description":"The variants removed, whose reports moved to the Trash."}},"required":["removed"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/bursts\/{id}\/email-configs\/{configId}\/test":{"post":{"operationId":"sendBurstEmailConfigTest","summary":"Send burst email configuration test","description":"Sends a burst's email configuration to you alone, to check how it looks before sending it. Only the burst's owner and admins may. Sends have a low rate limit.\n\nRequires the `slide_decks:email` scope.","tags":["Bursts"],"x-scope":"slide_decks:email","security":[{"apiKey":[]},{"oauth2":["slide_decks:email"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`.","schema":{"type":"string","description":"The burst to act on, by its `id` from `listBursts`. You can also copy it from the burst's link in Rollstack: it's the part right after `\/collections\/`."}},{"name":"configId","in":"path","required":true,"description":"The email configuration, by its `id` from `listBurstEmailConfigs`.","schema":{"type":"string","description":"The email configuration, by its `id` from `listBurstEmailConfigs`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"The email configuration."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The email configuration's name."}},"required":["id","name"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/connections":{"get":{"operationId":"listConnections","summary":"List connections","description":"The data source connections the user can see, without their credentials: each one's type, name, settings such as its URL, owner, admins, default user and whether any user's access works.\n\nRequires the `connections:read` scope.","tags":["Connections"],"x-scope":"connections:read","security":[{"apiKey":[]},{"oauth2":["connections:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the connection. Pass it with `type` to the other `\/connections\/{type}\/{id}` endpoints."},"type":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."},"name":{"type":"string","description":"The connection's name, as members see it in Rollstack."},"config":{"type":"object","properties":{"baseUrl":{"description":"The URL of the instance the connection reads from, such as your Looker, Metabase or Snowflake URL. For Sigma, the API base URL of your Sigma organization's region. Power BI and Omni connections have none: an Omni connection's account is in `instanceSlug`.","type":"string"},"siteName":{"description":"Tableau only: the Tableau site the connection reads from, as your Tableau URLs name it after `#\/site\/`. `null` for a Tableau Server's default site.","anyOf":[{"type":"string"},{"type":"null"}]},"instanceSlug":{"description":"Omni only: your Omni account name, the subdomain of your Omni URL (`acme` in `https:\/\/acme.omniapp.co`).","type":"string"},"organizationSlug":{"description":"Sigma only: your Sigma organization, as your Sigma URLs name it after `app.sigmacomputing.com\/` (`acme` in `https:\/\/app.sigmacomputing.com\/acme`).","type":"string"},"projectId":{"description":"Lightdash only: the ID of the Lightdash project whose dashboards the connection reads.","type":"string"},"embeddingMode":{"description":"Looker only: how Rollstack opens the connection's Looker dashboards to capture their charts. `signed`: through embed URLs signed with the connection's embed secret. `private`: through Looker's API, by exporting dashboards as PDFs, which is slower and less reliable. `cookieless` currently works like `signed`.","type":"string","enum":["signed","cookieless","private"]},"authorizationMode":{"description":"Looker, Power BI and Sigma only: whose permissions in the tool apply when members read data. `per_user`: each member's own, through their own API key in Looker or found by their email in Power BI, if the connection was created with a Power BI email. `impersonated` (Looker only): one admin API key acts as each member's Looker user, found by their email. `shared`: everyone gets the same access, that of the connection's API key in Looker or of the app registration in Power BI. Sigma: `internal`, each member's own Sigma account, found by their email; `embed_users`, the same, else an embed user Rollstack creates with the account type and teams set in the app.","anyOf":[{"type":"string","enum":["per_user","impersonated","shared"]},{"type":"string","enum":["shared","per_user"]},{"type":"string","enum":["internal","embed_users"]}]},"authMethod":{"description":"Metabase, Snowflake, Databricks and BigQuery only: how Rollstack signs in. For Metabase, `apiKey` uses an admin API key and applies each member's Metabase permissions, found by their email, while `password` signs each member in with their own Metabase password. For Snowflake, Databricks and BigQuery, `oauth` has each member connect their own account through a browser sign-in, while `service` has everyone read through one Snowflake service user, with a key pair, one Databricks service principal or one Google Cloud service account.","anyOf":[{"type":"string","enum":["password","apiKey"]},{"type":"string","enum":["oauth","service"]}]}},"additionalProperties":false,"description":"The connection's settings other than its credentials, which Rollstack never returns. Each type has only the settings that apply to it."},"autoProvision":{"type":"boolean","description":"Whether members who join the organization get access to the connection automatically. When `false`, its owner and admins add members with `addConnectionUsers`."},"isActive":{"type":"boolean","description":"Whether at least one member's access to the connection works, so data can be read through it. `false` when none does: for example, members still have to enter their own credentials in the app, no user in the tool has their email, or their credentials were found invalid."},"defaultUserId":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The user id of the connection's default user, which the app calls its service account. Everyone with access to the connection reads its data through this member's access instead of their own. `null` when there's none, so each member reads with their own access."},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, as `listMembers` returns it."},"email":{"type":"string","description":"The owner's email address."}},"required":["id","email"],"additionalProperties":false},{"type":"null"}],"description":"The member who owns the connection, usually the one who created it. Only the owner can delete the connection and add or remove its admins. `null` if no member holds the owner role."},"admins":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id, as `listMembers` returns it."},"role":{"type":"string","enum":["owner","admin"],"description":"The member's role on the connection. `owner`: owns the connection; only they can delete it and add or remove admins. `admin`: can change the connection's settings and credentials, and manage who has access to it."}},"required":["userId","role"],"additionalProperties":false},"description":"The members who manage the connection, each with their role on it: its owner and its admins."},"hasCredentials":{"type":"boolean","const":true,"description":"Always `true`. Credentials are write-only: Rollstack never returns them. Change them with `replaceConnectionCredentials`."},"createdAt":{"description":"When the connection was created.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the connection was last updated, for example renamed or given new credentials.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","type","name","config","autoProvision","isActive","defaultUserId","owner","admins","hasCredentials","createdAt","updatedAt"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createConnection","summary":"Create connection","description":"Creates a data source connection after testing its credentials. Only owners and admins of the organization may. Snowflake, Databricks and BigQuery connections are created only in the app.\n\nRequires the `connections:write` scope.","tags":["Connections"],"x-scope":"connections:write","security":[{"apiKey":[]},{"oauth2":["connections:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","oneOf":[{"type":"object","properties":{"baseUrl":{"description":"The URL of the Tableau Cloud or Server instance the connection reads from. It can't change when replacing credentials: send the connection's current `config.baseUrl`, or create a new connection for another instance. Trailing slashes are removed.","type":"string","examples":["https:\/\/acme.online.tableau.com"]},"type":{"type":"string","const":"Tableau","description":"Set to `Tableau` to connect Tableau Cloud or Tableau Server. When replacing credentials, it must match the `type` in the path."},"siteName":{"description":"The Tableau site the connection reads from, as your Tableau URLs name it after `#\/site\/` (`acme` in `https:\/\/online.tableau.com\/#\/site\/acme\/workbooks`). `null` for a Tableau Server's default site, which is also what omitting it means when creating the connection. It can't change when replacing credentials: omit it or send the connection's current `config.siteName`.","examples":["acme"],"anyOf":[{"type":"string"},{"type":"null"}]},"clientId":{"type":"string","description":"The Client ID of the Tableau connected app Rollstack signs in through. In Tableau, create it under Settings > Connected Apps > New Connected App > Direct Trust, with access to all projects and all domains allowed, then enable it.","examples":["0f8e1c2d-3b4a-4c5d-9e6f-7a8b9c0d1e2f"]},"secretId":{"type":"string","description":"The Secret ID of the connected app's secret, shown with its Client ID under Settings > Connected Apps in Tableau.","examples":["5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"]},"secretValue":{"type":"string","writeOnly":true,"description":"The Secret Value of the same connected app secret as `secretId`.","examples":["your-connected-app-secret"]},"username":{"type":"string","description":"Your Tableau username, usually your email: the connected app signs in to Tableau as this user, and Rollstack tests the credentials with it. When the connection is created, your access uses it, and each other member who gets access is given a username derived from their Rollstack email in the same pattern, such as their email if this is yours. Members can change theirs in the app.","examples":["jane@acme.com"]},"name":{"type":"string","minLength":1,"description":"The name members will see for the connection in Rollstack.","examples":["Acme Looker"]},"autoProvision":{"default":true,"description":"Whether everyone in the organization gets access to the connection: every active member right away, and each new member as they join. When `false`, only you get access, and you add others with `addConnectionUsers`. Defaults to `true`.","type":"boolean"}},"required":["baseUrl","type","clientId","secretId","secretValue","username","name"],"additionalProperties":false},{"type":"object","properties":{"baseUrl":{"description":"The URL of the Looker instance the connection reads from. It can't change when replacing credentials: send the connection's current `config.baseUrl`, or create a new connection for another instance. Trailing slashes are removed.","type":"string","examples":["https:\/\/acme.cloud.looker.com"]},"type":{"type":"string","const":"Looker","description":"Set to `Looker` to connect a Looker instance. When replacing credentials, it must match the `type` in the path."},"clientId":{"type":"string","description":"The client ID of the Looker API key Rollstack connects with. A Looker admin generates it under Admin > Users > Users: open the user or service account, then Edit keys under API keys. With `impersonated` authorization, that Looker user must have the Admin role.","examples":["kG8mQ2xYp4Rz7wNs3Vbc"]},"clientSecret":{"type":"string","writeOnly":true,"description":"The client secret generated with `clientId`, from the same Looker API key.","examples":["your-looker-client-secret"]},"embedSecret":{"type":"string","writeOnly":true,"description":"The embed secret Rollstack signs Looker embed URLs with to open your dashboards. Generate it on the Embed page of Looker's Admin panel, where you also add `https:\/\/*.rollstack.com` to the Embedded Domain Allowlist.","examples":["your-looker-embed-secret"]},"embeddingMode":{"type":"string","enum":["signed","cookieless","private"],"description":"How Rollstack opens your Looker dashboards to capture their charts. `signed` (recommended): through embed URLs signed with `embedSecret`. `private`: through Looker's API, by exporting dashboards as PDFs, which is slower and less reliable. `cookieless` currently works like `signed`."},"authorizationMode":{"description":"Whose Looker permissions apply when members read data through the connection. `per_user`: each member reads with an API key of their own Looker user, so they see what their Looker permissions allow; every member needs their own API key set up. `impersonated`: this API key, whose Looker user must have the Admin role, acts as each member's Looker user, found by their email. `shared`: everyone reads with this API key and its permissions. Defaults to `per_user` when creating the connection. Changing it overwrites every member's Looker credentials, which can't be undone. When replacing credentials, omitting it keeps the connection's current value.","type":"string","enum":["per_user","impersonated","shared"]},"lookerUserEmail":{"description":"With `impersonated` authorization, the email of the Looker user this API key acts as when Rollstack tests the credentials, usually your own; the test fails unless this or `lookerUserId` finds a Looker user. When members read data, each acts as the Looker user with their own email instead. When replacing credentials, omitting it keeps the connection's current value.","examples":["jane@acme.com"],"anyOf":[{"type":"string"},{"type":"null"}]},"lookerUserId":{"description":"With `impersonated` authorization, the id of the Looker user this API key acts as when Rollstack tests the credentials. When there's none, Rollstack finds it from `lookerUserEmail`. When replacing credentials, omitting it keeps the connection's current value.","examples":["42"],"anyOf":[{"type":"string"},{"type":"null"}]},"userAttributes":{"description":"Looker user attributes, by attribute name, that Rollstack sets for every member when it opens dashboards through signed embed URLs, such as a `region` your Looker models filter rows by. They take precedence over the Looker user's own values for those attributes. If omitted when creating the connection, none are set. When replacing credentials, omitting it keeps the connection's current value.","examples":[{"region":"EMEA"}],"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"name":{"type":"string","minLength":1,"description":"The name members will see for the connection in Rollstack.","examples":["Acme Looker"]},"autoProvision":{"default":true,"description":"Whether everyone in the organization gets access to the connection: every active member right away, and each new member as they join. When `false`, only you get access, and you add others with `addConnectionUsers`. Defaults to `true`.","type":"boolean"}},"required":["baseUrl","type","clientId","clientSecret","embedSecret","embeddingMode","name"],"additionalProperties":false},{"type":"object","properties":{"baseUrl":{"description":"The URL of the Lightdash instance the connection reads from. It can't change when replacing credentials: send the connection's current `config.baseUrl`, or create a new connection for another instance. Trailing slashes are removed.","type":"string","examples":["https:\/\/acme.lightdash.cloud"]},"personalAccessToken":{"type":"string","writeOnly":true,"description":"The Lightdash token Rollstack connects with: a personal access token, starting with `ldpat_`, or a service account token, starting with `ldsvc_`. When the connection is created, your access uses it; every other member sets their own token in the app.","examples":["ldpat_your-personal-access-token"]},"userEmail":{"description":"The email of the Lightdash user whose user attributes Rollstack applies when it opens dashboards through your access. Only used with a service account token (`ldsvc_`); when it's set, the token must have Lightdash's Admin role, or the test fails. If `null`, the attributes of the token's own user apply. When the connection is created, only your access gets it: other members' access applies the attributes of their own token's user. When replacing credentials, omitting it keeps the connection's current value.","examples":["jane@acme.com"],"anyOf":[{"type":"string"},{"type":"null"}]},"projectId":{"type":"string","description":"The ID of the Lightdash project whose dashboards the connection reads, shown at the bottom of the Project Settings page in Lightdash.","examples":["3e5f7a9b-1c2d-4e3f-8a5b-7c9d1e3f5a7b"]},"embedSecret":{"type":"string","writeOnly":true,"description":"The embed secret Rollstack signs Lightdash embed tokens with to open your dashboards. Generate it in Lightdash under Project Settings > Embed Configuration.","examples":["your-lightdash-embed-secret"]},"type":{"type":"string","const":"Lightdash","description":"Set to `Lightdash` to connect a Lightdash project. When replacing credentials, it must match the `type` in the path."},"name":{"type":"string","minLength":1,"description":"The name members will see for the connection in Rollstack.","examples":["Acme Looker"]},"autoProvision":{"default":true,"description":"Whether everyone in the organization gets access to the connection: every active member right away, and each new member as they join. When `false`, only you get access, and you add others with `addConnectionUsers`. Defaults to `true`.","type":"boolean"}},"required":["baseUrl","personalAccessToken","projectId","embedSecret","type","name"],"additionalProperties":false},{"type":"object","properties":{"baseUrl":{"description":"The URL of the Metabase instance the connection reads from. It can't change when replacing credentials: send the connection's current `config.baseUrl`, or create a new connection for another instance. Trailing slashes are removed.","type":"string","examples":["https:\/\/acme.metabaseapp.com"]},"embedSecret":{"type":"string","writeOnly":true,"description":"The embedding secret key Rollstack signs Metabase embed URLs with to open your dashboards. In Metabase's Admin settings, go to Embedding, enable embedding, then generate the Embedding Secret Key under More details.","examples":["your-metabase-embedding-secret"]},"authMethod":{"type":"string","enum":["password","apiKey"],"description":"How Rollstack signs in to Metabase. `apiKey` (recommended): with the admin API key in `apiKey`, matching each member to the Metabase user with their email, so they only see the dashboards their Metabase permissions allow. `password`: each member signs in with their own Metabase username and password; members other than you enter their password in the app."},"type":{"type":"string","const":"Metabase","description":"Set to `Metabase` to connect a Metabase instance. When replacing credentials, it must match the `type` in the path."},"username":{"type":"string","description":"Your Metabase username, usually your email. With `password` auth, Rollstack signs in with it and `password`; with `apiKey` auth, it finds your Metabase user, whose permissions apply. When the connection is created, your access uses it, and each other member who gets access is given a username derived from their Rollstack email in the same pattern.","examples":["jane@acme.com"]},"password":{"default":null,"writeOnly":true,"description":"Your Metabase password, required with `password` auth. When the connection is created, only your access gets it: other members enter their own in the app.","examples":["your-metabase-password"],"anyOf":[{"type":"string"},{"type":"null"}]},"apiKey":{"default":null,"writeOnly":true,"description":"The admin API key Rollstack reads Metabase with, required with `apiKey` auth. Every member's access uses it.","examples":["mb_your-api-key"],"anyOf":[{"type":"string"},{"type":"null"}]},"sessionId":{"default":null,"writeOnly":true,"description":"With `password` auth, an existing Metabase session token for Rollstack to use. If omitted, Rollstack signs in with `username` and `password` to get one, and again whenever it stops working.","examples":["8c1d3e5f-7a9b-4c1d-8e3f-5a7b9c1d3e5f"],"anyOf":[{"type":"string"},{"type":"null"}]},"name":{"type":"string","minLength":1,"description":"The name members will see for the connection in Rollstack.","examples":["Acme Looker"]},"autoProvision":{"default":true,"description":"Whether everyone in the organization gets access to the connection: every active member right away, and each new member as they join. When `false`, only you get access, and you add others with `addConnectionUsers`. Defaults to `true`.","type":"boolean"}},"required":["baseUrl","embedSecret","authMethod","type","username","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"Salesforce","description":"Set to `Salesforce` to connect a Salesforce org. When replacing credentials, it must match the `type` in the path."},"baseUrl":{"description":"The URL of the Salesforce instance the connection reads from. It can't change when replacing credentials: send the connection's current `config.baseUrl`, or create a new connection for another instance. Trailing slashes are removed.","type":"string","examples":["https:\/\/acme.my.salesforce.com"]},"clientId":{"type":"string","description":"The Consumer Key of the External Client App you create for Rollstack in Salesforce. Enable the JWT Bearer Flow on it and upload Rollstack's certificate, which you can download from the Salesforce connection setup in the Rollstack app. Find the key in the External Client App's Settings tab, under OAuth Settings > Consumer Key and Secret.","examples":["your-consumer-key"]},"username":{"type":"string","description":"Your Salesforce username: Rollstack signs in to Salesforce as this user through the JWT Bearer Flow, and tests the credentials with it. When the connection is created, your access uses it, and each other member who gets access is given a username derived from their Rollstack email in the same pattern.","examples":["jane@acme.com"]},"useCrma":{"type":"boolean","description":"Whether you can also add CRM Analytics dashboards from this connection to Rollstack reports, besides Salesforce reports. When `false`, only Salesforce reports are offered."},"name":{"type":"string","minLength":1,"description":"The name members will see for the connection in Rollstack.","examples":["Acme Looker"]},"autoProvision":{"default":true,"description":"Whether everyone in the organization gets access to the connection: every active member right away, and each new member as they join. When `false`, only you get access, and you add others with `addConnectionUsers`. Defaults to `true`.","type":"boolean"}},"required":["type","baseUrl","clientId","username","useCrma","name"],"additionalProperties":false},{"type":"object","properties":{"clientId":{"type":"string","description":"The Application (client) ID of the Microsoft Entra app registration Rollstack reads Power BI through, shown on its Overview page in the Azure Portal. Add the app to each Power BI workspace Rollstack should read, with the Member role.","examples":["2b4d6f8a-0c1e-4a3b-9d5f-7b9d1f3a5c7e"]},"tenantId":{"type":"string","description":"The Directory (tenant) ID of your Microsoft Entra tenant, shown next to the Application ID on the app registration's Overview page.","examples":["4d6f8a0c-2e3a-4b5c-8d7e-9f1a3b5c7d9e"]},"secretValue":{"type":"string","writeOnly":true,"description":"The Value of a client secret of the app registration, created in the Azure Portal under Certificates & secrets > New client secret.","examples":["your-client-secret-value"]},"userEmail":{"description":"Your email in Power BI, used with `per_user` authorization: your access to the connection then shows only the Power BI reports this account can see, and each other member's access only those their own Power BI account, found by their Rollstack email, can see. If `null` or omitted when creating the connection, no member's Power BI permissions apply, even with `per_user`: everyone sees what the app registration can see. Replacing it later only affects members who get access afterward. When replacing credentials, omitting it keeps the connection's current value.","examples":["jane@acme.com"],"anyOf":[{"type":"string"},{"type":"null"}]},"authorizationMode":{"type":"string","enum":["shared","per_user"],"description":"Whose Power BI permissions apply. `per_user`: each member only sees the Power BI reports their own Power BI account can access, found by their email, as long as `userEmail` is set; the app registration needs read-only Admin API access. `shared`: every member sees everything the app registration can see, whatever their Power BI permissions."},"type":{"type":"string","const":"PowerBI","description":"Set to `PowerBI` to connect Power BI. When replacing credentials, it must match the `type` in the path."},"name":{"type":"string","minLength":1,"description":"The name members will see for the connection in Rollstack.","examples":["Acme Looker"]},"autoProvision":{"default":true,"description":"Whether everyone in the organization gets access to the connection: every active member right away, and each new member as they join. When `false`, only you get access, and you add others with `addConnectionUsers`. Defaults to `true`.","type":"boolean"}},"required":["clientId","tenantId","secretValue","authorizationMode","type","name"],"additionalProperties":false},{"type":"object","properties":{"instanceSlug":{"type":"string","description":"Your Omni account name, the subdomain of your Omni URL (`acme` in `https:\/\/acme.omniapp.co`). It can't change when replacing credentials: send the connection's current `config.instanceSlug`.","examples":["acme"]},"externalUserEmail":{"type":"string","description":"The email of your Omni user, usually your own email; the test fails unless an Omni user has it. When the connection is created, your access opens dashboards as this Omni user, with that user's groups, user attributes and dashboards, and each other member's access as the Omni user with their Rollstack email.","examples":["jane@acme.com"]},"apiKey":{"type":"string","writeOnly":true,"description":"An Omni organization API key, which every member's access uses. In Omni, go to Settings > API Access > Organization keys and click Generate New Key.","examples":["your-omni-api-key"]},"embedSecret":{"type":"string","writeOnly":true,"description":"The embed secret Rollstack signs Omni embed URLs with to open your dashboards. In Omni, find it under Settings > Embed > Admin; if there's no Embed section, ask Omni support to enable it.","examples":["your-omni-embed-secret"]},"type":{"type":"string","const":"Omni","description":"Set to `Omni` to connect an Omni account. When replacing credentials, it must match the `type` in the path."},"name":{"type":"string","minLength":1,"description":"The name members will see for the connection in Rollstack.","examples":["Acme Looker"]},"autoProvision":{"default":true,"description":"Whether everyone in the organization gets access to the connection: every active member right away, and each new member as they join. When `false`, only you get access, and you add others with `addConnectionUsers`. Defaults to `true`.","type":"boolean"}},"required":["instanceSlug","externalUserEmail","apiKey","embedSecret","type","name"],"additionalProperties":false},{"type":"object","properties":{"baseUrl":{"type":"string","enum":["https:\/\/aws-api.sigmacomputing.com","https:\/\/api.us-a.aws.sigmacomputing.com","https:\/\/api.ca.aws.sigmacomputing.com","https:\/\/api.eu.aws.sigmacomputing.com","https:\/\/api.ch.aws.sigmacomputing.com","https:\/\/api.uk.aws.sigmacomputing.com","https:\/\/api.au.aws.sigmacomputing.com","https:\/\/api.in.aws.sigmacomputing.com","https:\/\/api.us.azure.sigmacomputing.com","https:\/\/api.eu.azure.sigmacomputing.com","https:\/\/api.ca.azure.sigmacomputing.com","https:\/\/api.uk.azure.sigmacomputing.com","https:\/\/api.au.azure.sigmacomputing.com","https:\/\/api.sigmacomputing.com","https:\/\/api.sa.gcp.sigmacomputing.com"],"description":"The API base URL of your Sigma organization, which depends on the cloud and region it runs in. In Sigma, find it under Administration > Developer access. It can't change when replacing credentials: send the connection's current `config.baseUrl`.","examples":["https:\/\/aws-api.sigmacomputing.com"]},"organizationSlug":{"description":"Your Sigma organization, as your Sigma URLs name it after `app.sigmacomputing.com\/` (`acme` in `https:\/\/app.sigmacomputing.com\/acme\/workbook\/...`). Any Sigma URL of the organization works too. It can't change when replacing credentials: send the connection's current `config.organizationSlug`.","type":"string","examples":["acme"]},"serviceClientId":{"type":"string","minLength":1,"description":"The client ID of Sigma client credentials with the REST API and Embedding scopes, which every member's access uses. The Embedding scope is part of Sigma's secure embedding add-on. Their owner must be an active Sigma Admin. In Sigma, go to Administration > Developer access and click Create new.","examples":["your-sigma-client-id"]},"serviceClientSecret":{"type":"string","minLength":1,"writeOnly":true,"description":"The client secret Sigma shows once, when it creates the client credentials. Rollstack stores it encrypted and never returns it.","examples":["your-sigma-client-secret"]},"externalUserEmail":{"type":"string","description":"The email of your Sigma member, usually your own email; the test fails unless a Sigma member has it. When the connection is created, your access opens workbooks as this Sigma member, and each other member's access as the Sigma member with their Rollstack email.","examples":["jane@acme.com"]},"type":{"type":"string","const":"Sigma","description":"Set to `Sigma` to connect a Sigma organization. When replacing credentials, it must match the `type` in the path."},"name":{"type":"string","minLength":1,"description":"The name members will see for the connection in Rollstack.","examples":["Acme Looker"]},"autoProvision":{"default":true,"description":"Whether everyone in the organization gets access to the connection: every active member right away, and each new member as they join. When `false`, only you get access, and you add others with `addConnectionUsers`. Defaults to `true`.","type":"boolean"}},"required":["baseUrl","organizationSlug","serviceClientId","serviceClientSecret","externalUserEmail","type","name"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Snowflake","Databricks","BigQuery"],"description":"`Snowflake`, `Databricks` or `BigQuery`. Create these connections, and change their credentials, in the Rollstack app."}},"required":["type"],"description":"Not supported: Snowflake, Databricks and BigQuery connections are created, and their credentials changed, only in the Rollstack app. A request with any of these types returns a `400` error."}]}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the connection. Pass it with `type` to the other `\/connections\/{type}\/{id}` endpoints."},"type":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."},"name":{"type":"string","description":"The connection's name, as members see it in Rollstack."},"config":{"type":"object","properties":{"baseUrl":{"description":"The URL of the instance the connection reads from, such as your Looker, Metabase or Snowflake URL. For Sigma, the API base URL of your Sigma organization's region. Power BI and Omni connections have none: an Omni connection's account is in `instanceSlug`.","type":"string"},"siteName":{"description":"Tableau only: the Tableau site the connection reads from, as your Tableau URLs name it after `#\/site\/`. `null` for a Tableau Server's default site.","anyOf":[{"type":"string"},{"type":"null"}]},"instanceSlug":{"description":"Omni only: your Omni account name, the subdomain of your Omni URL (`acme` in `https:\/\/acme.omniapp.co`).","type":"string"},"organizationSlug":{"description":"Sigma only: your Sigma organization, as your Sigma URLs name it after `app.sigmacomputing.com\/` (`acme` in `https:\/\/app.sigmacomputing.com\/acme`).","type":"string"},"projectId":{"description":"Lightdash only: the ID of the Lightdash project whose dashboards the connection reads.","type":"string"},"embeddingMode":{"description":"Looker only: how Rollstack opens the connection's Looker dashboards to capture their charts. `signed`: through embed URLs signed with the connection's embed secret. `private`: through Looker's API, by exporting dashboards as PDFs, which is slower and less reliable. `cookieless` currently works like `signed`.","type":"string","enum":["signed","cookieless","private"]},"authorizationMode":{"description":"Looker, Power BI and Sigma only: whose permissions in the tool apply when members read data. `per_user`: each member's own, through their own API key in Looker or found by their email in Power BI, if the connection was created with a Power BI email. `impersonated` (Looker only): one admin API key acts as each member's Looker user, found by their email. `shared`: everyone gets the same access, that of the connection's API key in Looker or of the app registration in Power BI. Sigma: `internal`, each member's own Sigma account, found by their email; `embed_users`, the same, else an embed user Rollstack creates with the account type and teams set in the app.","anyOf":[{"type":"string","enum":["per_user","impersonated","shared"]},{"type":"string","enum":["shared","per_user"]},{"type":"string","enum":["internal","embed_users"]}]},"authMethod":{"description":"Metabase, Snowflake, Databricks and BigQuery only: how Rollstack signs in. For Metabase, `apiKey` uses an admin API key and applies each member's Metabase permissions, found by their email, while `password` signs each member in with their own Metabase password. For Snowflake, Databricks and BigQuery, `oauth` has each member connect their own account through a browser sign-in, while `service` has everyone read through one Snowflake service user, with a key pair, one Databricks service principal or one Google Cloud service account.","anyOf":[{"type":"string","enum":["password","apiKey"]},{"type":"string","enum":["oauth","service"]}]}},"additionalProperties":false,"description":"The connection's settings other than its credentials, which Rollstack never returns. Each type has only the settings that apply to it."},"autoProvision":{"type":"boolean","description":"Whether members who join the organization get access to the connection automatically. When `false`, its owner and admins add members with `addConnectionUsers`."},"isActive":{"type":"boolean","description":"Whether at least one member's access to the connection works, so data can be read through it. `false` when none does: for example, members still have to enter their own credentials in the app, no user in the tool has their email, or their credentials were found invalid."},"defaultUserId":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The user id of the connection's default user, which the app calls its service account. Everyone with access to the connection reads its data through this member's access instead of their own. `null` when there's none, so each member reads with their own access."},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, as `listMembers` returns it."},"email":{"type":"string","description":"The owner's email address."}},"required":["id","email"],"additionalProperties":false},{"type":"null"}],"description":"The member who owns the connection, usually the one who created it. Only the owner can delete the connection and add or remove its admins. `null` if no member holds the owner role."},"admins":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id, as `listMembers` returns it."},"role":{"type":"string","enum":["owner","admin"],"description":"The member's role on the connection. `owner`: owns the connection; only they can delete it and add or remove admins. `admin`: can change the connection's settings and credentials, and manage who has access to it."}},"required":["userId","role"],"additionalProperties":false},"description":"The members who manage the connection, each with their role on it: its owner and its admins."},"hasCredentials":{"type":"boolean","const":true,"description":"Always `true`. Credentials are write-only: Rollstack never returns them. Change them with `replaceConnectionCredentials`."},"createdAt":{"description":"When the connection was created.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the connection was last updated, for example renamed or given new credentials.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","type","name","config","autoProvision","isActive","defaultUserId","owner","admins","hasCredentials","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/connections\/{type}\/{id}":{"get":{"operationId":"getConnection","summary":"Get connection","description":"A data source connection, without its credentials. listConnections gives its type and id.\n\nRequires the `connections:read` scope.","tags":["Connections"],"x-scope":"connections:read","security":[{"apiKey":[]},{"oauth2":["connections:read"]}],"parameters":[{"name":"type","in":"path","required":true,"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`.","schema":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the connection. Pass it with `type` to the other `\/connections\/{type}\/{id}` endpoints."},"type":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."},"name":{"type":"string","description":"The connection's name, as members see it in Rollstack."},"config":{"type":"object","properties":{"baseUrl":{"description":"The URL of the instance the connection reads from, such as your Looker, Metabase or Snowflake URL. For Sigma, the API base URL of your Sigma organization's region. Power BI and Omni connections have none: an Omni connection's account is in `instanceSlug`.","type":"string"},"siteName":{"description":"Tableau only: the Tableau site the connection reads from, as your Tableau URLs name it after `#\/site\/`. `null` for a Tableau Server's default site.","anyOf":[{"type":"string"},{"type":"null"}]},"instanceSlug":{"description":"Omni only: your Omni account name, the subdomain of your Omni URL (`acme` in `https:\/\/acme.omniapp.co`).","type":"string"},"organizationSlug":{"description":"Sigma only: your Sigma organization, as your Sigma URLs name it after `app.sigmacomputing.com\/` (`acme` in `https:\/\/app.sigmacomputing.com\/acme`).","type":"string"},"projectId":{"description":"Lightdash only: the ID of the Lightdash project whose dashboards the connection reads.","type":"string"},"embeddingMode":{"description":"Looker only: how Rollstack opens the connection's Looker dashboards to capture their charts. `signed`: through embed URLs signed with the connection's embed secret. `private`: through Looker's API, by exporting dashboards as PDFs, which is slower and less reliable. `cookieless` currently works like `signed`.","type":"string","enum":["signed","cookieless","private"]},"authorizationMode":{"description":"Looker, Power BI and Sigma only: whose permissions in the tool apply when members read data. `per_user`: each member's own, through their own API key in Looker or found by their email in Power BI, if the connection was created with a Power BI email. `impersonated` (Looker only): one admin API key acts as each member's Looker user, found by their email. `shared`: everyone gets the same access, that of the connection's API key in Looker or of the app registration in Power BI. Sigma: `internal`, each member's own Sigma account, found by their email; `embed_users`, the same, else an embed user Rollstack creates with the account type and teams set in the app.","anyOf":[{"type":"string","enum":["per_user","impersonated","shared"]},{"type":"string","enum":["shared","per_user"]},{"type":"string","enum":["internal","embed_users"]}]},"authMethod":{"description":"Metabase, Snowflake, Databricks and BigQuery only: how Rollstack signs in. For Metabase, `apiKey` uses an admin API key and applies each member's Metabase permissions, found by their email, while `password` signs each member in with their own Metabase password. For Snowflake, Databricks and BigQuery, `oauth` has each member connect their own account through a browser sign-in, while `service` has everyone read through one Snowflake service user, with a key pair, one Databricks service principal or one Google Cloud service account.","anyOf":[{"type":"string","enum":["password","apiKey"]},{"type":"string","enum":["oauth","service"]}]}},"additionalProperties":false,"description":"The connection's settings other than its credentials, which Rollstack never returns. Each type has only the settings that apply to it."},"autoProvision":{"type":"boolean","description":"Whether members who join the organization get access to the connection automatically. When `false`, its owner and admins add members with `addConnectionUsers`."},"isActive":{"type":"boolean","description":"Whether at least one member's access to the connection works, so data can be read through it. `false` when none does: for example, members still have to enter their own credentials in the app, no user in the tool has their email, or their credentials were found invalid."},"defaultUserId":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The user id of the connection's default user, which the app calls its service account. Everyone with access to the connection reads its data through this member's access instead of their own. `null` when there's none, so each member reads with their own access."},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, as `listMembers` returns it."},"email":{"type":"string","description":"The owner's email address."}},"required":["id","email"],"additionalProperties":false},{"type":"null"}],"description":"The member who owns the connection, usually the one who created it. Only the owner can delete the connection and add or remove its admins. `null` if no member holds the owner role."},"admins":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id, as `listMembers` returns it."},"role":{"type":"string","enum":["owner","admin"],"description":"The member's role on the connection. `owner`: owns the connection; only they can delete it and add or remove admins. `admin`: can change the connection's settings and credentials, and manage who has access to it."}},"required":["userId","role"],"additionalProperties":false},"description":"The members who manage the connection, each with their role on it: its owner and its admins."},"hasCredentials":{"type":"boolean","const":true,"description":"Always `true`. Credentials are write-only: Rollstack never returns them. Change them with `replaceConnectionCredentials`."},"createdAt":{"description":"When the connection was created.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the connection was last updated, for example renamed or given new credentials.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","type","name","config","autoProvision","isActive","defaultUserId","owner","admins","hasCredentials","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"patch":{"operationId":"updateConnection","summary":"Update connection","description":"Renames a connection, changes whether new members get access, or changes the default user, whose access everyone without their own uses. Send only the fields to change, at least one; a null defaultUserId removes the default user.\n\nRequires the `connections:write` scope.","tags":["Connections"],"x-scope":"connections:write","security":[{"apiKey":[]},{"oauth2":["connections:write"]}],"parameters":[{"name":"type","in":"path","required":true,"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`.","schema":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"description":"The new name members will see for the connection in Rollstack. If omitted, the name stays the same.","examples":["Acme Looker"],"type":"string","minLength":1},"autoProvision":{"description":"Whether members who join the organization from now on get access to the connection automatically. Turning it on doesn't give access to current members who don't have it: add them with `addConnectionUsers`. If omitted, the setting stays the same.","type":"boolean"},"defaultUserId":{"description":"The member to make the connection's default user, which the app calls its service account, by user id from `listConnectionUsers`: they must already have access to the connection. Everyone with access to the connection reads its data through this member's access instead of their own. Setting another member replaces the current default user, and `null` removes it, so each member reads with their own access again. If omitted, it stays the same. Only the connection's owner and admins may change it, and a Databricks connection can't have one. On Sigma, their access must match an active Sigma member, which `isActive` from `listConnectionUsers` shows, or the call answers 404 `datasource-user-not-found`.","examples":[1042],"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the connection. Pass it with `type` to the other `\/connections\/{type}\/{id}` endpoints."},"type":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."},"name":{"type":"string","description":"The connection's name, as members see it in Rollstack."},"config":{"type":"object","properties":{"baseUrl":{"description":"The URL of the instance the connection reads from, such as your Looker, Metabase or Snowflake URL. For Sigma, the API base URL of your Sigma organization's region. Power BI and Omni connections have none: an Omni connection's account is in `instanceSlug`.","type":"string"},"siteName":{"description":"Tableau only: the Tableau site the connection reads from, as your Tableau URLs name it after `#\/site\/`. `null` for a Tableau Server's default site.","anyOf":[{"type":"string"},{"type":"null"}]},"instanceSlug":{"description":"Omni only: your Omni account name, the subdomain of your Omni URL (`acme` in `https:\/\/acme.omniapp.co`).","type":"string"},"organizationSlug":{"description":"Sigma only: your Sigma organization, as your Sigma URLs name it after `app.sigmacomputing.com\/` (`acme` in `https:\/\/app.sigmacomputing.com\/acme`).","type":"string"},"projectId":{"description":"Lightdash only: the ID of the Lightdash project whose dashboards the connection reads.","type":"string"},"embeddingMode":{"description":"Looker only: how Rollstack opens the connection's Looker dashboards to capture their charts. `signed`: through embed URLs signed with the connection's embed secret. `private`: through Looker's API, by exporting dashboards as PDFs, which is slower and less reliable. `cookieless` currently works like `signed`.","type":"string","enum":["signed","cookieless","private"]},"authorizationMode":{"description":"Looker, Power BI and Sigma only: whose permissions in the tool apply when members read data. `per_user`: each member's own, through their own API key in Looker or found by their email in Power BI, if the connection was created with a Power BI email. `impersonated` (Looker only): one admin API key acts as each member's Looker user, found by their email. `shared`: everyone gets the same access, that of the connection's API key in Looker or of the app registration in Power BI. Sigma: `internal`, each member's own Sigma account, found by their email; `embed_users`, the same, else an embed user Rollstack creates with the account type and teams set in the app.","anyOf":[{"type":"string","enum":["per_user","impersonated","shared"]},{"type":"string","enum":["shared","per_user"]},{"type":"string","enum":["internal","embed_users"]}]},"authMethod":{"description":"Metabase, Snowflake, Databricks and BigQuery only: how Rollstack signs in. For Metabase, `apiKey` uses an admin API key and applies each member's Metabase permissions, found by their email, while `password` signs each member in with their own Metabase password. For Snowflake, Databricks and BigQuery, `oauth` has each member connect their own account through a browser sign-in, while `service` has everyone read through one Snowflake service user, with a key pair, one Databricks service principal or one Google Cloud service account.","anyOf":[{"type":"string","enum":["password","apiKey"]},{"type":"string","enum":["oauth","service"]}]}},"additionalProperties":false,"description":"The connection's settings other than its credentials, which Rollstack never returns. Each type has only the settings that apply to it."},"autoProvision":{"type":"boolean","description":"Whether members who join the organization get access to the connection automatically. When `false`, its owner and admins add members with `addConnectionUsers`."},"isActive":{"type":"boolean","description":"Whether at least one member's access to the connection works, so data can be read through it. `false` when none does: for example, members still have to enter their own credentials in the app, no user in the tool has their email, or their credentials were found invalid."},"defaultUserId":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The user id of the connection's default user, which the app calls its service account. Everyone with access to the connection reads its data through this member's access instead of their own. `null` when there's none, so each member reads with their own access."},"owner":{"anyOf":[{"type":"object","properties":{"id":{"type":"number","description":"The owner's user id, as `listMembers` returns it."},"email":{"type":"string","description":"The owner's email address."}},"required":["id","email"],"additionalProperties":false},{"type":"null"}],"description":"The member who owns the connection, usually the one who created it. Only the owner can delete the connection and add or remove its admins. `null` if no member holds the owner role."},"admins":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id, as `listMembers` returns it."},"role":{"type":"string","enum":["owner","admin"],"description":"The member's role on the connection. `owner`: owns the connection; only they can delete it and add or remove admins. `admin`: can change the connection's settings and credentials, and manage who has access to it."}},"required":["userId","role"],"additionalProperties":false},"description":"The members who manage the connection, each with their role on it: its owner and its admins."},"hasCredentials":{"type":"boolean","const":true,"description":"Always `true`. Credentials are write-only: Rollstack never returns them. Change them with `replaceConnectionCredentials`."},"createdAt":{"description":"When the connection was created.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedAt":{"description":"When the connection was last updated, for example renamed or given new credentials.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","type","name","config","autoProvision","isActive","defaultUserId","owner","admins","hasCredentials","createdAt","updatedAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"deleteConnection","summary":"Delete connection","description":"Deletes a connection with every user's access to it and every sync that uses it. Only its owner may.\n\nRequires the `connections:write` scope.","tags":["Connections"],"x-scope":"connections:write","security":[{"apiKey":[]},{"oauth2":["connections:write"]}],"parameters":[{"name":"type","in":"path","required":true,"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`.","schema":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/connections\/{type}\/{id}\/dashboards":{"get":{"operationId":"searchDashboards","summary":"Search dashboards","description":"The dashboards of a Looker, Metabase, Omni, Lightdash, Sigma, Tableau or Power BI connection whose name holds any word of query or its singular, in any case, at most 50: those the most of the organization's reports read first, copies, old and personal ones last, then most words first, read with the user's access to the connection. A Tableau dashboard is a workbook, its views its tabs; a Power BI one a report, its pages its tabs; a Sigma one a workbook, its pages its tabs. On a Sigma connection, query can be a link to a workbook the user pasted: it finds only that workbook, with the page the link opens on as tabId, but not the link's control values, saved view or tag, and a link to another Sigma organization is rejected. On a Salesforce connection it finds reports the same way, the most recently run first among equals, each with its format: a report has no tabs, so add a tabular or summary one to a report with addReportDatasheets by its reportId, without getDashboard, and tell the user a matrix or joined one can't be added yet. Search by the name the user gives, confirm the dashboard with the user, then check its tabs and charts with getDashboard or add it to a report with addReportDatasheets. listConnections gives the connection's type and id.\n\nRequires the `connections:read` scope.","tags":["Connections"],"x-scope":"connections:read","security":[{"apiKey":[]},{"oauth2":["connections:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"type","in":"path","required":true,"description":"The type of connection, as `type` in `listConnections`: the BI tool it connects to. Only Looker, Metabase, Omni, Lightdash, Sigma, Tableau and Power BI (`PowerBI`) connections have dashboards, and on a `Salesforce` connection the search finds its reports.","schema":{"type":"string","enum":["Looker","Metabase","Omni","Lightdash","Tableau","PowerBI","Sigma","Salesforce"],"description":"The type of connection, as `type` in `listConnections`: the BI tool it connects to. Only Looker, Metabase, Omni, Lightdash, Sigma, Tableau and Power BI (`PowerBI`) connections have dashboards, and on a `Salesforce` connection the search finds its reports."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"query","in":"query","required":false,"description":"Words to search for in names, separated by spaces: a dashboard, table, model or spreadsheet is returned when its name contains any of them, case-insensitively, a table's full name with its database and schema. If omitted, results aren't filtered by name. At most 50 results are returned either way.","schema":{"description":"Words to search for in names, separated by spaces: a dashboard, table, model or spreadsheet is returned when its name contains any of them, case-insensitively, a table's full name with its database and schema. If omitted, results aren't filtered by name. At most 50 results are returned either way.","examples":["revenue"],"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the dashboard in its BI tool. Pass it as `dashboardId` to `getDashboard` or `addReportDatasheets`. For Tableau it is the workbook's id; for Power BI, the report's workspace id and report id, joined by a dot; for Sigma, the workbook's UUID, not the short id in its links. For Salesforce it is a report's id, to pass as `reportId` to `addReportDatasheets`; a report has no tabs, so `getDashboard` doesn't read it."},"name":{"type":"string","description":"The dashboard's name in its BI tool. For Tableau and Sigma it is the workbook's name, for Power BI and Salesforce the report's."},"folder":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Where the dashboard is filed in its BI tool: its Looker, Omni or Salesforce folder, Metabase collection, Power BI workspace or Sigma path (`My Documents` for a workbook in your own Sigma documents). Helps tell apart dashboards with the same name, such as copies of a Power BI report in several workspaces. `null` when the BI tool gives none, and always for Lightdash and Tableau."},"decks":{"type":"number","description":"How many of your organization's reports have a datasheet that reads from this dashboard through this connection. Results are sorted by this count, highest first."},"tabId":{"description":"Only for a Sigma workbook found by a link to one of its pages or elements: the page the link opens on, to pass as `tabId` to `getDashboard` or `addReportDatasheets`.","type":"string"},"tabName":{"description":"Only with `tabId`: the name of the page the link opens on, as Sigma shows it.","type":"string"},"format":{"description":"Only for a Salesforce report: its format in Salesforce. Only `tabular` and `summary` reports can be added with `addReportDatasheets`; `matrix` and `joined` reports can't be added yet, so tell the user rather than offering them.","type":"string","enum":["tabular","summary","matrix","joined"]}},"required":["id","name","folder","decks"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/connections\/{type}\/{id}\/dashboards\/{dashboardId}":{"get":{"operationId":"getDashboard","summary":"Get dashboard","description":"A dashboard of a Looker, Metabase, Omni, Lightdash, Sigma, Tableau or Power BI connection, read with the user's access to the connection (a Salesforce report has no tabs or charts to read, so add it with addReportDatasheets directly): its tabs, and the charts and filters of the tab tabId names, one of the ids in tabs (else the one the dashboard opens on, a Power BI report's or Sigma workbook's first page). Tableau and Power BI list no charts or filters here: once the tab is added to a report, its charts are listed from its picture for the slides agent to add; a Sigma page lists its charts and tables, and the workbook's controls as its filters. Find the dashboard's id with searchDashboards. Confirm the dashboard and tab with the user, then add it to a report with addReportDatasheets; for another tab, call it again with that tab's id from tabs.\n\nRequires the `connections:read` scope.","tags":["Connections"],"x-scope":"connections:read","security":[{"apiKey":[]},{"oauth2":["connections:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"type","in":"path","required":true,"description":"The type of connection, as `type` in `listConnections`: the BI tool it connects to. Only Looker, Metabase, Omni, Lightdash, Sigma, Tableau and Power BI (`PowerBI`) connections have dashboards.","schema":{"type":"string","enum":["Looker","Metabase","Omni","Lightdash","Tableau","PowerBI","Sigma"],"description":"The type of connection, as `type` in `listConnections`: the BI tool it connects to. Only Looker, Metabase, Omni, Lightdash, Sigma, Tableau and Power BI (`PowerBI`) connections have dashboards."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"dashboardId","in":"path","required":true,"description":"The dashboard to read, by the `id` that `searchDashboards` returns.","schema":{"type":"string","description":"The dashboard to read, by the `id` that `searchDashboards` returns."}},{"name":"tabId","in":"query","required":false,"description":"The dashboard tab to read, by its `id` from the `tabs` that `getDashboard` returns: a Looker, Metabase or Lightdash tab, a Tableau view, a Power BI page or a Sigma page. If omitted, the dashboard's first tab is used, or the whole dashboard when it has no tabs, as on Omni. A tab the dashboard doesn't have returns a 404 error.","schema":{"description":"The dashboard tab to read, by its `id` from the `tabs` that `getDashboard` returns: a Looker, Metabase or Lightdash tab, a Tableau view, a Power BI page or a Sigma page. If omitted, the dashboard's first tab is used, or the whole dashboard when it has no tabs, as on Omni. A tab the dashboard doesn't have returns a 404 error.","examples":["12-overview"],"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"connection":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the connection, the `id` in the request path."},"type":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."},"name":{"type":"string","description":"The connection's name, as members see it in Rollstack."}},"required":["id","type","name"],"additionalProperties":false,"description":"The connection the dashboard was read through: the one in the request path."},"dashboard":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the dashboard in its BI tool. Pass it as `dashboardId` to `getDashboard` or `addReportDatasheets`. For Tableau it is the workbook's id; for Power BI, the report's workspace id and report id, joined by a dot; for Sigma, the workbook's UUID, not the short id in its links. For Salesforce it is a report's id, to pass as `reportId` to `addReportDatasheets`; a report has no tabs, so `getDashboard` doesn't read it."},"name":{"type":"string","description":"The dashboard's name in its BI tool. For Tableau and Sigma it is the workbook's name, for Power BI the report's."},"url":{"type":"string","description":"A link that opens the dashboard in its BI tool. For Tableau, it opens the workbook on the view in `tabId`; for Sigma, on its first page."}},"required":["id","name","url"],"additionalProperties":false,"description":"The dashboard you asked for."},"tabs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the tab. Pass it as `tabId` to read that tab with `getDashboard`, or to add it to a report with `addReportDatasheets`. Its form depends on the BI tool: a Looker layout id, a Metabase `{id}-{slug}` such as `12-overview`, a Lightdash tab uuid, a Tableau view id, a Power BI page's internal name or a Sigma page id."},"name":{"type":"string","description":"The tab's name as shown in the BI tool, such as a Power BI page's display name."}},"required":["id","name"],"additionalProperties":false},"description":"The dashboard's tabs: a Looker, Metabase or Lightdash dashboard's tabs, a Tableau workbook's views, a Power BI report's pages or a Sigma workbook's pages, never its hidden ones. Empty when the dashboard has no tabs, as always on Omni."},"tabId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The tab `elements` comes from: the one you passed as `tabId`, or the dashboard's first tab if you passed none. `null` when the dashboard was read as a whole, as when it has no tabs."},"elements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the element in its BI tool, such as a Looker tile's id, a Metabase dashboard card's id, a Lightdash chart's uuid or a Sigma element's id."},"name":{"type":"string","description":"The element's title as shown on the dashboard. An element without a title, such as a text card, is named after its type instead, as in `Text`."},"type":{"type":"string","description":"The kind of element, in the BI tool's own terms, such as `looker_column` for a Looker column chart, `saved_chart` for a Lightdash chart, `kpi-chart` for a Sigma KPI or `text` for a Metabase text card."}},"required":["id","name","type"],"additionalProperties":false},"description":"The charts and other elements on that tab, or on the whole dashboard when `tabId` is `null`. Once you add the tab to a report with `addReportDatasheets`, the slides agent can add these elements to the report's slides. For Sigma, only the page's charts and tables, without its texts, images and controls. Always empty for Tableau and Power BI: their charts are listed once the tab is added to a report, by `getReportDatasheet` on its picture, and `addReportDashboardElements` or the slides agent can then add them."},"filters":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"The filter's label as shown on the dashboard. For Metabase it is the filter's slug instead, and for a Sigma control without a label, its control ID."}},"required":["name"],"additionalProperties":false},"description":"The dashboard's filters, and on Omni its controls too. For Sigma, the controls on every page of the workbook, so two can share a label. Always empty for Tableau and Power BI."}},"required":["connection","dashboard","tabs","tabId","elements","filters"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/connections\/{type}\/{id}\/models":{"get":{"operationId":"searchModels","summary":"Search models","description":"The models of a Looker, Power BI or Tableau connection whose name or group holds any word of query or its singular, in any case, at most 50: Looker explores grouped by LookML model, Power BI semantic models by workspace, Tableau published data sources by project, read with the user's access to the connection (on Tableau, their own Tableau user). A model is what the slides agent queries in its BI tool for the data a slide needs, where a dashboard tab comes in as a picture. Confirm the model with the user, then add it to a report with addReportDatasheets by its modelId and pass the new datasheet's id to sendReportMessage. listConnections gives the connection's type and id.\n\nRequires the `connections:read` scope.","tags":["Connections"],"x-scope":"connections:read","security":[{"apiKey":[]},{"oauth2":["connections:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"type","in":"path","required":true,"description":"The type of connection, as `type` in `listConnections`. Only Looker, Power BI (`PowerBI`) and Tableau connections have models: Looker explores, Power BI semantic models and Tableau published data sources.","schema":{"type":"string","enum":["Looker","PowerBI","Tableau"],"description":"The type of connection, as `type` in `listConnections`. Only Looker, Power BI (`PowerBI`) and Tableau connections have models: Looker explores, Power BI semantic models and Tableau published data sources."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"query","in":"query","required":false,"description":"Words to search for in names, separated by spaces: a dashboard, table, model or spreadsheet is returned when its name contains any of them, case-insensitively, a table's full name with its database and schema. If omitted, results aren't filtered by name. At most 50 results are returned either way.","schema":{"description":"Words to search for in names, separated by spaces: a dashboard, table, model or spreadsheet is returned when its name contains any of them, case-insensitively, a table's full name with its database and schema. If omitted, results aren't filtered by name. At most 50 results are returned either way.","examples":["revenue"],"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Identifies the model in its BI tool, as `searchModels` lists it. Pass it as `modelId` to `addReportDatasheets`."},"name":{"type":"string","description":"The model's name, as the app lists it: a Looker explore's label, else its name, a Power BI semantic model's or a Tableau data source's name."},"group":{"type":"string","description":"What the app lists it under: the LookML model of a Looker explore, the workspace of a Power BI semantic model, the project of a Tableau data source."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"A Looker explore's description from its LookML. `null` when it has none, and for Power BI and Tableau."}},"required":["id","name","group","description"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/connections\/{type}\/{id}\/tables":{"get":{"operationId":"searchTables","summary":"Search tables","description":"The tables and views of a Snowflake, Databricks or BigQuery connection whose full name, database.schema.table (project.dataset.table on BigQuery), holds any word of query, in any case, at most 50, read with the user's access to the connection, as its default user when one is set. The first search of a connection reads its whole catalog, which can take a while on a large warehouse. On BigQuery it reads the billing project's tables, and another project's only when query names that project, by its ID or as the start of a name such as other-project.dataset. Search by the name the user gives and confirm the table with the user, then add it to a report with addReportDatasheets by its connection, database, schema and table, and pass the datasheet id on sendReportMessage: the slides agent queries it in the warehouse with SQL over all its rows. listConnections gives the connection's type and id.\n\nRequires the `connections:read` scope.","tags":["Connections"],"x-scope":"connections:read","security":[{"apiKey":[]},{"oauth2":["connections:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"type","in":"path","required":true,"description":"The type of connection, as `type` in `listConnections`: the `Snowflake`, `Databricks` or `BigQuery` data warehouse.","schema":{"type":"string","enum":["Snowflake","Databricks","BigQuery"],"description":"The type of connection, as `type` in `listConnections`: the `Snowflake`, `Databricks` or `BigQuery` data warehouse."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"query","in":"query","required":false,"description":"Words to search for in names, separated by spaces: a dashboard, table, model or spreadsheet is returned when its name contains any of them, case-insensitively, a table's full name with its database and schema. If omitted, results aren't filtered by name. At most 50 results are returned either way.","schema":{"description":"Words to search for in names, separated by spaces: a dashboard, table, model or spreadsheet is returned when its name contains any of them, case-insensitively, a table's full name with its database and schema. If omitted, results aren't filtered by name. At most 50 results are returned either way.","examples":["revenue"],"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"database":{"type":"string","description":"The database the table is in, its Unity Catalog catalog on Databricks and its Google Cloud project on BigQuery. Pass it as `database` to `addReportDatasheets`."},"schema":{"type":"string","description":"The schema the table is in, its dataset on BigQuery. Pass it as `schema` to `addReportDatasheets`."},"table":{"type":"string","description":"The table's name. Pass it as `table` to `addReportDatasheets`."},"type":{"type":"string","enum":["table","view","metric_view"],"description":"Whether it is a `table`, a `view` or a Databricks `metric_view`. All three can be added to a report."}},"required":["database","schema","table","type"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/connections\/{type}\/{id}\/credentials":{"put":{"operationId":"replaceConnectionCredentials","summary":"Replace credentials","description":"Replaces every credential of a connection, after testing them. Its users' access gets the new credentials too. The instance (baseUrl, siteName, instanceSlug, organizationSlug) can't change; siteName can be left out to keep the stored site. Settings the connection doesn't show (Looker user and attributes, userEmail) keep their value when left out, but Omni's and Sigma's externalUserEmail must be sent. A failed test answers 422 with the provider's code and message.\n\nRequires the `credentials:write` scope.","tags":["Connections"],"x-scope":"credentials:write","security":[{"apiKey":[]},{"oauth2":["credentials:write"]}],"parameters":[{"name":"type","in":"path","required":true,"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`.","schema":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","oneOf":[{"type":"object","properties":{"baseUrl":{"description":"The URL of the Tableau Cloud or Server instance the connection reads from. It can't change when replacing credentials: send the connection's current `config.baseUrl`, or create a new connection for another instance. Trailing slashes are removed.","type":"string","examples":["https:\/\/acme.online.tableau.com"]},"type":{"type":"string","const":"Tableau","description":"Set to `Tableau` to connect Tableau Cloud or Tableau Server. When replacing credentials, it must match the `type` in the path."},"siteName":{"description":"The Tableau site the connection reads from, as your Tableau URLs name it after `#\/site\/` (`acme` in `https:\/\/online.tableau.com\/#\/site\/acme\/workbooks`). `null` for a Tableau Server's default site, which is also what omitting it means when creating the connection. It can't change when replacing credentials: omit it or send the connection's current `config.siteName`.","examples":["acme"],"anyOf":[{"type":"string"},{"type":"null"}]},"clientId":{"type":"string","description":"The Client ID of the Tableau connected app Rollstack signs in through. In Tableau, create it under Settings > Connected Apps > New Connected App > Direct Trust, with access to all projects and all domains allowed, then enable it.","examples":["0f8e1c2d-3b4a-4c5d-9e6f-7a8b9c0d1e2f"]},"secretId":{"type":"string","description":"The Secret ID of the connected app's secret, shown with its Client ID under Settings > Connected Apps in Tableau.","examples":["5a6b7c8d-9e0f-4a1b-8c2d-3e4f5a6b7c8d"]},"secretValue":{"type":"string","writeOnly":true,"description":"The Secret Value of the same connected app secret as `secretId`.","examples":["your-connected-app-secret"]},"username":{"type":"string","description":"Your Tableau username, usually your email: the connected app signs in to Tableau as this user, and Rollstack tests the credentials with it. When the connection is created, your access uses it, and each other member who gets access is given a username derived from their Rollstack email in the same pattern, such as their email if this is yours. Members can change theirs in the app.","examples":["jane@acme.com"]}},"required":["baseUrl","type","clientId","secretId","secretValue","username"],"additionalProperties":false},{"type":"object","properties":{"baseUrl":{"description":"The URL of the Looker instance the connection reads from. It can't change when replacing credentials: send the connection's current `config.baseUrl`, or create a new connection for another instance. Trailing slashes are removed.","type":"string","examples":["https:\/\/acme.cloud.looker.com"]},"type":{"type":"string","const":"Looker","description":"Set to `Looker` to connect a Looker instance. When replacing credentials, it must match the `type` in the path."},"clientId":{"type":"string","description":"The client ID of the Looker API key Rollstack connects with. A Looker admin generates it under Admin > Users > Users: open the user or service account, then Edit keys under API keys. With `impersonated` authorization, that Looker user must have the Admin role.","examples":["kG8mQ2xYp4Rz7wNs3Vbc"]},"clientSecret":{"type":"string","writeOnly":true,"description":"The client secret generated with `clientId`, from the same Looker API key.","examples":["your-looker-client-secret"]},"embedSecret":{"type":"string","writeOnly":true,"description":"The embed secret Rollstack signs Looker embed URLs with to open your dashboards. Generate it on the Embed page of Looker's Admin panel, where you also add `https:\/\/*.rollstack.com` to the Embedded Domain Allowlist.","examples":["your-looker-embed-secret"]},"embeddingMode":{"type":"string","enum":["signed","cookieless","private"],"description":"How Rollstack opens your Looker dashboards to capture their charts. `signed` (recommended): through embed URLs signed with `embedSecret`. `private`: through Looker's API, by exporting dashboards as PDFs, which is slower and less reliable. `cookieless` currently works like `signed`."},"authorizationMode":{"description":"Whose Looker permissions apply when members read data through the connection. `per_user`: each member reads with an API key of their own Looker user, so they see what their Looker permissions allow; every member needs their own API key set up. `impersonated`: this API key, whose Looker user must have the Admin role, acts as each member's Looker user, found by their email. `shared`: everyone reads with this API key and its permissions. Defaults to `per_user` when creating the connection. Changing it overwrites every member's Looker credentials, which can't be undone. When replacing credentials, omitting it keeps the connection's current value.","type":"string","enum":["per_user","impersonated","shared"]},"lookerUserEmail":{"description":"With `impersonated` authorization, the email of the Looker user this API key acts as when Rollstack tests the credentials, usually your own; the test fails unless this or `lookerUserId` finds a Looker user. When members read data, each acts as the Looker user with their own email instead. When replacing credentials, omitting it keeps the connection's current value.","examples":["jane@acme.com"],"anyOf":[{"type":"string"},{"type":"null"}]},"lookerUserId":{"description":"With `impersonated` authorization, the id of the Looker user this API key acts as when Rollstack tests the credentials. When there's none, Rollstack finds it from `lookerUserEmail`. When replacing credentials, omitting it keeps the connection's current value.","examples":["42"],"anyOf":[{"type":"string"},{"type":"null"}]},"userAttributes":{"description":"Looker user attributes, by attribute name, that Rollstack sets for every member when it opens dashboards through signed embed URLs, such as a `region` your Looker models filter rows by. They take precedence over the Looker user's own values for those attributes. If omitted when creating the connection, none are set. When replacing credentials, omitting it keeps the connection's current value.","examples":[{"region":"EMEA"}],"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["baseUrl","type","clientId","clientSecret","embedSecret","embeddingMode"],"additionalProperties":false},{"type":"object","properties":{"baseUrl":{"description":"The URL of the Lightdash instance the connection reads from. It can't change when replacing credentials: send the connection's current `config.baseUrl`, or create a new connection for another instance. Trailing slashes are removed.","type":"string","examples":["https:\/\/acme.lightdash.cloud"]},"personalAccessToken":{"type":"string","writeOnly":true,"description":"The Lightdash token Rollstack connects with: a personal access token, starting with `ldpat_`, or a service account token, starting with `ldsvc_`. When the connection is created, your access uses it; every other member sets their own token in the app.","examples":["ldpat_your-personal-access-token"]},"userEmail":{"description":"The email of the Lightdash user whose user attributes Rollstack applies when it opens dashboards through your access. Only used with a service account token (`ldsvc_`); when it's set, the token must have Lightdash's Admin role, or the test fails. If `null`, the attributes of the token's own user apply. When the connection is created, only your access gets it: other members' access applies the attributes of their own token's user. When replacing credentials, omitting it keeps the connection's current value.","examples":["jane@acme.com"],"anyOf":[{"type":"string"},{"type":"null"}]},"projectId":{"type":"string","description":"The ID of the Lightdash project whose dashboards the connection reads, shown at the bottom of the Project Settings page in Lightdash.","examples":["3e5f7a9b-1c2d-4e3f-8a5b-7c9d1e3f5a7b"]},"embedSecret":{"type":"string","writeOnly":true,"description":"The embed secret Rollstack signs Lightdash embed tokens with to open your dashboards. Generate it in Lightdash under Project Settings > Embed Configuration.","examples":["your-lightdash-embed-secret"]},"type":{"type":"string","const":"Lightdash","description":"Set to `Lightdash` to connect a Lightdash project. When replacing credentials, it must match the `type` in the path."}},"required":["baseUrl","personalAccessToken","projectId","embedSecret","type"],"additionalProperties":false},{"type":"object","properties":{"baseUrl":{"description":"The URL of the Metabase instance the connection reads from. It can't change when replacing credentials: send the connection's current `config.baseUrl`, or create a new connection for another instance. Trailing slashes are removed.","type":"string","examples":["https:\/\/acme.metabaseapp.com"]},"embedSecret":{"type":"string","writeOnly":true,"description":"The embedding secret key Rollstack signs Metabase embed URLs with to open your dashboards. In Metabase's Admin settings, go to Embedding, enable embedding, then generate the Embedding Secret Key under More details.","examples":["your-metabase-embedding-secret"]},"authMethod":{"type":"string","enum":["password","apiKey"],"description":"How Rollstack signs in to Metabase. `apiKey` (recommended): with the admin API key in `apiKey`, matching each member to the Metabase user with their email, so they only see the dashboards their Metabase permissions allow. `password`: each member signs in with their own Metabase username and password; members other than you enter their password in the app."},"type":{"type":"string","const":"Metabase","description":"Set to `Metabase` to connect a Metabase instance. When replacing credentials, it must match the `type` in the path."},"username":{"type":"string","description":"Your Metabase username, usually your email. With `password` auth, Rollstack signs in with it and `password`; with `apiKey` auth, it finds your Metabase user, whose permissions apply. When the connection is created, your access uses it, and each other member who gets access is given a username derived from their Rollstack email in the same pattern.","examples":["jane@acme.com"]},"password":{"default":null,"writeOnly":true,"description":"Your Metabase password, required with `password` auth. When the connection is created, only your access gets it: other members enter their own in the app.","examples":["your-metabase-password"],"anyOf":[{"type":"string"},{"type":"null"}]},"apiKey":{"default":null,"writeOnly":true,"description":"The admin API key Rollstack reads Metabase with, required with `apiKey` auth. Every member's access uses it.","examples":["mb_your-api-key"],"anyOf":[{"type":"string"},{"type":"null"}]},"sessionId":{"default":null,"writeOnly":true,"description":"With `password` auth, an existing Metabase session token for Rollstack to use. If omitted, Rollstack signs in with `username` and `password` to get one, and again whenever it stops working.","examples":["8c1d3e5f-7a9b-4c1d-8e3f-5a7b9c1d3e5f"],"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["baseUrl","embedSecret","authMethod","type","username"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"Salesforce","description":"Set to `Salesforce` to connect a Salesforce org. When replacing credentials, it must match the `type` in the path."},"baseUrl":{"description":"The URL of the Salesforce instance the connection reads from. It can't change when replacing credentials: send the connection's current `config.baseUrl`, or create a new connection for another instance. Trailing slashes are removed.","type":"string","examples":["https:\/\/acme.my.salesforce.com"]},"clientId":{"type":"string","description":"The Consumer Key of the External Client App you create for Rollstack in Salesforce. Enable the JWT Bearer Flow on it and upload Rollstack's certificate, which you can download from the Salesforce connection setup in the Rollstack app. Find the key in the External Client App's Settings tab, under OAuth Settings > Consumer Key and Secret.","examples":["your-consumer-key"]},"username":{"type":"string","description":"Your Salesforce username: Rollstack signs in to Salesforce as this user through the JWT Bearer Flow, and tests the credentials with it. When the connection is created, your access uses it, and each other member who gets access is given a username derived from their Rollstack email in the same pattern.","examples":["jane@acme.com"]},"useCrma":{"type":"boolean","description":"Whether you can also add CRM Analytics dashboards from this connection to Rollstack reports, besides Salesforce reports. When `false`, only Salesforce reports are offered."}},"required":["type","baseUrl","clientId","username","useCrma"],"additionalProperties":false},{"type":"object","properties":{"clientId":{"type":"string","description":"The Application (client) ID of the Microsoft Entra app registration Rollstack reads Power BI through, shown on its Overview page in the Azure Portal. Add the app to each Power BI workspace Rollstack should read, with the Member role.","examples":["2b4d6f8a-0c1e-4a3b-9d5f-7b9d1f3a5c7e"]},"tenantId":{"type":"string","description":"The Directory (tenant) ID of your Microsoft Entra tenant, shown next to the Application ID on the app registration's Overview page.","examples":["4d6f8a0c-2e3a-4b5c-8d7e-9f1a3b5c7d9e"]},"secretValue":{"type":"string","writeOnly":true,"description":"The Value of a client secret of the app registration, created in the Azure Portal under Certificates & secrets > New client secret.","examples":["your-client-secret-value"]},"userEmail":{"description":"Your email in Power BI, used with `per_user` authorization: your access to the connection then shows only the Power BI reports this account can see, and each other member's access only those their own Power BI account, found by their Rollstack email, can see. If `null` or omitted when creating the connection, no member's Power BI permissions apply, even with `per_user`: everyone sees what the app registration can see. Replacing it later only affects members who get access afterward. When replacing credentials, omitting it keeps the connection's current value.","examples":["jane@acme.com"],"anyOf":[{"type":"string"},{"type":"null"}]},"authorizationMode":{"type":"string","enum":["shared","per_user"],"description":"Whose Power BI permissions apply. `per_user`: each member only sees the Power BI reports their own Power BI account can access, found by their email, as long as `userEmail` is set; the app registration needs read-only Admin API access. `shared`: every member sees everything the app registration can see, whatever their Power BI permissions."},"type":{"type":"string","const":"PowerBI","description":"Set to `PowerBI` to connect Power BI. When replacing credentials, it must match the `type` in the path."}},"required":["clientId","tenantId","secretValue","authorizationMode","type"],"additionalProperties":false},{"type":"object","properties":{"instanceSlug":{"type":"string","description":"Your Omni account name, the subdomain of your Omni URL (`acme` in `https:\/\/acme.omniapp.co`). It can't change when replacing credentials: send the connection's current `config.instanceSlug`.","examples":["acme"]},"externalUserEmail":{"type":"string","description":"The email of your Omni user, usually your own email; the test fails unless an Omni user has it. When the connection is created, your access opens dashboards as this Omni user, with that user's groups, user attributes and dashboards, and each other member's access as the Omni user with their Rollstack email.","examples":["jane@acme.com"]},"apiKey":{"type":"string","writeOnly":true,"description":"An Omni organization API key, which every member's access uses. In Omni, go to Settings > API Access > Organization keys and click Generate New Key.","examples":["your-omni-api-key"]},"embedSecret":{"type":"string","writeOnly":true,"description":"The embed secret Rollstack signs Omni embed URLs with to open your dashboards. In Omni, find it under Settings > Embed > Admin; if there's no Embed section, ask Omni support to enable it.","examples":["your-omni-embed-secret"]},"type":{"type":"string","const":"Omni","description":"Set to `Omni` to connect an Omni account. When replacing credentials, it must match the `type` in the path."}},"required":["instanceSlug","externalUserEmail","apiKey","embedSecret","type"],"additionalProperties":false},{"type":"object","properties":{"baseUrl":{"type":"string","enum":["https:\/\/aws-api.sigmacomputing.com","https:\/\/api.us-a.aws.sigmacomputing.com","https:\/\/api.ca.aws.sigmacomputing.com","https:\/\/api.eu.aws.sigmacomputing.com","https:\/\/api.ch.aws.sigmacomputing.com","https:\/\/api.uk.aws.sigmacomputing.com","https:\/\/api.au.aws.sigmacomputing.com","https:\/\/api.in.aws.sigmacomputing.com","https:\/\/api.us.azure.sigmacomputing.com","https:\/\/api.eu.azure.sigmacomputing.com","https:\/\/api.ca.azure.sigmacomputing.com","https:\/\/api.uk.azure.sigmacomputing.com","https:\/\/api.au.azure.sigmacomputing.com","https:\/\/api.sigmacomputing.com","https:\/\/api.sa.gcp.sigmacomputing.com"],"description":"The API base URL of your Sigma organization, which depends on the cloud and region it runs in. In Sigma, find it under Administration > Developer access. It can't change when replacing credentials: send the connection's current `config.baseUrl`.","examples":["https:\/\/aws-api.sigmacomputing.com"]},"organizationSlug":{"description":"Your Sigma organization, as your Sigma URLs name it after `app.sigmacomputing.com\/` (`acme` in `https:\/\/app.sigmacomputing.com\/acme\/workbook\/...`). Any Sigma URL of the organization works too. It can't change when replacing credentials: send the connection's current `config.organizationSlug`.","type":"string","examples":["acme"]},"serviceClientId":{"type":"string","minLength":1,"description":"The client ID of Sigma client credentials with the REST API and Embedding scopes, which every member's access uses. The Embedding scope is part of Sigma's secure embedding add-on. Their owner must be an active Sigma Admin. In Sigma, go to Administration > Developer access and click Create new.","examples":["your-sigma-client-id"]},"serviceClientSecret":{"type":"string","minLength":1,"writeOnly":true,"description":"The client secret Sigma shows once, when it creates the client credentials. Rollstack stores it encrypted and never returns it.","examples":["your-sigma-client-secret"]},"externalUserEmail":{"type":"string","description":"The email of your Sigma member, usually your own email; the test fails unless a Sigma member has it. When the connection is created, your access opens workbooks as this Sigma member, and each other member's access as the Sigma member with their Rollstack email.","examples":["jane@acme.com"]},"type":{"type":"string","const":"Sigma","description":"Set to `Sigma` to connect a Sigma organization. When replacing credentials, it must match the `type` in the path."}},"required":["baseUrl","organizationSlug","serviceClientId","serviceClientSecret","externalUserEmail","type"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","enum":["Snowflake","Databricks","BigQuery"],"description":"`Snowflake`, `Databricks` or `BigQuery`. Create these connections, and change their credentials, in the Rollstack app."}},"required":["type"],"description":"Not supported: Snowflake, Databricks and BigQuery connections are created, and their credentials changed, only in the Rollstack app. A request with any of these types returns a `400` error."}]}}}},"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/connections\/{type}\/{id}\/users":{"get":{"operationId":"listConnectionUsers","summary":"List connection users","description":"The users with access to a connection, with whether each is the default user and whether their access works. Only its admins may.\n\nRequires the `connections:read` scope.","tags":["Connection users"],"x-scope":"connections:read","security":[{"apiKey":[]},{"oauth2":["connections:read"]}],"parameters":[{"name":"type","in":"path","required":true,"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`.","schema":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"Identifies the user, as their `id` in `listMembers`. Pass it as `userId` to `removeConnectionUser`, or as `defaultUserId` to `updateConnection` to make them the default user."},"email":{"type":"string","description":"The email address of the user's Rollstack account."},"isDefault":{"type":"boolean","description":"Whether this user is the connection's default user, called its service account in the app. While a connection has a default user, Rollstack reads data through the default user's access for everyone with access to the connection, instead of through their own. A connection has at most one, set with `defaultUserId` in `updateConnection`; Databricks connections can't have one."},"isActive":{"type":"boolean","description":"Whether the user's access to the connection is set up and working, shown as Active or Inactive in the connection's list of users in the app. It is `false`, for example, until a Lightdash user enters their personal access token in the app, or when Rollstack couldn't connect to Tableau as that user. It is also `false` while their access is suspended."}},"required":["userId","email","isDefault","isActive"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"addConnectionUsers","summary":"Add connection users","description":"Gives members of the organization access to a connection. Only its admins may. Answers the users who got access; others are skipped.\n\nRequires the `connections:write` scope.","tags":["Connection users"],"x-scope":"connections:write","security":[{"apiKey":[]},{"oauth2":["connections:write"]}],"parameters":[{"name":"type","in":"path","required":true,"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`.","schema":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"userIds":{"minItems":1,"maxItems":100,"type":"array","items":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"examples":[1042]},"description":"The members of your organization to give access to the connection, by their `id` from `listMembers`. Depending on the BI tool, some may still have to enter their own credentials in the app, such as a Lightdash personal access token, before their access works: `isActive` in the response tells you which. Members whose access was suspended get it back. Members who already have access, and ids that aren't active members of your organization, are skipped. From 1 to 100 ids."}},"required":["userIds"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"Identifies a member who got access with this request, as their `id` in `listMembers`. Members who were skipped aren't listed."},"isActive":{"type":"boolean","description":"Whether the user's access to the connection is set up and working, shown as Active or Inactive in the connection's list of users in the app. It is `false`, for example, until a Lightdash user enters their personal access token in the app, or when Rollstack couldn't connect to Tableau as that user. It is also `false` while their access is suspended."}},"required":["userId","isActive"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/connections\/{type}\/{id}\/users\/{userId}":{"delete":{"operationId":"removeConnectionUser","summary":"Suspend connection user","description":"Suspends a user's access to a connection. Their syncs stay but stop updating until `addConnectionUsers` gives them access again or someone takes their reports over. Only its admins may, and never for the default user.\n\nRequires the `connections:write` scope.","tags":["Connection users"],"x-scope":"connections:write","security":[{"apiKey":[]},{"oauth2":["connections:write"]}],"parameters":[{"name":"type","in":"path","required":true,"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`.","schema":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"userId","in":"path","required":true,"description":"The member to act on, by their `id` from `listMembers`. For `removeConnectionUser`, one of the connection's users, as listed by `listConnectionUsers`. For `setConnectionAdmin`, any active member of your organization except the connection's owner. For `removeConnectionAdmin`, one of the connection's admins, as listed in `admins` by `getConnection`, except its owner.","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member to act on, by their `id` from `listMembers`. For `removeConnectionUser`, one of the connection's users, as listed by `listConnectionUsers`. For `setConnectionAdmin`, any active member of your organization except the connection's owner. For `removeConnectionAdmin`, one of the connection's admins, as listed in `admins` by `getConnection`, except its owner."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/connections\/{type}\/{id}\/admins\/{userId}":{"put":{"operationId":"setConnectionAdmin","summary":"Add connection admin","description":"Makes an active member an admin of a connection. Only its owner may.\n\nRequires the `connections:write` scope.","tags":["Connection admins"],"x-scope":"connections:write","security":[{"apiKey":[]},{"oauth2":["connections:write"]}],"parameters":[{"name":"type","in":"path","required":true,"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`.","schema":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"userId","in":"path","required":true,"description":"The member to act on, by their `id` from `listMembers`. For `removeConnectionUser`, one of the connection's users, as listed by `listConnectionUsers`. For `setConnectionAdmin`, any active member of your organization except the connection's owner. For `removeConnectionAdmin`, one of the connection's admins, as listed in `admins` by `getConnection`, except its owner.","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member to act on, by their `id` from `listMembers`. For `removeConnectionUser`, one of the connection's users, as listed by `listConnectionUsers`. For `setConnectionAdmin`, any active member of your organization except the connection's owner. For `removeConnectionAdmin`, one of the connection's admins, as listed in `admins` by `getConnection`, except its owner."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"role":{"type":"string","enum":["admin"],"description":"The role to give the member on the connection. Only `admin` is accepted: admins manage the connection's users and can change its settings and credentials, while only the owner can delete the connection or add and remove admins. Ownership can be transferred only in the app. Being an admin doesn't make them one of the connection's users: add them with `addConnectionUsers` too if they need access of their own."}},"required":["role"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"userId":{"type":"number","description":"The member who is now an admin of the connection, as their `id` in `listMembers`."},"role":{"type":"string","enum":["owner","admin"],"description":"The member's role on the connection, always `admin` here. Admins manage the connection's users, settings and credentials. The other role, `owner`, belongs to the connection's owner, who can also delete the connection and choose its admins; it can't be given through the API."}},"required":["userId","role"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"removeConnectionAdmin","summary":"Remove connection admin","description":"Removes an admin of a connection. Only its owner may, and the owner's own role stays.\n\nRequires the `connections:write` scope.","tags":["Connection admins"],"x-scope":"connections:write","security":[{"apiKey":[]},{"oauth2":["connections:write"]}],"parameters":[{"name":"type","in":"path","required":true,"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`.","schema":{"type":"string","enum":["Tableau","Looker","Metabase","PowerBI","Lightdash","Omni","Sigma","Salesforce","Snowflake","Databricks","BigQuery"],"description":"The data source the connection reads from: `Tableau`, `Looker`, `Metabase`, `PowerBI`, `Lightdash`, `Omni`, `Sigma` or `Salesforce`, or the `Snowflake`, `Databricks` or `BigQuery` data warehouse. Endpoints that act on a connection take it in their path, with the connection's `id`."}},{"name":"id","in":"path","required":true,"description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`.","schema":{"type":"string","description":"Unique identifier for the connection, from `listConnections`, which also returns its `type`."}},{"name":"userId","in":"path","required":true,"description":"The member to act on, by their `id` from `listMembers`. For `removeConnectionUser`, one of the connection's users, as listed by `listConnectionUsers`. For `setConnectionAdmin`, any active member of your organization except the connection's owner. For `removeConnectionAdmin`, one of the connection's admins, as listed in `admins` by `getConnection`, except its owner.","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member to act on, by their `id` from `listMembers`. For `removeConnectionUser`, one of the connection's users, as listed by `listConnectionUsers`. For `setConnectionAdmin`, any active member of your organization except the connection's owner. For `removeConnectionAdmin`, one of the connection's admins, as listed in `admins` by `getConnection`, except its owner."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/spreadsheets":{"get":{"operationId":"searchSpreadsheets","summary":"Search spreadsheets","description":"The Google Sheets and Excel files the user added in the app whose name holds any word of query, in any case, most words first, at most 50. Rollstack can't search the user's whole Google Drive or OneDrive: for another file, ask the user to add it in the app. Confirm the file with the user, then list its sheets with getSpreadsheet.\n\nRequires the `connections:read` scope.","tags":["Spreadsheets"],"x-scope":"connections:read","security":[{"apiKey":[]},{"oauth2":["connections:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"query","in":"query","required":false,"description":"Words to search for in names, separated by spaces: a dashboard, table, model or spreadsheet is returned when its name contains any of them, case-insensitively, a table's full name with its database and schema. If omitted, results aren't filtered by name. At most 50 results are returned either way.","schema":{"description":"Words to search for in names, separated by spaces: a dashboard, table, model or spreadsheet is returned when its name contains any of them, case-insensitively, a table's full name with its database and schema. If omitted, results aren't filtered by name. At most 50 results are returned either way.","examples":["revenue"],"type":"string","minLength":1}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the spreadsheet in Rollstack, not the file's id in Google Drive, OneDrive or SharePoint. Pass it as `id` to `getSpreadsheet` to list its sheets, and as `spreadsheetId` to `addReportDatasheets`."},"name":{"type":"string","description":"The spreadsheet's name, as it was when the file was added to Rollstack: renaming the file afterwards in Google Sheets or Excel doesn't change it here. `searchSpreadsheets` matches `query` against it."},"type":{"type":"string","enum":["GoogleSheet","GoogleExcel","MicrosoftExcel"],"description":"Which app the spreadsheet belongs to, and so which of your accounts Rollstack reads it with. `GoogleSheet` is a Google Sheets file and `GoogleExcel` an Excel file stored in Google Drive, both read with your Google account. `MicrosoftExcel` is an Excel workbook in OneDrive or SharePoint, read with your Microsoft account."},"url":{"type":"string","description":"Link that opens the spreadsheet in Google Sheets or in Excel for the web, for example to check it's the right file before you add it to a report."}},"required":["id","name","type","url"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/spreadsheets\/{id}":{"get":{"operationId":"getSpreadsheet","summary":"Get spreadsheet","description":"A Google Sheets or Excel file the user added in the app, with its sheets, read with the user's own Google or Microsoft account. Fails with user-missing-oauth when the user hasn't connected that account in the app. Find the file's id with searchSpreadsheets, then add a range of one of its sheets to a report with addReportDatasheets by the sheet's id.\n\nRequires the `connections:read` scope.","tags":["Spreadsheets"],"x-scope":"connections:read","security":[{"apiKey":[]},{"oauth2":["connections:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The spreadsheet whose sheets to list, by its `id` from `searchSpreadsheets`. This is Rollstack's identifier, not the file's id in Google Drive, OneDrive or SharePoint. It must be one of your own spreadsheets in Rollstack: another member's spreadsheet returns `404`.","schema":{"type":"string","description":"The spreadsheet whose sheets to list, by its `id` from `searchSpreadsheets`. This is Rollstack's identifier, not the file's id in Google Drive, OneDrive or SharePoint. It must be one of your own spreadsheets in Rollstack: another member's spreadsheet returns `404`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the spreadsheet in Rollstack, not the file's id in Google Drive, OneDrive or SharePoint. Pass it as `id` to `getSpreadsheet` to list its sheets, and as `spreadsheetId` to `addReportDatasheets`."},"name":{"type":"string","description":"The spreadsheet's name, as it was when the file was added to Rollstack: renaming the file afterwards in Google Sheets or Excel doesn't change it here. `searchSpreadsheets` matches `query` against it."},"type":{"type":"string","enum":["GoogleSheet","GoogleExcel","MicrosoftExcel"],"description":"Which app the spreadsheet belongs to, and so which of your accounts Rollstack reads it with. `GoogleSheet` is a Google Sheets file and `GoogleExcel` an Excel file stored in Google Drive, both read with your Google account. `MicrosoftExcel` is an Excel workbook in OneDrive or SharePoint, read with your Microsoft account."},"url":{"type":"string","description":"Link that opens the spreadsheet in Google Sheets or in Excel for the web, for example to check it's the right file before you add it to a report."},"sheets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the sheet within the spreadsheet. Pass it as `sheetId` to `addReportDatasheets`, with the spreadsheet's `id` as `spreadsheetId` and the cells to read as `range`. In Google Sheets, it is the number after `gid=` in the sheet's URL."},"title":{"type":"string","description":"The sheet's name, as shown on its tab in Google Sheets or Excel."}},"required":["id","title"],"additionalProperties":false},"description":"The sheets (tabs) in the spreadsheet as they are now in Google Sheets or Excel, hidden ones included. Pass a sheet's `id` as `sheetId` to `addReportDatasheets` to add a range of its cells to a report."}},"required":["id","name","type","url","sheets"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/smtp-connections":{"get":{"operationId":"listSmtpConnections","summary":"List SMTP connections","description":"The user's SMTP connections and the ones shared with the organization, without their credentials.\n\nRequires the `smtp:read` scope.","tags":["SMTP connections"],"x-scope":"smtp:read","security":[{"apiKey":[]},{"oauth2":["smtp:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the SMTP connection. Pass it as `smtpServerId` to `updateReportEmailConfig` to send a report's emails through it, or as `id` to `deleteSmtpConnection`."},"from":{"type":"string","description":"The sender address report emails sent through this connection go out from, as `email@domain.com` or `Name <email@domain.com>`."},"type":{"type":"string","enum":["login","oauth2"],"description":"How the connection sends report emails. `login` signs in to an SMTP server with a username and password (see `host`, `port` and `username`). `oauth2` sends through a Google or Microsoft account its owner connected to Rollstack (see `service`), with no password stored, and only while that account stays connected with permission to send email."},"service":{"anyOf":[{"type":"string","enum":["gmail_oauth","gmail","outlook","resend","manual"]},{"type":"null"}],"description":"Which account or server the connection sends through:\n\n- `gmail`: Gmail, from the owner's Google account with the same email as their Rollstack account.\n- `gmail_oauth`: Gmail, from another Google account the owner connected for sending.\n- `outlook`: Outlook, from the owner's Microsoft account.\n- `manual`: an SMTP server set up by hand with `host`, `port`, `username` and a password (`type` `login`).\n- `resend`: Rollstack's own sending service, which report emails use when no connection is chosen. No connection created in the app or the API has it.\n\n`null` when no service is recorded; the app shows such a connection as Manual."},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The address of the SMTP server a `login` connection signs in to, such as `smtp.acme.com`. `null` for an `oauth2` connection, which sends through a Google or Microsoft account rather than an SMTP server."},"port":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The port Rollstack connects to on the SMTP server of a `login` connection. `null` for an `oauth2` connection."},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"For a `login` connection, the username Rollstack signs in to the SMTP server with. For an `oauth2` connection, the email address recorded when it was created; emails go out through the account `service` points to, which for `gmail_oauth` may be another of the owner's connected Google accounts. Never `null` on connections created in the app or the API."},"organizationShared":{"type":"boolean","description":"Whether the connection is shared with the organization. When `true`, every member can choose it as the sender of their reports' emails, which then go out through the owner's account or server login. When `false`, only the owner can choose it. A shared connection can't be deleted until an owner or admin unshares it in the app."},"ownerUserId":{"type":"number","description":"The member who added the connection and owns it, as their `id` in `listMembers`; your own connections carry your `id` from `getMe`. Only the owner can delete the connection, and an `oauth2` connection sends through the owner's account."},"createdAt":{"description":"When the connection was added. `listSmtpConnections` lists the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","from","type","service","host","port","username","organizationShared","ownerUserId","createdAt"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createSmtpConnection","summary":"Create SMTP connection","description":"Adds an SMTP connection after sending a test email through it. Only owners and admins may share it with the organization.\n\nRequires the `smtp:write` scope.","tags":["SMTP connections"],"x-scope":"smtp:write","security":[{"apiKey":[]},{"oauth2":["smtp:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"oauth2","description":"Set to `oauth2` to send report emails through a Google or Microsoft account you connected to Rollstack, chosen with `service`, rather than through an SMTP server. Rollstack stores no password for it, and the connection sends only while that account stays connected with permission to send email."},"service":{"type":"string","enum":["gmail","outlook","gmail_oauth"],"description":"Which of your accounts sends the emails. `gmail` is Gmail, from the Google account with the same email as your Rollstack account. `gmail_oauth` is Gmail, from another Google account you connected for sending. `outlook` is Outlook, from your Microsoft account. The account must already be connected with permission to send email, under Settings > Connected apps > Sending email in the app, or creating the connection fails. Connecting an account there already creates an SMTP connection for it, which `listSmtpConnections` returns."},"username":{"type":"string","description":"The email address of the Google or Microsoft account the connection is for, recorded to tell your connections apart. It doesn't choose the account that sends: emails go out through the account `service` points to, and with `gmail_oauth` and several Google accounts connected for sending, that may not be this one. If you already have a connection with the same `service` and `username`, Rollstack returns it instead of creating another, keeping its `from`; with `organizationSmtpConfig` `true`, it also shares it.","examples":["reports@acme.com"]},"from":{"type":"string","description":"The sender address report emails sent through this connection go out from, as `email@domain.com` or `Name <email@domain.com>`. Rollstack sends a test email from it before saving the connection; if that email fails, the connection isn't created.","examples":["Acme Reports <reports@acme.com>"]},"organizationSmtpConfig":{"description":"Whether to share the connection with your organization, so every member can choose it as the sender of their reports' emails; their emails then go out through your account or server login. Only owners and admins can share a connection: anyone else passing `true` gets a `403`. If omitted or `false`, only you can choose it as a sender.","type":"boolean"}},"required":["type","service","username","from"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"login","description":"Set to `login` to send report emails through an SMTP server that Rollstack signs in to with `username` and `password`, such as your company's mail server or an email provider's SMTP service."},"service":{"type":"string","enum":["manual"],"description":"Always `manual`: the SMTP server is set up by hand with `host`, `port`, `username` and `password`, like the Manual option in the app."},"host":{"type":"string","description":"The address of the SMTP server to send through, as your email provider or IT team gives it.","examples":["smtp.acme.com"]},"port":{"type":"number","enum":[25,465,587,2525],"description":"The port Rollstack connects to on the SMTP server. Rollstack starts TLS as soon as it connects (implicit TLS, usually on port `465`), so the server must accept TLS on that port from the start, not only after STARTTLS."},"username":{"type":"string","description":"The username Rollstack signs in to the SMTP server with, often the mailbox's email address.","examples":["reports@acme.com"]},"password":{"type":"string","writeOnly":true,"description":"The password Rollstack signs in to the SMTP server with. For a Gmail or Outlook mailbox, this is usually an app password. The API never returns it.","examples":["your-smtp-password"]},"from":{"type":"string","description":"The sender address report emails sent through this connection go out from, as `email@domain.com` or `Name <email@domain.com>`. Rollstack sends a test email from it before saving the connection; if that email fails, the connection isn't created.","examples":["Acme Reports <reports@acme.com>"]},"organizationSmtpConfig":{"description":"Whether to share the connection with your organization, so every member can choose it as the sender of their reports' emails; their emails then go out through your account or server login. Only owners and admins can share a connection: anyone else passing `true` gets a `403`. If omitted or `false`, only you can choose it as a sender.","type":"boolean"}},"required":["type","service","host","port","username","password","from"],"additionalProperties":false}]}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the SMTP connection. Pass it as `smtpServerId` to `updateReportEmailConfig` to send a report's emails through it, or as `id` to `deleteSmtpConnection`."},"from":{"type":"string","description":"The sender address report emails sent through this connection go out from, as `email@domain.com` or `Name <email@domain.com>`."},"type":{"type":"string","enum":["login","oauth2"],"description":"How the connection sends report emails. `login` signs in to an SMTP server with a username and password (see `host`, `port` and `username`). `oauth2` sends through a Google or Microsoft account its owner connected to Rollstack (see `service`), with no password stored, and only while that account stays connected with permission to send email."},"service":{"anyOf":[{"type":"string","enum":["gmail_oauth","gmail","outlook","resend","manual"]},{"type":"null"}],"description":"Which account or server the connection sends through:\n\n- `gmail`: Gmail, from the owner's Google account with the same email as their Rollstack account.\n- `gmail_oauth`: Gmail, from another Google account the owner connected for sending.\n- `outlook`: Outlook, from the owner's Microsoft account.\n- `manual`: an SMTP server set up by hand with `host`, `port`, `username` and a password (`type` `login`).\n- `resend`: Rollstack's own sending service, which report emails use when no connection is chosen. No connection created in the app or the API has it.\n\n`null` when no service is recorded; the app shows such a connection as Manual."},"host":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The address of the SMTP server a `login` connection signs in to, such as `smtp.acme.com`. `null` for an `oauth2` connection, which sends through a Google or Microsoft account rather than an SMTP server."},"port":{"anyOf":[{"type":"number"},{"type":"null"}],"description":"The port Rollstack connects to on the SMTP server of a `login` connection. `null` for an `oauth2` connection."},"username":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"For a `login` connection, the username Rollstack signs in to the SMTP server with. For an `oauth2` connection, the email address recorded when it was created; emails go out through the account `service` points to, which for `gmail_oauth` may be another of the owner's connected Google accounts. Never `null` on connections created in the app or the API."},"organizationShared":{"type":"boolean","description":"Whether the connection is shared with the organization. When `true`, every member can choose it as the sender of their reports' emails, which then go out through the owner's account or server login. When `false`, only the owner can choose it. A shared connection can't be deleted until an owner or admin unshares it in the app."},"ownerUserId":{"type":"number","description":"The member who added the connection and owns it, as their `id` in `listMembers`; your own connections carry your `id` from `getMe`. Only the owner can delete the connection, and an `oauth2` connection sends through the owner's account."},"createdAt":{"description":"When the connection was added. `listSmtpConnections` lists the newest first.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","from","type","service","host","port","username","organizationShared","ownerUserId","createdAt"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/smtp-connections\/{id}":{"delete":{"operationId":"deleteSmtpConnection","summary":"Delete SMTP connection","description":"Deletes one of your SMTP connections. One shared with the organization must be unshared in the app first.\n\nRequires the `smtp:write` scope.","tags":["SMTP connections"],"x-scope":"smtp:write","security":[{"apiKey":[]},{"oauth2":["smtp:write"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The SMTP connection to delete, by its `id` from `listSmtpConnections`. It must be one you added: another member's connection returns `404`, even when shared with the organization. Reports set to send through it then send their emails from Rollstack instead.","schema":{"type":"string","description":"The SMTP connection to delete, by its `id` from `listSmtpConnections`. It must be one you added: another member's connection returns `404`, even when shared with the organization. Reports set to send through it then send their emails from Rollstack instead."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/folders":{"get":{"operationId":"listFolders","summary":"List folders","description":"The folders the user can see, each with its parent, null at the top level, and the user's permission on it: null, view, edit or manage. Pass a folder's id as folderId to listReports or createReport, or to getFolder to see who it's shared with.\n\nRequires the `slide_decks:read` scope.","tags":["Folders"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the folder. Pass it as `folderId` to `listReports` to list the reports in it, or to `createReport` or `updateReport` to put a report in it."},"name":{"type":"string","description":"The folder's name, as shown in Rollstack."},"parentFolderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder this one is nested in. `null` for a folder at the top level. The parent is missing from the list when you can see this folder but not its parent."},"permission":{"anyOf":[{"type":"string","enum":["view","edit","manage"]},{"type":"null"}],"description":"What you can do in the folder. `view` lets you open the reports in it, `edit` also lets you change them, and `manage` also lets you share the folder and change who has access to it. It is the highest of what the folder is shared with you directly and what you get from the folders it is nested in, where owning one of those gives `manage`. `null` when you own the folder and get nothing from a parent folder, as with a top-level folder you created: as its owner, you can do everything in it."}},"required":["id","name","parentFolderId","permission"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createFolder","summary":"Create folder","description":"Creates a folder owned by the user: at the top level, which only owners and admins of the organization may, or inside a folder the user owns or has manage on. Then file reports in it with updateReport's folderId, or create them there with createReport. Each call creates another folder, even with the same name.\n\nRequires the `slide_decks:write` scope.","tags":["Folders"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":false,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"type":"string","minLength":1,"description":"The folder's name, as members will see it in Rollstack. Leading and trailing spaces are removed, and it can't be blank.","examples":["Q3 business reviews"]},"parentFolderId":{"description":"The folder to create it in, by its `id` from `listFolders`: one you own or have `manage` on. Omit it or pass `null` to create it at the top level, which only owners and admins of the organization may.","examples":["a3d5e7f9-1b2c-4d6e-8f0a-1b2c3d4e5f6a"],"anyOf":[{"type":"string"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the folder."},"name":{"type":"string","description":"The folder's name, as shown in Rollstack."},"parentFolderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder this one is nested in. `null` for a folder at the top level."},"permission":{"anyOf":[{"type":"string","enum":["view","edit","manage"]},{"type":"null"}],"description":"What you can do in the folder: `view`, `edit` or `manage`, as in `listFolders`. `manage` when you own it. `null` when you see it only because a report in it is shared with you."},"access":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"email":{"type":"string","description":"The member's email address."},"permission":{"type":"string","enum":["view","edit","manage"],"description":"What they can do in the folder. The owner has `manage`."},"source":{"type":"string","enum":["owner","direct","folder"],"description":"`owner` for the member who owns the folder, `direct` when it is shared with them, `folder` when they reach it through a folder it is nested in, which `unshareFolder` on this folder leaves as it is."},"folder":{"description":"With `folder`: the name of the parent folder they reach it through, when you can see that folder.","type":"string"}},"required":["userId","name","email","permission","source"],"additionalProperties":false},"description":"Everyone with access to the folder, the owner first."}},"required":["id","name","parentFolderId","permission","access"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/folders\/{id}":{"get":{"operationId":"getFolder","summary":"Get folder","description":"A folder the user can see, with its parent and everyone who has access to it: its owner, the members it is shared with directly, and those who reach it through the folder it is nested in, each with their permission.\n\nRequires the `slide_decks:read` scope.","tags":["Folders"],"x-scope":"slide_decks:read","security":[{"apiKey":[]},{"oauth2":["slide_decks:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The folder to act on, by its `id` from `listFolders` or `createFolder`.","schema":{"type":"string","description":"The folder to act on, by its `id` from `listFolders` or `createFolder`."}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the folder."},"name":{"type":"string","description":"The folder's name, as shown in Rollstack."},"parentFolderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder this one is nested in. `null` for a folder at the top level."},"permission":{"anyOf":[{"type":"string","enum":["view","edit","manage"]},{"type":"null"}],"description":"What you can do in the folder: `view`, `edit` or `manage`, as in `listFolders`. `manage` when you own it. `null` when you see it only because a report in it is shared with you."},"access":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"number","description":"The member's user id, the same as their `id` in `listMembers`."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"email":{"type":"string","description":"The member's email address."},"permission":{"type":"string","enum":["view","edit","manage"],"description":"What they can do in the folder. The owner has `manage`."},"source":{"type":"string","enum":["owner","direct","folder"],"description":"`owner` for the member who owns the folder, `direct` when it is shared with them, `folder` when they reach it through a folder it is nested in, which `unshareFolder` on this folder leaves as it is."},"folder":{"description":"With `folder`: the name of the parent folder they reach it through, when you can see that folder.","type":"string"}},"required":["userId","name","email","permission","source"],"additionalProperties":false},"description":"Everyone with access to the folder, the owner first."}},"required":["id","name","parentFolderId","permission","access"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"patch":{"operationId":"updateFolder","summary":"Update folder","description":"Renames a folder, or moves it into another folder or to the top level, with everything in it. Members of the folder it moves into get access to its reports. Needs manage on the folder, or owning it, and the same on the one it moves into. Answers the name and parent of the folder: getFolder gives who has access.\n\nRequires the `slide_decks:write` scope.","tags":["Folders"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":false},"parameters":[{"name":"id","in":"path","required":true,"description":"The folder to act on, by its `id` from `listFolders` or `createFolder`.","schema":{"type":"string","description":"The folder to act on, by its `id` from `listFolders` or `createFolder`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"description":"The folder's name, as members will see it in Rollstack. Leading and trailing spaces are removed, and it can't be blank.","examples":["Q3 business reviews"],"type":"string","minLength":1},"parentFolderId":{"description":"The folder to move it into, by its `id` from `listFolders`, one you own or have `manage` on, and not the folder itself or one nested in it. Pass `null` to move it to the top level. Its reports, bursts and subfolders move with it.","examples":["a3d5e7f9-1b2c-4d6e-8f0a-1b2c3d4e5f6a"],"anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the folder."},"name":{"type":"string","description":"The folder's name, as shown in Rollstack."},"parentFolderId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The folder this one is nested in. `null` for a folder at the top level."}},"required":["id","name","parentFolderId"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"deleteFolder","summary":"Delete folder","description":"Deletes a folder with its owner's reports, bursts and subfolders, as Delete in the app does, which moves them to the Trash for 30 days. What others own in it leaves the folder for the top level and stays with them. Only its owner may.\n\nRequires the `slide_decks:write` scope.","tags":["Folders"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"parameters":[{"name":"id","in":"path","required":true,"description":"The folder to act on, by its `id` from `listFolders` or `createFolder`.","schema":{"type":"string","description":"The folder to act on, by its `id` from `listFolders` or `createFolder`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/folders\/{id}\/shares\/{userId}":{"put":{"operationId":"shareFolder","summary":"Share folder","description":"Shares a folder and everything in it with a member of the organization, or changes their permission, as Share in the app does. A member new to the folder gets an email. Needs manage on the folder, or owning it.\n\nRequires the `slide_decks:write` scope.","tags":["Folders"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":false,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The folder to act on, by its `id` from `listFolders` or `createFolder`.","schema":{"type":"string","description":"The folder to act on, by its `id` from `listFolders` or `createFolder`."}},{"name":"userId","in":"path","required":true,"description":"The member to share the folder with, or to unshare it from: their `id` from `listMembers`, which only owners and admins can call, or their `userId` in `access` from `getFolder`. Only active members of the organization. Anyone the folder is shared with can unshare it from themselves.","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member to share the folder with, or to unshare it from: their `id` from `listMembers`, which only owners and admins can call, or their `userId` in `access` from `getFolder`. Only active members of the organization. Anyone the folder is shared with can unshare it from themselves."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"permission":{"type":"string","enum":["view","edit","manage"],"description":"What the member can do with the folder and everything in it. `view` lets them open its reports, `edit` also lets them change them, and `manage` also lets them rename, move and share the folder and add folders to it. If the folder is already shared with the member, this replaces their permission and they aren't notified again. Rollstack also shares the files of its reports that update a Google Drive or OneDrive file with them, as the app does."}},"required":["permission"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"userId":{"type":"number","description":"The member the folder is now shared with: the `userId` from the path."},"permission":{"type":"string","enum":["view","edit","manage"],"description":"What the member can now do with the folder: the `permission` you sent."}},"required":["userId","permission"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"unshareFolder","summary":"Unshare folder","description":"Removes a member's direct share of a folder, and their access to its reports' files in Drive unless they still reach the folder through a parent folder, as the app does. Access through a parent folder stays: unshare that folder instead. Needs manage on the folder, or owning it, except to unshare it from yourself.\n\nRequires the `slide_decks:write` scope.","tags":["Folders"],"x-scope":"slide_decks:write","security":[{"apiKey":[]},{"oauth2":["slide_decks:write"]}],"x-mcp":{"readOnlyHint":false,"destructiveHint":true,"idempotentHint":true,"openWorldHint":true},"parameters":[{"name":"id","in":"path","required":true,"description":"The folder to act on, by its `id` from `listFolders` or `createFolder`.","schema":{"type":"string","description":"The folder to act on, by its `id` from `listFolders` or `createFolder`."}},{"name":"userId","in":"path","required":true,"description":"The member to share the folder with, or to unshare it from: their `id` from `listMembers`, which only owners and admins can call, or their `userId` in `access` from `getFolder`. Only active members of the organization. Anyone the folder is shared with can unshare it from themselves.","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member to share the folder with, or to unshare it from: their `id` from `listMembers`, which only owners and admins can call, or their `userId` in `access` from `getFolder`. Only active members of the organization. Anyone the folder is shared with can unshare it from themselves."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/organization":{"get":{"operationId":"getOrganization","summary":"Get organization","description":"The API key's organization and its settings: its name and default timezone, the email domains members may be invited from, how reports update and link to their sources, and which features are on.\n\nRequires the `organization:read` scope.","tags":["Organization"],"x-scope":"organization:read","security":[{"apiKey":[]},{"oauth2":["organization:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the organization: the same `id` that `getMe` returns in `organization`."},"name":{"type":"string","description":"The organization's name, as shown in Rollstack."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The organization's default timezone for reports. Reports created while it is set, including with `createReport`, start with it as their `timezone`; changing it doesn't change the `timezone` of existing reports. For reports that update a file in your drive, such as Google Slides presentations, it also replaces each report's own timezone for its date variables. `null` means no default. An IANA timezone name, such as `America\/New_York`."},"allowedDomains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The organization's domain allowlist, such as `acme.com`: the email domains people can be invited to the organization from. While it is empty or `null`, invites from the app aren't limited by domain, but `createInvites` fails with `invites-require-allowed-domains`. Owners and admins edit it in the organization settings in Rollstack; the API can't change it. A domain matches exactly, ignoring case, so `acme.com` doesn't cover `eu.acme.com`."},"updateMethod":{"anyOf":[{"type":"string","enum":["update","archive","updateVisualizations"]},{"type":"null"}],"description":"How reports that update a file in your drive, such as Google Slides or PowerPoint presentations, change that file when they run. The reports this API manages don't use it. `update` updates the same file with the latest data. `archive` first saves a copy of the file, named with the date of its previous run, then updates the original; runs that update only some of the report's visualizations skip the copy. `updateVisualizations` is the method email reports are created with; the app doesn't offer it as an organization setting. While set, every such report uses it instead of its own update method; `null` lets each report use its own."},"linkOption":{"anyOf":[{"type":"string","enum":["nolink","rollstack","external"]},{"type":"null"}],"description":"Where a click on a visualization's image leads, in reports that update a file in your drive, such as Google Slides presentations. The reports this API manages don't use it. `rollstack` opens the visualization's page in Rollstack, `external` opens the dashboard or spreadsheet it comes from, and `nolink` leaves images without a link. While set, every such report uses it instead of its own link option; `null` lets each report use its own."},"llmProvider":{"type":"string","enum":["openai","azure_openai","google_gemini","amazon_bedrock","google_ai_studio","google_vertex_ai","anthropic","custom_provider"],"description":"The AI provider Rollstack tries first when it writes the organization's Insights, such as `openai`, `azure_openai` or `amazon_bedrock`; another provider may write them as a fallback. It isn't the custom LLM provider the slides agent runs on, which `getLLMProvider` returns. The API can't change it. `custom_provider` is a legacy value."},"insightsEnabled":{"type":"boolean","description":"Whether the organization's reports can have Insights: AI-written commentary on the data in a report's visualizations. While off, no one can add or edit Insights, and runs leave existing ones unchanged."},"memoriesEnabled":{"type":"boolean","description":"Whether members can use AI Memories: personal notes the AI draws on when it writes their Insights, such as to write large numbers with K, M or B. Each member keeps theirs, grouped in profiles, on the Insight Memories settings page, which is hidden while AI Memories are off."},"spreadsheetsEnabled":{"type":"boolean","description":"Whether Rollstack offers Google Sheets and Microsoft Excel spreadsheets as data sources. While off, the app no longer offers them when someone adds a data source. Only the app checks this setting."},"emailAnalyticsEnabled":{"type":"boolean","description":"Whether Rollstack can track when report emails are opened. While on, a report's emails are tracked once its email settings turn email analytics on (`emailAnalyticsEnabled`). While off, no report email is tracked, whatever its settings say."}},"required":["id","name","timezone","allowedDomains","updateMethod","linkOption","llmProvider","insightsEnabled","memoriesEnabled","spreadsheetsEnabled","emailAnalyticsEnabled"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"patch":{"operationId":"updateOrganization","summary":"Update organization","description":"Changes the API key's organization settings. Send only the fields to change, at least one; null clears the timezone, update method or link option.\n\nRequires the `organization:write` scope. Only owners and admins of the organization may call it.","tags":["Organization"],"x-scope":"organization:write","security":[{"apiKey":[]},{"oauth2":["organization:write"]}],"x-admin-only":true,"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"name":{"description":"The organization's new name, as shown to its members in Rollstack.","examples":["Acme"],"type":"string"},"timezone":{"description":"The organization's default timezone for reports. Reports created while it is set, including with `createReport`, start with it as their `timezone`; changing it doesn't change the `timezone` of existing reports. For reports that update a file in your drive, such as Google Slides presentations, it also replaces each report's own timezone for its date variables. `null` means no default. An IANA timezone name, such as `America\/New_York`.","examples":["America\/New_York"],"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"updateMethod":{"description":"How reports that update a file in your drive, such as Google Slides or PowerPoint presentations, change that file when they run. The reports this API manages don't use it. `update` updates the same file with the latest data. `archive` first saves a copy of the file, named with the date of its previous run, then updates the original; runs that update only some of the report's visualizations skip the copy. `updateVisualizations` is the method email reports are created with; the app doesn't offer it as an organization setting. While set, every such report uses it instead of its own update method; `null` lets each report use its own.","anyOf":[{"type":"string","enum":["update","archive","updateVisualizations"]},{"type":"null"}]},"linkOption":{"description":"Where a click on a visualization's image leads, in reports that update a file in your drive, such as Google Slides presentations. The reports this API manages don't use it. `rollstack` opens the visualization's page in Rollstack, `external` opens the dashboard or spreadsheet it comes from, and `nolink` leaves images without a link. While set, every such report uses it instead of its own link option; `null` lets each report use its own.","anyOf":[{"type":"string","enum":["nolink","rollstack","external"]},{"type":"null"}]},"insightsEnabled":{"description":"Whether the organization's reports can have Insights: AI-written commentary on the data in a report's visualizations. While off, no one can add or edit Insights, and runs leave existing ones unchanged. Only owners can change it, not admins.","type":"boolean"},"restrictInsightUsers":{"description":"Whether only the members you pick can use Insights, rather than everyone in the organization. Pick them with each member's `insightsEnabled` in `updateMember`. `getOrganization` doesn't return this setting. Only owners can change it, not admins.","type":"boolean"},"memoriesEnabled":{"description":"Whether members can use AI Memories: personal notes the AI draws on when it writes their Insights, such as to write large numbers with K, M or B. Each member keeps theirs, grouped in profiles, on the Insight Memories settings page, which is hidden while AI Memories are off. Only owners can change it, not admins.","type":"boolean"},"spreadsheetsEnabled":{"description":"Whether Rollstack offers Google Sheets and Microsoft Excel spreadsheets as data sources. While off, the app no longer offers them when someone adds a data source. Only the app checks this setting. Only owners can change it, not admins.","type":"boolean"},"emailAnalyticsEnabled":{"description":"Whether Rollstack can track when report emails are opened. While on, a report's emails are tracked once its email settings turn email analytics on (`emailAnalyticsEnabled`). While off, no report email is tracked, whatever its settings say. Only owners can change it, not admins.","type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the organization: the same `id` that `getMe` returns in `organization`."},"name":{"type":"string","description":"The organization's name, as shown in Rollstack."},"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The organization's default timezone for reports. Reports created while it is set, including with `createReport`, start with it as their `timezone`; changing it doesn't change the `timezone` of existing reports. For reports that update a file in your drive, such as Google Slides presentations, it also replaces each report's own timezone for its date variables. `null` means no default. An IANA timezone name, such as `America\/New_York`."},"allowedDomains":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}],"description":"The organization's domain allowlist, such as `acme.com`: the email domains people can be invited to the organization from. While it is empty or `null`, invites from the app aren't limited by domain, but `createInvites` fails with `invites-require-allowed-domains`. Owners and admins edit it in the organization settings in Rollstack; the API can't change it. A domain matches exactly, ignoring case, so `acme.com` doesn't cover `eu.acme.com`."},"updateMethod":{"anyOf":[{"type":"string","enum":["update","archive","updateVisualizations"]},{"type":"null"}],"description":"How reports that update a file in your drive, such as Google Slides or PowerPoint presentations, change that file when they run. The reports this API manages don't use it. `update` updates the same file with the latest data. `archive` first saves a copy of the file, named with the date of its previous run, then updates the original; runs that update only some of the report's visualizations skip the copy. `updateVisualizations` is the method email reports are created with; the app doesn't offer it as an organization setting. While set, every such report uses it instead of its own update method; `null` lets each report use its own."},"linkOption":{"anyOf":[{"type":"string","enum":["nolink","rollstack","external"]},{"type":"null"}],"description":"Where a click on a visualization's image leads, in reports that update a file in your drive, such as Google Slides presentations. The reports this API manages don't use it. `rollstack` opens the visualization's page in Rollstack, `external` opens the dashboard or spreadsheet it comes from, and `nolink` leaves images without a link. While set, every such report uses it instead of its own link option; `null` lets each report use its own."},"llmProvider":{"type":"string","enum":["openai","azure_openai","google_gemini","amazon_bedrock","google_ai_studio","google_vertex_ai","anthropic","custom_provider"],"description":"The AI provider Rollstack tries first when it writes the organization's Insights, such as `openai`, `azure_openai` or `amazon_bedrock`; another provider may write them as a fallback. It isn't the custom LLM provider the slides agent runs on, which `getLLMProvider` returns. The API can't change it. `custom_provider` is a legacy value."},"insightsEnabled":{"type":"boolean","description":"Whether the organization's reports can have Insights: AI-written commentary on the data in a report's visualizations. While off, no one can add or edit Insights, and runs leave existing ones unchanged."},"memoriesEnabled":{"type":"boolean","description":"Whether members can use AI Memories: personal notes the AI draws on when it writes their Insights, such as to write large numbers with K, M or B. Each member keeps theirs, grouped in profiles, on the Insight Memories settings page, which is hidden while AI Memories are off."},"spreadsheetsEnabled":{"type":"boolean","description":"Whether Rollstack offers Google Sheets and Microsoft Excel spreadsheets as data sources. While off, the app no longer offers them when someone adds a data source. Only the app checks this setting."},"emailAnalyticsEnabled":{"type":"boolean","description":"Whether Rollstack can track when report emails are opened. While on, a report's emails are tracked once its email settings turn email analytics on (`emailAnalyticsEnabled`). While off, no report email is tracked, whatever its settings say."}},"required":["id","name","timezone","allowedDomains","updateMethod","linkOption","llmProvider","insightsEnabled","memoriesEnabled","spreadsheetsEnabled","emailAnalyticsEnabled"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/me":{"get":{"operationId":"getMe","summary":"Get current user","description":"The user and API key making the request: the user's id, name and email, the organization the key belongs to with the role the key acts with, and the key's id and scopes. Call it to check that a key works.\n\nWorks with any valid API key.","tags":["Members"],"x-scope":null,"security":[{"apiKey":[]},{"oauth2":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"number","description":"Unique identifier for the user the API key belongs to: the same `id` that `listMembers` returns for them."},"email":{"type":"string","description":"The email address of the user the API key belongs to."},"name":{"type":"string","description":"The name of the user the API key belongs to, as shown in Rollstack."},"organization":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the organization: the same `id` that `getOrganization` returns."},"name":{"type":"string","description":"The organization's name, as shown in Rollstack."},"role":{"type":"string","enum":["owner","admin","member","viewer"],"description":"The role the API key acts with in the organization, which limits what it can do on top of its scopes. As an `owner` or `admin`, the key can call the endpoints limited to owners and admins, but only as an `owner` can it turn the organization's features on or off or change who can access its Authentication settings. As a `member`, it can do neither. It is the user's current role, but never higher than the one they had when the key was created or its scopes were last edited, so promoting the user doesn't raise it."}},"required":["id","name","role"],"additionalProperties":false,"description":"The organization the API key belongs to. A key works only in the organization it was created in."},"apiKey":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the API key that made the request. It identifies the key without revealing its secret."},"scopes":{"type":"array","items":{"type":"string","enum":["organization:read","organization:write","users:read","users:write","connections:read","connections:write","credentials:write","smtp:read","smtp:write","slide_decks:read","slide_decks:write","slide_decks:run","slide_decks:email"]},"description":"The scopes the API key carries, which decide the endpoints it can call: each endpoint states the scope it needs, and the Scopes section of the introduction lists what each one allows. While the key acts as a `member`, it loses `users:read`, `users:write` and `organization:write`, the scopes only owners and admins may grant, even if it was created with them."}},"required":["id","scopes"],"additionalProperties":false,"description":"The API key that made the request."}},"required":["id","email","name","organization","apiKey"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/members":{"get":{"operationId":"listMembers","summary":"List members","description":"The members of the organization, with their role, authentication role, insights access and whether they are active. Optionally only those with a status, active or deactivated, or with an email.\n\nRequires the `users:read` scope. Only owners and admins of the organization may call it.","tags":["Members"],"x-scope":"users:read","security":[{"apiKey":[]},{"oauth2":["users:read"]}],"x-mcp":{"readOnlyHint":true,"destructiveHint":false,"idempotentHint":true,"openWorldHint":false},"x-admin-only":true,"parameters":[{"name":"status","in":"query","required":false,"description":"Only return `active` members, or only `deactivated` ones. If omitted, returns both.","schema":{"description":"Only return `active` members, or only `deactivated` ones. If omitted, returns both.","type":"string","enum":["active","deactivated"]}},{"name":"email","in":"query","required":false,"description":"Only return the member with exactly this email address, ignoring case. Returns an empty list if no member has it, or if they don't match `status`.","schema":{"description":"Only return the member with exactly this email address, ignoring case. Returns an empty list if no member has it, or if they don't match `status`.","examples":["jane@acme.com"],"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"number","description":"Unique identifier for the member. Pass it as `userId` to `updateMember`, `deactivateMember` or `reactivateMember`."},"email":{"type":"string","description":"The email address of the member's Rollstack account."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"role":{"type":"string","enum":["owner","admin","member","viewer"],"description":"The member's role in the organization. `owner` can do everything, including turning the organization's features on or off, choosing who can access its Authentication settings and, in the app, making other members owners. `admin` manages the organization's settings, members and invites, but can't turn features such as Insights or email analytics on or off, or change, deactivate or reactivate owners. `member` uses Rollstack without managing the organization. `viewer` opens the reports shared with them, without their comments."},"authenticationRole":{"anyOf":[{"type":"string","enum":["viewer","editor"]},{"type":"null"}],"description":"The member's access to the organization's Authentication settings, where Single Sign-On (SSO) and SCIM provisioning are set up: `viewer` can see them, `editor` can also change them, and `null` gives no access. Owners always have full access, whatever this value."},"insightsEnabled":{"type":"boolean","description":"Whether the member can use Insights while the organization restricts them to the members it picks (`restrictInsightUsers` in `updateOrganization`). It has no effect while Insights are open to every member or turned off."},"status":{"type":"string","enum":["active","deactivated"],"description":"Whether the member has access to the organization. `active` members do. `deactivated` members were removed from it, which revoked their API keys; `reactivateMember` restores their access, but not their keys."},"deactivatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the member was deactivated. `null` while they're active."},"deactivationReason":{"anyOf":[{"type":"string","enum":["left_company","no_longer_needs_access","not_using_enough","too_expensive","switching_tool","duplicate_account","sso_deprovisioned","other"]},{"type":"null"}],"description":"Why the member was deactivated: the reason an admin gave, or `sso_deprovisioned` when SSO removed them. `null` while they're active, or when no reason was given."},"deactivationReasonDetails":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the admin wrote when `deactivationReason` is `other`. `null` otherwise."}},"required":["id","email","name","role","authenticationRole","insightsEnabled","status","deactivatedAt","deactivationReason","deactivationReasonDetails"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/members\/{userId}":{"patch":{"operationId":"updateMember","summary":"Update member","description":"Changes a member's role, authentication role or insights access. Send only the fields to change, at least one. The role can be admin or member: a key never makes anyone an owner.\n\nRequires the `users:write` scope. Only owners and admins of the organization may call it.","tags":["Members"],"x-scope":"users:write","security":[{"apiKey":[]},{"oauth2":["users:write"]}],"x-admin-only":true,"parameters":[{"name":"userId","in":"path","required":true,"description":"The member to act on, by the `id` from `listMembers`. An id that is not a member of the organization returns `user-not-in-organization`.","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member to act on, by the `id` from `listMembers`. An id that is not a member of the organization returns `user-not-in-organization`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"role":{"description":"The member's new role: `admin` to let them manage the organization's settings, members and invites, or `member` to take that away. A key can't make anyone an owner, admins can't change an owner's role, and you can't change your own.","type":"string","enum":["admin","member"]},"authenticationRole":{"description":"The member's access to the organization's Authentication settings, where Single Sign-On (SSO) and SCIM provisioning are set up: `viewer` can see them, `editor` can also change them, and `null` gives no access. Owners always have full access, whatever this value. Only owners can change it, not admins.","anyOf":[{"type":"string","enum":["viewer","editor"]},{"type":"null"}]},"insightsEnabled":{"description":"Whether the member can use Insights while the organization restricts them to the members it picks (`restrictInsightUsers` in `updateOrganization`). It has no effect while Insights are open to every member or turned off.","type":"boolean"}},"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"number","description":"Unique identifier for the member. Pass it as `userId` to `updateMember`, `deactivateMember` or `reactivateMember`."},"email":{"type":"string","description":"The email address of the member's Rollstack account."},"name":{"type":"string","description":"The member's name, as shown in Rollstack."},"role":{"type":"string","enum":["owner","admin","member","viewer"],"description":"The member's role in the organization. `owner` can do everything, including turning the organization's features on or off, choosing who can access its Authentication settings and, in the app, making other members owners. `admin` manages the organization's settings, members and invites, but can't turn features such as Insights or email analytics on or off, or change, deactivate or reactivate owners. `member` uses Rollstack without managing the organization. `viewer` opens the reports shared with them, without their comments."},"authenticationRole":{"anyOf":[{"type":"string","enum":["viewer","editor"]},{"type":"null"}],"description":"The member's access to the organization's Authentication settings, where Single Sign-On (SSO) and SCIM provisioning are set up: `viewer` can see them, `editor` can also change them, and `null` gives no access. Owners always have full access, whatever this value."},"insightsEnabled":{"type":"boolean","description":"Whether the member can use Insights while the organization restricts them to the members it picks (`restrictInsightUsers` in `updateOrganization`). It has no effect while Insights are open to every member or turned off."},"status":{"type":"string","enum":["active","deactivated"],"description":"Whether the member has access to the organization. `active` members do. `deactivated` members were removed from it, which revoked their API keys; `reactivateMember` restores their access, but not their keys."},"deactivatedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When the member was deactivated. `null` while they're active."},"deactivationReason":{"anyOf":[{"type":"string","enum":["left_company","no_longer_needs_access","not_using_enough","too_expensive","switching_tool","duplicate_account","sso_deprovisioned","other"]},{"type":"null"}],"description":"Why the member was deactivated: the reason an admin gave, or `sso_deprovisioned` when SSO removed them. `null` while they're active, or when no reason was given."},"deactivationReasonDetails":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"What the admin wrote when `deactivationReason` is `other`. `null` otherwise."}},"required":["id","email","name","role","authenticationRole","insightsEnabled","status","deactivatedAt","deactivationReason","deactivationReasonDetails"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/members\/{userId}\/deactivate":{"post":{"operationId":"deactivateMember","summary":"Deactivate member","description":"Deactivates a member, revokes their API keys and deletes their invites. Send the reason when you know it, so admins see why in the members list.\n\nRequires the `users:write` scope. Only owners and admins of the organization may call it.","tags":["Members"],"x-scope":"users:write","security":[{"apiKey":[]},{"oauth2":["users:write"]}],"x-admin-only":true,"parameters":[{"name":"userId","in":"path","required":true,"description":"The member to act on, by the `id` from `listMembers`. An id that is not a member of the organization returns `user-not-in-organization`.","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member to act on, by the `id` from `listMembers`. An id that is not a member of the organization returns `user-not-in-organization`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":false,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"reason":{"type":"string","enum":["left_company","no_longer_needs_access","not_using_enough","too_expensive","switching_tool","duplicate_account","other"],"description":"Why the member is deactivated. `other` needs `reasonDetails`."},"reasonDetails":{"description":"Why the member is deactivated, in your words. Required and kept only when `reason` is `other`.","type":"string","maxLength":500}},"required":["reason"]}}}},"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/members\/{userId}\/reactivate":{"post":{"operationId":"reactivateMember","summary":"Reactivate member","description":"Reactivates a deactivated member. Their revoked API keys stay revoked.\n\nRequires the `users:write` scope. Only owners and admins of the organization may call it.","tags":["Members"],"x-scope":"users:write","security":[{"apiKey":[]},{"oauth2":["users:write"]}],"x-admin-only":true,"parameters":[{"name":"userId","in":"path","required":true,"description":"The member to act on, by the `id` from `listMembers`. An id that is not a member of the organization returns `user-not-in-organization`.","schema":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991,"description":"The member to act on, by the `id` from `listMembers`. An id that is not a member of the organization returns `user-not-in-organization`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/invites":{"get":{"operationId":"listInvites","summary":"List invites","description":"The pending invites of the organization, with the role and authentication role each user joins with, and when they were invited.\n\nRequires the `users:read` scope. Only owners and admins of the organization may call it.","tags":["Invites"],"x-scope":"users:read","security":[{"apiKey":[]},{"oauth2":["users:read"]}],"x-admin-only":true,"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the invite. Pass it as `inviteId` to `deleteInvite` to cancel the invite."},"email":{"type":"string","description":"The email address invited to join the organization."},"role":{"type":"string","enum":["owner","admin","member","viewer"],"description":"The role the person gets when they accept the invite. `owner` can do everything in the organization, `admin` manages its settings, members and invites, `member` uses Rollstack without managing the organization, and `viewer` opens the reports shared with them, without their comments."},"authenticationRole":{"anyOf":[{"type":"string","enum":["viewer","editor"]},{"type":"null"}],"description":"The access to the organization's Authentication settings (Single Sign-On and SCIM provisioning) the person gets when they accept the invite: `viewer` can see them, `editor` can also change them, and `null` gives none."},"createdAt":{"description":"When the person was invited.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","email","role","authenticationRole","createdAt"],"additionalProperties":false}}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"post":{"operationId":"createInvites","summary":"Create invites","description":"Invites up to 50 users as admins or members. Only emails in the organization's allowed domains are invited, and it fails with a 400 while the organization has none. Returns the invites it created and the emails it rejected, with the reason: outside the allowed domains, already a member or already invited.\n\nRequires the `users:write` scope. Only owners and admins of the organization may call it.","tags":["Invites"],"x-scope":"users:write","security":[{"apiKey":[]},{"oauth2":["users:write"]}],"x-admin-only":true,"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"emails":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","examples":["jane@acme.com"]},"description":"The email addresses to invite. Each one on the organization's domain allowlist (`allowedDomains`) that doesn't belong to a member and isn't already invited gets an invite and an invitation email; the others come back in `rejected`. From 1 to 50 addresses, each listed once, ignoring case."},"role":{"type":"string","enum":["admin","member"],"description":"The role the invited people get when they join: `admin` lets them manage the organization's settings, members and invites, and `member` lets them use Rollstack without managing the organization. A key can't invite owners."},"authenticationRole":{"description":"Gives the invited people access to the organization's Authentication settings (Single Sign-On and SCIM provisioning) once they join: `viewer` can see them, `editor` can also change them. If omitted, they join without access. Only owners can set it, not admins.","type":"string","enum":["viewer","editor"]}},"required":["emails","role"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"invited":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the invite. Pass it as `inviteId` to `deleteInvite` to cancel the invite."},"email":{"type":"string","description":"The email address invited to join the organization."},"role":{"type":"string","enum":["owner","admin","member","viewer"],"description":"The role the person gets when they accept the invite. `owner` can do everything in the organization, `admin` manages its settings, members and invites, `member` uses Rollstack without managing the organization, and `viewer` opens the reports shared with them, without their comments."},"authenticationRole":{"anyOf":[{"type":"string","enum":["viewer","editor"]},{"type":"null"}],"description":"The access to the organization's Authentication settings (Single Sign-On and SCIM provisioning) the person gets when they accept the invite: `viewer` can see them, `editor` can also change them, and `null` gives none."},"createdAt":{"description":"When the person was invited.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"}},"required":["id","email","role","authenticationRole","createdAt"],"additionalProperties":false},"description":"The invites created, one for each email that passed the checks. Rollstack emails each person an invitation to join."},"rejected":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string","description":"An email from your request that was not invited, in lowercase."},"reason":{"type":"string","enum":["domain_not_allowed","already_member","already_invited"],"description":"Why the email was not invited. `domain_not_allowed`: its domain isn't on the organization's `allowedDomains`. `already_member`: it belongs to a member of the organization, active or deactivated; reactivate a deactivated one with `reactivateMember`. `already_invited`: it already has a pending invite, listed by `listInvites`."}},"required":["email","reason"],"additionalProperties":false},"description":"The emails that were not invited, each with the reason. The other emails in the request were still invited."}},"required":["invited","rejected"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/invites\/{inviteId}":{"delete":{"operationId":"deleteInvite","summary":"Delete invite","description":"Deletes a pending invite.\n\nRequires the `users:write` scope. Only owners and admins of the organization may call it.","tags":["Invites"],"x-scope":"users:write","security":[{"apiKey":[]},{"oauth2":["users:write"]}],"x-admin-only":true,"parameters":[{"name":"inviteId","in":"path","required":true,"description":"The invite to delete, by the `id` from `listInvites` or `createInvites`. An unknown invite, or one from another organization, returns `invite-not-found`.","schema":{"type":"string","description":"The invite to delete, by the `id` from `listInvites` or `createInvites`. An unknown invite, or one from another organization, returns `invite-not-found`."}},{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}},"\/organization\/llm-provider":{"get":{"operationId":"getLLMProvider","summary":"Get LLM provider","description":"The organization's custom LLM provider, without its credentials. Only owners, and members an owner allowed to manage the AI provider, may call it.\n\nRequires the `organization:read` scope.","tags":["LLM provider"],"x-scope":"organization:read","security":[{"apiKey":[]},{"oauth2":["organization:read"]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the organization's LLM provider. It stays the same when you replace the provider with `setLLMProvider`; setting one up again after `deleteLLMProvider` gives a new one."},"type":{"type":"string","enum":["anthropic","openai","azure_foundry","amazon_bedrock","google_vertex_ai"],"description":"The provider the organization's slides agent runs on, instead of Rollstack's own AI providers: `anthropic` (the Anthropic API), `openai` (the OpenAI API), `azure_foundry` (an Azure AI Foundry resource), `amazon_bedrock` (Amazon Bedrock in an AWS account) or `google_vertex_ai` (Vertex AI in a Google Cloud project). Insights don't use it: they run on the organization's `llmProvider`, from `getOrganization`."},"auth":{"type":"string","enum":["apiKey","oidc"],"description":"How Rollstack signs in to the provider. With `apiKey`, it uses a secret saved with the provider: an API key or, on Google Vertex AI, a service account key. With `oidc`, the setup is keyless: your provider trusts short-lived tokens from Rollstack's OpenID Connect issuer for your organization, so no secret is saved."},"hasCredentials":{"type":"boolean","const":true,"description":"Whether the provider has saved credentials: always `true`. Its secrets, `apiKey` or `privateKey`, are never returned, not even in `settings`: to change them, send the whole setup again with `setLLMProvider`."},"settings":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"The provider's saved setup without its secrets: the `credentials` it was last saved with, as in the `setLLMProvider` body, minus `apiKey` and `privateKey`. It contains `auth` and, depending on `type`: `dataResidency` (OpenAI); `resourceName` and `models` (Azure AI Foundry); `region`, `dataLocation` and `models` (Amazon Bedrock); or `projectId`, `region` and `models`, plus `clientEmail` with a service account key (Google Vertex AI). A keyless setup also contains its ids, such as `tenantId` and `clientId`, or `roleArn`."},"updatedAt":{"description":"When the provider was last saved, with `setLLMProvider` or in the app. Recording or clearing a `failure` doesn't change it.","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"updatedBy":{"anyOf":[{"type":"object","properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The name of the member who last saved the provider, as shown in Rollstack."},"email":{"type":"string","description":"The email address of the member who last saved the provider."}},"required":["name","email"],"additionalProperties":false},{"type":"null"}],"description":"The member who last saved the provider, with `setLLMProvider` or in the app. When `failure` is set, Rollstack notifies them, or the organization's owners if they're no longer an active member. `null` if that user's account no longer exists."},"failure":{"anyOf":[{"type":"string","enum":["key_invalid","forbidden","model_not_found","out_of_credit"]},{"type":"null"}],"description":"Why the slides agent's calls to the provider are failing, when only a change on your provider's side can fix it. `null` while calls work. `key_invalid`: the provider doesn't accept the API key or the keyless sign-in. `forbidden`: the key or sign-in isn't allowed to use `failedModel`. `model_not_found`: `failedModel` isn't available to the account; on Azure AI Foundry, it isn't deployed under its own name, and on Amazon Bedrock or Google Vertex AI, it isn't enabled. `out_of_credit`: the provider account is out of credit. When it's set, Rollstack notifies the member in `updatedBy`, or the owners if they're no longer an active member. It's cleared once a call to `failedModel` works again or the provider is saved again."},"failedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"When a slides agent call to the provider first failed with the current `failure`. `null` while calls work."},"failedModel":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The model whose call failed, such as `claude-haiku-5-5`. Until the provider is saved again, only a working call to this model clears `failure`, so a failing `fast` model stays flagged even while the `smart` one works. `null` while calls work."}},"required":["id","type","auth","hasCredentials","settings","updatedAt","updatedBy","failure","failedAt","failedModel"],"additionalProperties":false}}}},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"put":{"operationId":"setLLMProvider","summary":"Replace LLM provider","description":"Creates or replaces the organization's custom LLM provider, on the Enterprise plan only. Only owners, and admins an owner allowed to manage the AI provider, may call it: members' keys can't carry organization:write. The keys are saved only once one short call on each of their models works: otherwise nothing is saved and the call fails with a 400 (code ai-provider-test-failed); the AI provider setting in the app says which model failed and why. Calls are limited to 10 a minute for each organization. Every owner gets an email when the provider is set up, replaced or deleted. Web search uses OpenAI, so saving a provider that moves it to Rollstack's OpenAI account (any provider but OpenAI on its global host) turns web search off, unless the organization already had that kind of provider; an owner can turn it back on.\n\nRequires the `organization:write` scope.","tags":["LLM provider"],"x-scope":"organization:write","security":[{"apiKey":[]},{"oauth2":["organization:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"requestBody":{"required":true,"content":{"application\/json":{"schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"anthropic","description":"Runs the slides agent on your own Anthropic organization, through the Anthropic API, on the Claude models you pick in `credentials.models`. There is nothing to deploy."},"credentials":{"oneOf":[{"type":"object","properties":{"models":{"type":"object","properties":{"smart":{"type":"string","enum":["claude-opus-5-5"],"description":"The model that runs the slides agent and does its main work, such as editing slides and writing queries."},"fast":{"description":"The model for the slides agent's quick steps around its main work, such as naming the chat and inspecting slides, to save cost. If omitted, the `smart` model runs these steps too.","type":"string","enum":["claude-haiku-5-5"]}},"required":["smart"],"description":"The Claude models the slides agent runs on: `smart` for its main work, `fast` for its quick steps."},"auth":{"type":"string","const":"apiKey","description":"Rollstack signs in to the provider with a secret you send in this request: an API key or, on Google Vertex AI, a service account key (`clientEmail` and `privateKey`). Rollstack saves the secret and never returns it, so to change it, send the whole setup again."},"apiKey":{"type":"string","minLength":1,"writeOnly":true,"description":"An Anthropic API key, created in the Claude Console under API keys, in a workspace for Rollstack where you can also set a spend limit. Rollstack never returns it.","examples":["your-anthropic-api-key"]}},"required":["models","auth","apiKey"]},{"type":"object","properties":{"models":{"type":"object","properties":{"smart":{"type":"string","enum":["claude-opus-5-5"],"description":"The model that runs the slides agent and does its main work, such as editing slides and writing queries."},"fast":{"description":"The model for the slides agent's quick steps around its main work, such as naming the chat and inspecting slides, to save cost. If omitted, the `smart` model runs these steps too.","type":"string","enum":["claude-haiku-5-5"]}},"required":["smart"],"description":"The Claude models the slides agent runs on: `smart` for its main work, `fast` for its quick steps."},"auth":{"type":"string","const":"oidc","description":"Rollstack signs in without a saved secret: its OpenID Connect issuer signs a short-lived token for the subject `rollstack:org:<id>`, where `<id>` is your organization's `id` from `getOrganization`, and your provider exchanges the token for temporary credentials. Set up your provider to trust that issuer and to check that subject, so it accepts only your organization: `setLLMProvider` fails if the setup also accepts another organization's token. The AI provider setting in the app, under Settings \u203a Features, shows the issuer, subject and audience to trust."},"anthropicOrganizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"The ID of your Anthropic organization, the one where you added Rollstack's issuer in the Claude Console under Settings \u203a Workload identity federation.","examples":["7c9e1f3a-5b7d-4e9f-8a1c-3e5a7c9e1f3a"]},"federationRuleId":{"type":"string","pattern":"^fdrl_.*","description":"The ID of the federation rule that lets Rollstack act as `serviceAccountId`. Create it in the Claude Console under Settings \u203a Workload identity federation, once Rollstack's issuer is added there: set its subject to your organization's (see `auth`), add a claim condition that the audience (`aud`) is `https:\/\/api.anthropic.com`, and enable it only in `workspaceId`. Starts with `fdrl_`.","examples":["fdrl_01example"]},"serviceAccountId":{"type":"string","pattern":"^svac_.*","description":"The ID of the service account Rollstack acts as in your Anthropic organization, created in the Claude Console in the workspace the slides agent should use (`workspaceId`). Starts with `svac_`.","examples":["svac_01example"]},"workspaceId":{"type":"string","pattern":"^wrkspc_.*","description":"The ID of the Claude Console workspace the slides agent's calls run in: the workspace of `serviceAccountId`, where the federation rule is enabled. Starts with `wrkspc_`.","examples":["wrkspc_01example"]}},"required":["models","auth","anthropicOrganizationId","federationRuleId","serviceAccountId","workspaceId"]}],"description":"The Claude models the slides agent runs on, and how Rollstack signs in to your Anthropic organization: with an API key (`apiKey`), or without a key, through Anthropic's workload identity federation (`oidc`)."}},"required":["type","credentials"]},{"type":"object","properties":{"type":{"type":"string","const":"openai","description":"Runs the slides agent on your own OpenAI project, through the OpenAI API, on the GPT models you pick in `credentials.models`."},"credentials":{"oneOf":[{"type":"object","properties":{"dataResidency":{"type":"string","enum":["global","us","eu"],"description":"The data residency of the OpenAI project Rollstack uses, which decides the OpenAI host Rollstack calls: `global` for OpenAI's global host, `us` or `eu` for its US or EU host. With `global`, the slides agent's web search also uses your OpenAI project. With `us` or `eu`, it uses Rollstack's OpenAI account instead, so saving turns web search off, unless the organization's provider was already OpenAI with `us` or `eu`; an owner can turn it back on in the app."},"models":{"type":"object","properties":{"smart":{"type":"string","enum":["gpt-6.1-sol"],"description":"The model that runs the slides agent and does its main work, such as editing slides and writing queries."},"fast":{"description":"The model for the slides agent's quick steps around its main work, such as naming the chat and inspecting slides, to save cost. If omitted, the `smart` model runs these steps too.","type":"string","enum":["gpt-6-luna"]}},"required":["smart"],"description":"The GPT models the slides agent runs on: `smart` for its main work, `fast` for its quick steps. With `dataResidency` `global`, its web search runs on them too. The project must allow them in Project settings \u203a Limits \u203a Model usage."},"auth":{"type":"string","const":"apiKey","description":"Rollstack signs in to the provider with a secret you send in this request: an API key or, on Google Vertex AI, a service account key (`clientEmail` and `privateKey`). Rollstack saves the secret and never returns it, so to change it, send the whole setup again."},"apiKey":{"type":"string","minLength":1,"writeOnly":true,"description":"An API key for the OpenAI project Rollstack uses, created on the OpenAI platform. The project must allow the models in `models`, in Project settings \u203a Limits \u203a Model usage. You can also give the project a monthly budget. Rollstack never returns the key.","examples":["your-openai-api-key"]}},"required":["dataResidency","models","auth","apiKey"]},{"type":"object","properties":{"dataResidency":{"type":"string","enum":["global","us","eu"],"description":"The data residency of the OpenAI project Rollstack uses, which decides the OpenAI host Rollstack calls: `global` for OpenAI's global host, `us` or `eu` for its US or EU host. With `global`, the slides agent's web search also uses your OpenAI project. With `us` or `eu`, it uses Rollstack's OpenAI account instead, so saving turns web search off, unless the organization's provider was already OpenAI with `us` or `eu`; an owner can turn it back on in the app."},"models":{"type":"object","properties":{"smart":{"type":"string","enum":["gpt-6.1-sol"],"description":"The model that runs the slides agent and does its main work, such as editing slides and writing queries."},"fast":{"description":"The model for the slides agent's quick steps around its main work, such as naming the chat and inspecting slides, to save cost. If omitted, the `smart` model runs these steps too.","type":"string","enum":["gpt-6-luna"]}},"required":["smart"],"description":"The GPT models the slides agent runs on: `smart` for its main work, `fast` for its quick steps. With `dataResidency` `global`, its web search runs on them too. The project must allow them in Project settings \u203a Limits \u203a Model usage."},"auth":{"type":"string","const":"oidc","description":"Rollstack signs in without a saved secret: its OpenID Connect issuer signs a short-lived token for the subject `rollstack:org:<id>`, where `<id>` is your organization's `id` from `getOrganization`, and your provider exchanges the token for temporary credentials. Set up your provider to trust that issuer and to check that subject, so it accepts only your organization: `setLLMProvider` fails if the setup also accepts another organization's token. The AI provider setting in the app, under Settings \u203a Features, shows the issuer, subject and audience to trust."},"identityProviderId":{"type":"string","minLength":1,"description":"The ID of the identity provider you create on the OpenAI platform, under Settings \u203a Security \u203a Workload Identity Provider, with Rollstack's issuer and the audience `https:\/\/api.openai.com`. Map it to the service account in `serviceAccountId`, with `sub` set to your organization's subject (see `auth`) and `aud` to that audience.","examples":["idp_example"]},"serviceAccountId":{"type":"string","minLength":1,"description":"The User ID of the OpenAI service account Rollstack acts as. Create the service account with Restricted permissions and Model capabilities set to Write, in a project with the data residency in `dataResidency` that allows the models in `models`.","examples":["user-example"]}},"required":["dataResidency","models","auth","identityProviderId","serviceAccountId"]}],"description":"Your OpenAI project's data residency, the GPT models the slides agent runs on, and how Rollstack signs in to the project: with an API key (`apiKey`), or without a key, through an OpenAI workload identity provider (`oidc`)."}},"required":["type","credentials"]},{"type":"object","properties":{"type":{"type":"string","const":"azure_foundry","description":"Runs the slides agent on Claude or GPT models deployed in your Azure AI Foundry resource, the ones you pick in `credentials.models`."},"credentials":{"oneOf":[{"type":"object","properties":{"resourceName":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{1,62}$","description":"The name of your Azure AI Foundry resource, which Rollstack calls at `https:\/\/<resourceName>.services.ai.azure.com`. It's the first part of the host in any deployment's Target URI, such as `acme-ai` in `https:\/\/acme-ai.services.ai.azure.com`. 2 to 63 lowercase letters, digits and hyphens, starting with a letter or digit.","examples":["acme-ai"]},"models":{"type":"object","properties":{"smart":{"type":"string","enum":["claude-opus-5-5","gpt-6.1-sol"],"description":"The model that runs the slides agent and does its main work, such as editing slides and writing queries."},"fast":{"description":"The model for the slides agent's quick steps around its main work, such as naming the chat and inspecting slides, to save cost. If omitted, the `smart` model runs these steps too.","type":"string","enum":["claude-haiku-5-5","gpt-6-luna"]}},"required":["smart"],"description":"The models the slides agent runs on, each Claude or GPT: `smart` for its main work, `fast` for its quick steps. Deploy each on the resource under its model's name, Foundry's default, such as `claude-opus-5-5`."},"auth":{"type":"string","const":"apiKey","description":"Rollstack signs in to the provider with a secret you send in this request: an API key or, on Google Vertex AI, a service account key (`clientEmail` and `privateKey`). Rollstack saves the secret and never returns it, so to change it, send the whole setup again."},"apiKey":{"type":"string","minLength":1,"writeOnly":true,"description":"An API key of your Azure AI Foundry resource. Rollstack uses it for every model it calls on the resource, Claude and GPT alike, and never returns it.","examples":["your-azure-api-key"]}},"required":["resourceName","models","auth","apiKey"]},{"type":"object","properties":{"resourceName":{"type":"string","pattern":"^[a-z0-9][a-z0-9-]{1,62}$","description":"The name of your Azure AI Foundry resource, which Rollstack calls at `https:\/\/<resourceName>.services.ai.azure.com`. It's the first part of the host in any deployment's Target URI, such as `acme-ai` in `https:\/\/acme-ai.services.ai.azure.com`. 2 to 63 lowercase letters, digits and hyphens, starting with a letter or digit.","examples":["acme-ai"]},"models":{"type":"object","properties":{"smart":{"type":"string","enum":["claude-opus-5-5","gpt-6.1-sol"],"description":"The model that runs the slides agent and does its main work, such as editing slides and writing queries."},"fast":{"description":"The model for the slides agent's quick steps around its main work, such as naming the chat and inspecting slides, to save cost. If omitted, the `smart` model runs these steps too.","type":"string","enum":["claude-haiku-5-5","gpt-6-luna"]}},"required":["smart"],"description":"The models the slides agent runs on, each Claude or GPT: `smart` for its main work, `fast` for its quick steps. Deploy each on the resource under its model's name, Foundry's default, such as `claude-opus-5-5`."},"auth":{"type":"string","const":"oidc","description":"Rollstack signs in without a saved secret: its OpenID Connect issuer signs a short-lived token for the subject `rollstack:org:<id>`, where `<id>` is your organization's `id` from `getOrganization`, and your provider exchanges the token for temporary credentials. Set up your provider to trust that issuer and to check that subject, so it accepts only your organization: `setLLMProvider` fails if the setup also accepts another organization's token. The AI provider setting in the app, under Settings \u203a Features, shows the issuer, subject and audience to trust."},"tenantId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"The Directory (tenant) ID of your Microsoft Entra ID tenant, where you register the app Rollstack signs in as.","examples":["4d6f8a0c-2e3a-4b5c-8d7e-9f1a3b5c7d9e"]},"clientId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$","description":"The Application (client) ID of the app you register for Rollstack in Microsoft Entra ID, with no client secret. Give it a federated credential that trusts Rollstack's issuer for your organization's subject (see `auth`), with the audience `api:\/\/AzureADTokenExchange`, and the Cognitive Services User role on the resource. A new trust can take a few minutes to apply.","examples":["2b4d6f8a-0c1e-4a3b-9d5f-7b9d1f3a5c7e"]}},"required":["resourceName","models","auth","tenantId","clientId"]}],"description":"Your Azure AI Foundry resource, the models on it the slides agent runs on, and how Rollstack signs in: with the resource's API key (`apiKey`), or without a key, as an app registered in Microsoft Entra ID (`oidc`)."}},"required":["type","credentials"]},{"type":"object","properties":{"type":{"type":"string","const":"amazon_bedrock","description":"Runs the slides agent on Claude or GPT models in Amazon Bedrock, in your AWS account, the ones you pick in `credentials.models`."},"credentials":{"oneOf":[{"type":"object","properties":{"region":{"type":"string","pattern":"^[a-z]{2}(-[a-z]+)+-\\d$","description":"The AWS region Rollstack calls Amazon Bedrock in, such as `us-east-1`. It must be in `dataLocation`: a `us-` region for `us`, an `eu-` region for `eu`, `ap-southeast-2` or `ap-southeast-4` for `au`, `ap-northeast-1` or `ap-northeast-3` for `jp`, and any region for `global`.","examples":["us-east-1"]},"dataLocation":{"type":"string","enum":["us","eu","au","jp","global"],"description":"Where Amazon Bedrock may process the slides agent's requests to Claude models: `us` (United States), `eu` (Europe), `au` (Australia), `jp` (Japan) or `global`. Rollstack calls Claude through this location's cross-region inference profile, such as `us.anthropic.claude-opus-5-5` or `global.anthropic.claude-opus-5-5`, and GPT models in `region` directly."},"models":{"type":"object","properties":{"smart":{"type":"string","enum":["claude-opus-5-5","gpt-6.1-sol"],"description":"The model that runs the slides agent and does its main work, such as editing slides and writing queries."},"fast":{"description":"The model for the slides agent's quick steps around its main work, such as naming the chat and inspecting slides, to save cost. If omitted, the `smart` model runs these steps too.","type":"string","enum":["claude-haiku-5-5","gpt-6-luna"]}},"required":["smart"],"description":"The models the slides agent runs on, each Claude or GPT: `smart` for its main work, `fast` for its quick steps. Enable them in Model access in `region`."},"auth":{"type":"string","const":"apiKey","description":"Rollstack signs in to the provider with a secret you send in this request: an API key or, on Google Vertex AI, a service account key (`clientEmail` and `privateKey`). Rollstack saves the secret and never returns it, so to change it, send the whole setup again."},"apiKey":{"type":"string","minLength":1,"writeOnly":true,"description":"A long-term Amazon Bedrock API key, created with an expiry for an IAM user whose policy allows only the models in `models`; the AI provider setting in the app shows that policy. Rollstack uses it for Claude and GPT models alike, and never returns it.","examples":["your-bedrock-api-key"]}},"required":["region","dataLocation","models","auth","apiKey"]},{"type":"object","properties":{"region":{"type":"string","pattern":"^[a-z]{2}(-[a-z]+)+-\\d$","description":"The AWS region Rollstack calls Amazon Bedrock in, such as `us-east-1`. It must be in `dataLocation`: a `us-` region for `us`, an `eu-` region for `eu`, `ap-southeast-2` or `ap-southeast-4` for `au`, `ap-northeast-1` or `ap-northeast-3` for `jp`, and any region for `global`.","examples":["us-east-1"]},"dataLocation":{"type":"string","enum":["us","eu","au","jp","global"],"description":"Where Amazon Bedrock may process the slides agent's requests to Claude models: `us` (United States), `eu` (Europe), `au` (Australia), `jp` (Japan) or `global`. Rollstack calls Claude through this location's cross-region inference profile, such as `us.anthropic.claude-opus-5-5` or `global.anthropic.claude-opus-5-5`, and GPT models in `region` directly."},"models":{"type":"object","properties":{"smart":{"type":"string","enum":["claude-opus-5-5","gpt-6.1-sol"],"description":"The model that runs the slides agent and does its main work, such as editing slides and writing queries."},"fast":{"description":"The model for the slides agent's quick steps around its main work, such as naming the chat and inspecting slides, to save cost. If omitted, the `smart` model runs these steps too.","type":"string","enum":["claude-haiku-5-5","gpt-6-luna"]}},"required":["smart"],"description":"The models the slides agent runs on, each Claude or GPT: `smart` for its main work, `fast` for its quick steps. Enable them in Model access in `region`."},"auth":{"type":"string","const":"oidc","description":"Rollstack signs in without a saved secret: its OpenID Connect issuer signs a short-lived token for the subject `rollstack:org:<id>`, where `<id>` is your organization's `id` from `getOrganization`, and your provider exchanges the token for temporary credentials. Set up your provider to trust that issuer and to check that subject, so it accepts only your organization: `setLLMProvider` fails if the setup also accepts another organization's token. The AI provider setting in the app, under Settings \u203a Features, shows the issuer, subject and audience to trust."},"roleArn":{"type":"string","pattern":"^arn:aws:iam::\\d{12}:role\\\/[\\w+=,.@\/-]+$","description":"The ARN of the IAM role Rollstack assumes to call Amazon Bedrock. Its trust policy must trust Rollstack's issuer, added as an OIDC provider in your AWS account, for your organization's subject (see `auth`) and the audience `sts.amazonaws.com`. Its permissions should allow only the models in `models`. The AI provider setting in the app gives the AWS CLI commands.","examples":["arn:aws:iam::123456789012:role\/rollstack-agent"]}},"required":["region","dataLocation","models","auth","roleArn"]}],"description":"Where Rollstack calls Amazon Bedrock, the models the slides agent runs on, and how Rollstack signs in: with a Bedrock API key (`apiKey`), or without a key, by assuming an IAM role (`oidc`)."}},"required":["type","credentials"]},{"type":"object","properties":{"type":{"type":"string","const":"google_vertex_ai","description":"Runs the slides agent on Claude models in Vertex AI, in your Google Cloud project, the ones you pick in `credentials.models`."},"credentials":{"oneOf":[{"type":"object","properties":{"projectId":{"type":"string","pattern":"^[a-z][a-z0-9-]{4,28}[a-z0-9]$","description":"The ID of the Google Cloud project Rollstack calls Vertex AI in, where you enable the models in Model Garden. Use the project ID, such as `acme-ai`, not its name or number.","examples":["acme-ai"]},"region":{"type":"string","enum":["global","us","eu"],"description":"Where Vertex AI processes the slides agent's requests: `global` (Vertex AI's global endpoint), `us` (the US multi-region) or `eu` (the EU multi-region)."},"models":{"type":"object","properties":{"smart":{"type":"string","enum":["claude-opus-5-5"],"description":"The model that runs the slides agent and does its main work, such as editing slides and writing queries."},"fast":{"description":"The model for the slides agent's quick steps around its main work, such as naming the chat and inspecting slides, to save cost. If omitted, the `smart` model runs these steps too.","type":"string","enum":["claude-haiku-5-5"]}},"required":["smart"],"description":"The Claude models the slides agent runs on: `smart` for its main work, `fast` for its quick steps. Enable them in Vertex AI's Model Garden for `projectId`."},"auth":{"type":"string","const":"apiKey","description":"Rollstack signs in to the provider with a secret you send in this request: an API key or, on Google Vertex AI, a service account key (`clientEmail` and `privateKey`). Rollstack saves the secret and never returns it, so to change it, send the whole setup again."},"clientEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"The email of the Google Cloud service account Rollstack signs in as: `client_email` in its JSON key. The service account needs the Vertex AI User role.","examples":["rollstack@acme-ai.iam.gserviceaccount.com"]},"privateKey":{"type":"string","minLength":1,"writeOnly":true,"description":"The service account's private key: `private_key` in its JSON key. Rollstack keeps only this and `clientEmail` from the key, and never returns the private key.","examples":["your-private-key"]}},"required":["projectId","region","models","auth","clientEmail","privateKey"]},{"type":"object","properties":{"projectId":{"type":"string","pattern":"^[a-z][a-z0-9-]{4,28}[a-z0-9]$","description":"The ID of the Google Cloud project Rollstack calls Vertex AI in, where you enable the models in Model Garden. Use the project ID, such as `acme-ai`, not its name or number.","examples":["acme-ai"]},"region":{"type":"string","enum":["global","us","eu"],"description":"Where Vertex AI processes the slides agent's requests: `global` (Vertex AI's global endpoint), `us` (the US multi-region) or `eu` (the EU multi-region)."},"models":{"type":"object","properties":{"smart":{"type":"string","enum":["claude-opus-5-5"],"description":"The model that runs the slides agent and does its main work, such as editing slides and writing queries."},"fast":{"description":"The model for the slides agent's quick steps around its main work, such as naming the chat and inspecting slides, to save cost. If omitted, the `smart` model runs these steps too.","type":"string","enum":["claude-haiku-5-5"]}},"required":["smart"],"description":"The Claude models the slides agent runs on: `smart` for its main work, `fast` for its quick steps. Enable them in Vertex AI's Model Garden for `projectId`."},"auth":{"type":"string","const":"oidc","description":"Rollstack signs in without a saved secret: its OpenID Connect issuer signs a short-lived token for the subject `rollstack:org:<id>`, where `<id>` is your organization's `id` from `getOrganization`, and your provider exchanges the token for temporary credentials. Set up your provider to trust that issuer and to check that subject, so it accepts only your organization: `setLLMProvider` fails if the setup also accepts another organization's token. The AI provider setting in the app, under Settings \u203a Features, shows the issuer, subject and audience to trust."},"poolProjectNumber":{"type":"string","pattern":"^\\d+$","description":"The number of the Google Cloud project that contains the workload identity pool, as `gcloud projects describe` prints it. Digits only: the project number, not its ID.","examples":["123456789012"]},"poolId":{"type":"string","pattern":"^[a-z0-9-]{4,32}$","description":"The ID of the workload identity pool that contains the provider in `providerId`, such as `rollstack`.","examples":["rollstack"]},"providerId":{"type":"string","pattern":"^[a-z0-9-]{4,32}$","description":"The ID of the OIDC provider in the pool that trusts Rollstack's issuer, such as `rollstack`. Map `google.subject` to `assertion.sub`, and keep Google's default audience, the provider's own resource name, which is the audience Rollstack's token carries. Grant the Vertex AI User role only to your organization's subject (see `auth`) in the pool.","examples":["rollstack"]}},"required":["projectId","region","models","auth","poolProjectNumber","poolId","providerId"]}],"description":"Your Google Cloud project and Vertex AI location, the models the slides agent runs on, and how Rollstack signs in: with a service account's JSON key (`apiKey`), or without a key, through workload identity federation (`oidc`)."}},"required":["type","credentials"]}]}}}},"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}},"delete":{"operationId":"deleteLLMProvider","summary":"Delete LLM provider","description":"Deletes the organization's custom LLM provider, on any plan. Only owners, and admins an owner allowed to manage the AI provider, may call it: members' keys can't carry organization:write. Every owner gets an email.\n\nRequires the `organization:write` scope.","tags":["LLM provider"],"x-scope":"organization:write","security":[{"apiKey":[]},{"oauth2":["organization:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"description":"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.","schema":{"$schema":"https:\/\/json-schema.org\/draft\/2020-12\/schema","type":"string","pattern":"^[\\x20-\\x7e]{1,255}$","description":"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."}}],"responses":{"204":{"description":"Success, no content"},"default":{"description":"Error","content":{"application\/json":{"schema":{"$ref":"#\/components\/schemas\/Error"}}}}}}}}}