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

# workspace.SharedReport

`POST /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/post.ts> (a function with typed inputs; its response is checked against the schema)

Add shared report.

## Path parameters

- `workspace_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>saved report name field can't be blank</li><li>saved report fixed_daterange can't be blank</li><li>saved report public can't be blank</li><li>parameter report_type is invalid or blank</li></ul>
- `402`: Available only for premium workspaces.
- `403`: Public reports can be saved only by admins.
- `404`: Workspace not found/accessible.
- `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)
