# List the underwriting rule sets

Every underwriting rule set this workspace has, each with its DRAFT rules and whether the draft differs from what is published. Reach for it to answer "what rules judge our deals", or before editing one. The rules that actually RUN are the published version's, not these.

Access class: `workspace`.

## Endpoint

`GET /v1/workspace/underwriting/rule-sets`

## Parameters

| Name | In | Type | Required |
| --- | --- | --- | --- |
| 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",
      "createdAt": "string",
      "createdByAccountId": "",
      "description": "string",
      "hasUnpublishedChanges": true,
      "id": 1.5,
      "key": "string",
      "name": "string",
      "publishedAt": "string",
      "publishedByAccountId": "",
      "publishedVersion": 1.5,
      "rules": [
        {
          "active": true,
          "condition": "string",
          "createdAt": "string",
          "id": 1.5,
          "key": "string",
          "name": "string",
          "outcome": "string",
          "reasonTemplate": "string",
          "setId": 1.5,
          "sortOrder": 1.5,
          "sourceText": "string",
          "updatedAt": "string",
          "weight": 1.5
        }
      ],
      "seeded": true,
      "status": "string",
      "updatedAt": "string"
    }
  ]
}
```

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