Skip to main content
PUT
Update a report delivery
In preview: ask Cube support to enable it. Omitted fields stay unchanged; destination and schedule are replaced whole, and schedule: null removes it. A new reportId needs read access to that report; ownerUserId transfers the delivery.

Authorizations

Authorization
string
header
required

Token authentication. Send Authorization: Bearer <YOUR_TOKEN>.

Path Parameters

deploymentId
integer
required

Numeric id of the deployment that owns the delivery.

id
integer
required

Numeric id of the report delivery.

Body

application/json

UpdateReportDeliveryInput

destination
object | null

Replaces the whole destination.

name
string | null
Required string length: 1 - 255
notifications
object | null

Replaces the whole setting; null resets it to the inbox only. How the owner hears that the delivery failed or recovered. A delivery that runs more than once a day reports only changes in its status; a daily or rarer one reports every failed run.

ownerUserId
integer | null

Transfer the delivery to this active user, who must be able to read its report. They become owner and run-as user. Admins only.

reportId
integer | null

Deliver another report. The caller must be able to read it.

schedule
object | null

Replaces the whole schedule. null removes it, so the delivery runs only on request.

shape
object | null

Replaces the whole shape. null removes it, delivering every column.

writeMode
enum<string> | null

What each run does with what the previous one wrote. overwrite (the default) replaces the delivered block. append adds the whole result below it, header only on the first run and no deduplication. new_sheet writes each run to a new tab.

Available options:
overwrite,
append,
new_sheet

Response

200 - application/json
deploymentId
integer
required
destination
object
required
id
integer
required
name
string
required
notifications
object
required

How the owner hears that the delivery failed or recovered. A delivery that runs more than once a day reports only changes in its status; a daily or rarer one reports every failed run.

status
enum<string>
required
Available options:
active,
failing,
needs_reconnect,
orphaned
writeMode
enum<string>
required

What each run does with what the previous one wrote. overwrite (the default) replaces the delivered block. append adds the whole result below it, header only on the first run and no deduplication. new_sheet writes each run to a new tab.

Available options:
overwrite,
append,
new_sheet
lastRunAt
string<date-time> | null

When the last run finished. null before the first.

lastSuccessAt
string<date-time> | null

When the last successful run finished. null if none has succeeded.

nextRunAt
any | null

When the schedule next fires. null when there is no schedule or it is paused.

ownerUserId
integer | null

The accountable user, whose Google account writes the sheet. null once that user has been deleted.

pausedAt
any | null

When the delivery was paused. null if it is not.

reportId
integer | null

The delivered report. null once that report has been deleted.

reportName
string | null

Name of the delivered report. null once that report has been deleted.

reportPublicId
string | null

Public id of the delivered report. null once that report has been deleted.

reportWorkbookId
integer | null

Workbook holding the delivered report. null once that report has been deleted.

runAsUserId
integer | null

The user whose data access the query runs with. null once that user has been deleted.

runningSince
string<date-time> | null

When the run still in progress started. null while no run is going.

schedule
object | null

null for a delivery that runs only on request.

shape
object | null

null when every column is delivered as is.

sheetTitle
string | null

Current title of the destination tab, read from Google at most every few minutes. null for a new_sheet delivery, or before its title has been read.

spreadsheetTitle
string | null

Title of the destination spreadsheet, read from Google at most every few minutes and by each run. null before then.