# tools.ozone.report.refreshStats

> Recompute report statistics for a date range.

- Kind: procedure
- Authority: report.ozone.tools
- Lexicon: 1
- Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.refreshStats)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.refreshStats/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.report.refreshStats/analytics)

## Procedure (`tools.ozone.report.refreshStats`)

Type: procedure · POST

### Input (application/json)

- `endDate` (string, required): End date for recomputation, inclusive (YYYY-MM-DD).
- `queueIds` (array): Optional list of queue IDs to recompute. Omit to recompute all groups.
  - `items` (integer)
- `startDate` (string, required): Start date for recomputation, inclusive (YYYY-MM-DD).

### Output (application/json)


## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Recompute report statistics for a date range.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "endDate": {
              "description": "End date for recomputation, inclusive (YYYY-MM-DD).",
              "type": "string"
            },
            "queueIds": {
              "description": "Optional list of queue IDs to recompute. Omit to recompute all groups.",
              "items": {
                "type": "integer"
              },
              "type": "array"
            },
            "startDate": {
              "description": "Start date for recomputation, inclusive (YYYY-MM-DD).",
              "type": "string"
            }
          },
          "required": [
            "startDate",
            "endDate"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.report.refreshStats",
  "lexicon": 1
}
```
