> ## Documentation Index
> Fetch the complete documentation index at: https://developers.redo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# insightReportRate

> Rate a report for the signed-in team member, with an optional comment, and return the report. The latest rating counts. Needs a user, so a store API token gets ACTOR_REQUIRED (403). Null when no such report exists or it belongs to another store.

**Required scopes:** [`analytics_write`](https://developers.redo.com/docs/api-reference/v3/reference/scopes#scope-analytics_write)

## Arguments

**comment** `String`

Why the team member rated it this way.

**id** `ID!` *required*

The id of the report.

**rating** `[InsightReportRating!](/docs/api-reference/v3/reference/analytics/insight-report-rating)` *required*

Whether the report was useful.

## Returns

**insightReportRate** `[InsightReport](/docs/api-reference/v3/reference/analytics/insight-report)`

A report Redo writes each month that analyzes the store's returns and claims over a date range. Read it as Markdown in `body`, or as a PDF with `insightReportPdfCreate`.

**fields**

**analysisEnd** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

The end of the period the report analyzes.

**analysisStart** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

The start of the period the report analyzes.

**body** `String!` *required*

The full report, in Markdown.

**createdAt** `[DateTime!](/docs/api-reference/v3/reference/common/date-time)` *required*

When Redo wrote the report.

**description** `String!` *required*

A short summary of the report, for a list.

**id** `ID!` *required*

The id of this report.

**legacyId** `String!` *required*

The report's legacy identifier (the source Mongo ObjectId), accepted anywhere an `id` is.

**title** `String!` *required*

The report's title.

## Example

```graphql theme={null}
mutation {
  insightReportRate(comment: "...", id: "...", rating: NEGATIVE) {
    analysisEnd
    analysisStart
    body
    createdAt
    description
    id
    legacyId
    title
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.