---
title: "Create report"
method: POST
path: "/v1/deployments/{deploymentId}/reports"
tags: ["Reports"]
---

# Create report

`POST /v1/deployments/{deploymentId}/reports`

## Path parameters

- `deploymentId` number, required

## Request body

- CreateReportInput
  - `endResultCell` string, nullable
  - `externalWorkbookId` string, nullable
  - `folderId` integer, nullable
  - `jsonQuery` string, nullable
  - `meta` object, nullable
  - `name` string, nullable
  - `pivotItems` PivotItemsInput
    - `columns` string[], required
    - `filters` string[], required
    - `measures` string[], required
    - `rows` string[], required
  - `publicId` string, nullable
  - `resultLocation` string, nullable
  - `source` 'GOOGLE_SHEETS' | 'EXCEL' | 'PLAYGROUND' | 'D3'
  - `sqlQuery` string, nullable
  - `title` string, nullable
  - `workbookId` integer, nullable

## Response `200`

- Report
  - `canEdit` boolean, nullable
  - `canManage` boolean, nullable
  - `createdAt` union, required
    - string, date
    - string, date-time
  - `createdBy` integer
  - `deploymentId` integer, required
  - `description` string, nullable
  - `endResultCell` string, nullable
  - `externalWorkbookId` string, nullable
  - `externalWorkbookPlacements` ReportPlacement[], nullable
    - `endResultCell` string, nullable
    - `resultLocation` string, required
    - `workbookId` string, required
  - `folderId` integer, nullable
  - `id` integer, required
  - `jsonQuery` string, nullable
  - `meta` object, nullable
  - `name` string, required
  - `pivotItems` PivotItems
    - `columns` string[], required
    - `filters` string[], required
    - `measures` string[], required
    - `rows` string[], required
  - `publicId` string, required
  - `refreshedBy` integer, nullable
  - `refreshedByUser` ResourceOwner, required
    - `email` string, required
    - `firstName` string, nullable
    - `id` integer, required
    - `picture` string, nullable
  - `resultLocation` string, nullable
  - `rolesWithAccess` RoleWithAccess[], nullable
    - `actions` string[], required
    - `id` integer, required
    - `name` string, required
  - `source` 'GOOGLE_SHEETS' | 'EXCEL' | 'PLAYGROUND' | 'D3'
  - `sqlQuery` string, nullable
  - `title` string, nullable
  - `type` 'FOLDER' | 'WORKBOOK' | 'REPORT', required
  - `updatedAt` union, required
    - string, date
    - string, date-time
  - `user` ResourceOwner, required
    - `email` string, required
    - `firstName` string, nullable
    - `id` integer, required
    - `picture` string, nullable
  - `userId` integer, required
  - `version` integer, nullable
  - `workbookId` integer, nullable

## Changes

- **2026-07-20** `df6e5a12170a` — 2 warning, 3 info
  - added the new `DownloadData` enum value to the `rolesWithAccess/oneOf[subschema #1]/items/actions/items/` response property for the response status `200`
  - added the new `SecretsManage` enum value to the `rolesWithAccess/oneOf[subschema #1]/items/actions/items/` response property for the response status `200`
  - added the optional property `canEdit` to the response with the `200` status
  - added the optional property `canManage` to the response with the `200` status
  - …1 more
- **2026-06-10** `f309f096b698` — 1 warning
  - added the new `McpToolsManage` enum value to the `rolesWithAccess/oneOf[subschema #1]/items/actions/items/` response property for the response status `200`
- **2026-06-07** `241493c9a786` — 1 info
  - removed the `McpToolsManage` enum value from the `rolesWithAccess/oneOf[subschema #1]/items/actions/items/` response property for the response status `200`

[Change history](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/changes/v1/deployments/:deploymentId/reports/post.md)

---

[API](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api.md) · [All operations](https://skmtc.dev/cube-js/apis/cube-cloud-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/cube-js/cube-cloud-rest-api/revisions/df6e5a12170a/schema)
