---
title: "Create saved report"
method: POST
path: "/api/saved-report"
tags: ["Saved Reports"]
---

# Create saved report

`POST /api/saved-report`

## Request

- Base URL: `https://api.sponsorunited.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.sponsorunited.com/api/saved-report`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/saved-report/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a new saved report with the provided name, type, URL, and payload data

## Request body

- SavedReportStoreRequest
  - `name` string
  - `type` string
  - `url` string
  - `payload` object: Report state, persisted as sent. Its shape depends on `type`, and the server reads type-specific keys from it to resolve the report thumbnail. For `trending-topics`, `seasons` is a comma-separated list of four-digit years and `search_term` a comma-separated list of terms.

## Response `200`

The new report.

- SavedReportResource
  - `id` integer
  - `name` string
  - `description` string, nullable
  - `type` string
  - `url` string
  - `payload` object
  - `is_viewed` boolean
  - `source_user_id` integer
  - `source_report_id` integer

## Other responses

- `400`: The stored report payload is not valid JSON.

---

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