> ## Documentation Index
> Fetch the complete documentation index at: https://docs.capcells.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Validate a policy candidate

> Ask what the Platform would say about Credit policy content, without storing anything.

Answers every finding the publication would refuse on, or the digest the content would publish under. It stores nothing: no draft, no attempt.

The body is the shape [Read a credit policy version](https://docs.capcells.com/api-reference/credit-policy/version.md) answers, sent back. Start from a Platform pack, change the numbers and the identifiers, and post it here.

A `200` means the Platform read the content, not that it would publish. Read `publishable`.

## Who may call

Any member of the organization, and the agent.

## Path parameters

**tenant\_id** `string` *required*

The Tenancy acting. It comes from [Read the tenancy](https://docs.capcells.com/api-reference/console/tenancy/read.md); your organization must be bound to it.

## Body

**policy** `string` *required*

Your own name for the policy. It may not be one the Platform publishes.

**version** `integer` *required*

Numbered consecutively from 1 per policy. A number past the next one is refused.

**currency** `string` *required*

The ISO 4217 code every amount in the version is stated in.

**digest** `string`

A claim about the content. Stated, it is checked against what you sent; omitted, nothing is claimed. Content copied from a read and then edited must drop it.

**knockouts** `array` *required*

Rules that settle an application outright. Every rule identifier carries your Tenancy's identifier as its namespace.

**scorecard** `array` *required*

Entries awarding points for the bands of one attribute's values. The bands cover the attribute's whole domain.

**cutoffs** `array` *required*

Bands naming the outcome for a range of the score, with no gap and no overlap.

**attributes** `array`

The attributes the rules read, echoed back from a read. Checked against the vocabulary; a disagreement is refused.

## Response

**publishable** `boolean` *required*

Whether the content would publish as it stands.

**findings** `array` *required*

Everything the publication would refuse on, in the version's own order. Empty when publishable.

**digest** `string`

The digest the content would publish under. Absent where there are findings.

## Refusals

| Status | Code | When |
| - | - | - |
| `401` | `unauthenticated` | The token is missing or cannot be used |
| `403` | `not_permitted_tenant` | Your organization does not act for the Tenancy in the path |
| `400` | `malformed_request` | The body has an unknown field, a field stated twice, or more than one JSON value |
| `415` | `unsupported_media_type` | The body is not declared `application/json` |
| `413` | `body_too_large` | The body is longer than the route reads |

Every refusal carries the [error shape](https://docs.capcells.com/api-reference/overview.md#the-error-shape). `429` and `503` answer as at the signing door.

```bash Request theme={null}
curl -X POST https://api.capcells.com/console/v1/tenants/capyplazo/credit-policy-candidates \
  -H "Authorization: Bearer $CONSOLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d @house-rules-v1.json
```

```json 200 Publishable theme={null}
{
  "publishable": true,
  "findings": [],
  "digest": "0c3924dce565bc58a4f4e45ce2e049f6a0906ddf2fd16c49d996a338baba5598"
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.