---
title: "Mark a user's custom report as viewed"
method: POST
path: "/api/custom-reports/{id}/mark-viewed"
tags: ["User Custom Reports"]
---

# Mark a user's custom report as viewed

`POST /api/custom-reports/{id}/mark-viewed`

## 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/custom-reports/{id}/mark-viewed`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/sponsorunited/apis/sponsorunited-api/docs/api/custom-reports/:id/mark-viewed/post.ts> (a function with typed inputs; its response is checked against the schema)

Marks the user's copy of a custom report as viewed. Only the owner can mark their report as viewed.

## Path parameters

- `id` integer, required

## Response `200`

Report marked as viewed successfully

- UserCustomReportResource
  - `id` integer
  - `name` string
  - `description` string, nullable
  - `type` string
  - `url` string, nullable
  - `created_at` string
  - `is_viewed` boolean, nullable

## Other responses

- `403`: Access denied - user is not the owner of this report
- `404`: Report not found

---

[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)
