# Run a compliance report now

Admin only. Evaluates every check the report names in one transaction and answers the run together with its findings. A run cannot be edited or re-run — asking again writes a new run — so its counts, its outcome and the checks it ran are fixed at this moment. The first run of a report carrying the seat-review check fails it for every seat, because nothing has been signed off yet; signing that run off is the review, and the next run passes.

Access class: `workspace:admin`.

## Endpoint

`POST /v1/workspace/compliance/reports/{id}/run`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| id | path | string | Yes |

## Request body

Content type: `application/json`.

```json
{
  "body": {},
  "params": {
    ":id": "string"
  },
  "query": {}
}
```

## Responses

### 201

the action's answer

Content type: `application/json`.

```json
{
  "data": {
    "findings": [
      {
        "checkKey": "string",
        "createdAt": "string",
        "id": "",
        "outcome": "string",
        "reason": "string",
        "subjectKind": "string",
        "subjectLabel": "string",
        "subjectRowId": ""
      }
    ],
    "run": {
      "checksRun": [
        "string"
      ],
      "decisions": [
        {
          "decidedAt": "string",
          "decision": "string",
          "id": "",
          "note": "string",
          "signerName": "string",
          "signerUserId": ""
        }
      ],
      "failed": 1,
      "id": "",
      "outcome": "string",
      "passed": 1,
      "ranAt": "string",
      "ranBy": 1,
      "reportId": "",
      "reportName": "string",
      "standing": "string",
      "subjects": 1
    }
  }
}
```

### 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"
}
```
