# Run an unsaved report definition

Answers the numbers for a report definition that has NOT been saved and may never be — the ad-hoc "count these, grouped by that". The body IS the definition, not wrapped in anything: {source, measures, dimensions, filters, limit}, built from `get_reports_catalogue`. Saves nothing. Use `post_reports_views_id_run` for a report the workspace already keeps, and `post_reports_views` to store this definition once it is right.

Access class: `workspace`.

## Endpoint

`POST /v1/reports/preview`

## Request body

Content type: `application/json`.

```json
{
  "body": {
    "dimensions": [
      {
        "field": "string"
      }
    ],
    "filters": [
      "string"
    ],
    "measures": [
      {
        "agg": "string",
        "field": "string"
      }
    ],
    "source": "string"
  },
  "params": {},
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "result": {
      "columns": [
        "string"
      ],
      "rows": [
        {
          "count_count": 1.5,
          "funded_rate": 1.5
        }
      ],
      "truncated": true
    }
  }
}
```

### default

a refusal: `{"error": "<what a person needs to read>"}`. 401 no credential, 402 the plan does not include this, 403 the seat does not, 404 the thing does not exist or is not yours to see.

Content type: `application/json`.

```json
{
  "error": "string"
}
```
