Skip to main content

We are seeing a **401002** error when calling:

 

`GET /api/<api-version>/sites/<site-id>/workbooks/<workbook-id>/revisions`

 

using **Direct Trust (JWT) authentication**.

 

Our authentication flow is:

 

* `POST /api/<api-version>/auth/signin` → **Success**   * `GET /api/<api-version>/sites/<site-id>/workbooks` → **Success**   * `GET /api/<api-version>/sites/<site-id>/workbooks/<workbook-id>/revisions` → **401002**

 

The JWT is generated with the following scopes:

 

```json   "scp": [     "tableau:content:read",     "tableau:workbooks:*",     "tableau:workbooks:download",     "tableau:datasources:*"   ]   ```

 

Since other workbook APIs work with the same token, could you please confirm whether the **Workbook Revisions** endpoint is supported with Direct Trust authentication, or if it requires additional scopes or permissions?   

2 answers
  1. Jul 16, 8:51 AM

    Hi,

    I created a Tableau Public dashboard and saved it as a .twb workbook.

    The next day, when I opened the workbook, I got this error:

    "Workbooks saved to Tableau Public must use extracts. The data source is not an extract. Error Code: 3C242D89."

    After closing the error, the workbook opens as a blank workbook and all my dashboards are missing.

    The original CSV dataset is still available.

    Is there any way to recover my original workbook or repair the .twb file?

    I have already spent around 3 weeks building this dashboard, so any help would be greatly appreciated. 

0/9000