---
title: "Update subscription"
method: PATCH
path: "/{account}/reports/{report}/subscriptions/{subscription}"
---

# Update subscription

`PATCH /{account}/reports/{report}/subscriptions/{subscription}`

## Request

- Base URL: `https://modeanalytics.com/api`
- URL: `https://modeanalytics.com/api/{account}/reports/{report}/subscriptions/{subscription}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/thoughtspot/apis/mode/docs/:account/reports/:report/subscriptions/:subscription/patch.ts> (a function with typed inputs; its response is checked against the schema)

Updates and returns a `Subscription` for a `Report`

## Path parameters

- `account` string, required
- `report` string, required
- `subscription` string, required

## Request body

- CreateorUpdateReportSubscriptionRequestBody
  - `csv_attachments` boolean: Whether or not to include Csv Attachments for subscribers to the scheduled run
  - `pdf_attachments` boolean: Whether or not to include Pdf Attachments for subscribers to the scheduled run
  - `data_previews` boolean: Whether or not to include Data Previews for subscribers to the scheduled run
  - `data_tables` boolean: Whether or not to include Data Tables for subscribers to the scheduled run
  - `report_links` boolean: Whether or not to include Report Links for subscribers to the scheduled run

## Response `200`

`ReportSubscription` response

- ReportSubscription
  - `data_previews_enabled` boolean, required
  - `data_tables_enabled` boolean, required
  - `csv_attachments_enabled` boolean, required
  - `pdf_attachments_enabled` boolean, required
  - `report_links_enabled` boolean, required
  - `email_subscriber_count` integer, required
  - `_links` ReportSubscriptionLinks, required
    - `self` Link, required
      - `href` string, required
      - `templated` boolean
    - `report_schedule` Link, required
      - `href` string, required
      - `templated` boolean
    - `email_subscription_memberships` Link, required
      - `href` string, required
      - `templated` boolean
    - `slack_subscription_memberships` Link, required
      - `href` string, required
      - `templated` boolean
  - `_embedded` unknown

## Other responses

- `401`: Unauthorized
- `404`: `ReportSubscription` not found

---

[API](https://skmtc.dev/thoughtspot/apis/mode.md) - [All operations](https://skmtc.dev/thoughtspot/apis/mode/llms.txt) - [OpenAPI document](https://skmtc.dev/thoughtspot/apis/mode/revisions/4c694c3fdeb1?raw)
