# List an underwriting rule set's versions

Every version this set has published, newest first, each carrying the frozen rules it ran. The read behind "which words judged this deal in March".

Access class: `workspace`.

## Endpoint

`GET /v1/workspace/underwriting/rule-sets/{setId}/versions`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| setId | path | string | Yes |
| body | query | null | No |
| params | query | object | No |
| query | query | object | No |

## Responses

### 200

the action's answer

Content type: `application/json`.

```json
{
  "data": [
    {
      "appliesToProduct": "string",
      "appliesToStage": "string",
      "id": 1,
      "name": "string",
      "publishedAt": "string",
      "publishedByAccountId": "",
      "rules": [
        "string"
      ],
      "setId": 1,
      "version": 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"
}
```
