---
title: "workspace.SharedReport"
method: PUT
path: "/workspaces/{workspace_id}/reports/shared"
tags: ["reports"]
---

# workspace.SharedReport

`PUT /workspaces/{workspace_id}/reports/shared`

## Request

- Base URL: `https://localhost:8080/api/v9`
- URL: `https://localhost:8080/api/v9/workspaces/{workspace_id}/reports/shared`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/toggl/apis/toggl-api/docs/workspaces/:workspace_id/reports/shared/put.ts> (a function with typed inputs; its response is checked against the schema)

Change shared report.

## Path parameters

- `workspace_id` integer, required
- `report_id` integer, required

## Request body

- SavedPayload[]
  - `fixed_daterange` boolean
  - `id` integer
  - `name` string
  - `params` object
  - `public` boolean
  - `regenerate_token` boolean

## Response `200`

Returns shared report.

- ModelsSavedReport
  - `deleted_at` string
  - `fixed_daterange` boolean
  - `id` integer
  - `isNAResource` boolean
  - `name` string
  - `params` string
  - `public` boolean
  - `scheduled_email_gids` integer[]
  - `scheduled_email_uids` integer[]
  - `token` string
  - `uid` integer
  - `updated_at` string
  - `updated_by` integer

## Other responses

- `400`: Possible errors:<ul><li>JSON is not valid</li><li>Report ID {report_id} failed with: saved report name field can't be blank</li><li>Report ID {report_id} failed with: parameter report_type invalid or blank</li></ul>
- `402`: Available only for premium workspaces.
- `403`: Public reports can be saved only by admins.
- `404`: Possible errors:<ul><li>Workspace not found/accessible.</li><li>Some IDs were not found: Only {found_count} Saved Reports found for {requested_count} given IDs.</li></ul>
- `500`: Internal Server Error

---

[API](https://skmtc.dev/toggl/apis/toggl-api.md) - [All operations](https://skmtc.dev/toggl/apis/toggl-api/llms.txt) - [OpenAPI document](https://skmtc.dev/toggl/apis/toggl-api/revisions/3085aee16990?raw)
