> ## 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.

# Publish a policy version

> Write a Credit policy version and record who published it.

The version is immutable from this moment. Changed content is the next version.

It is not adoptable yet. A second person [confirms it](https://docs.capcells.com/api-reference/console/credit-policy/confirm.md), and until then an adoption naming it is refused.

Publishing the same content twice under one number is a retry and answers `200` with what is published. Different content under a taken number is `409`.

## Who may call

An administrator of the organization, as a person. The agent is refused on live and sandbox Tenancies alike.

## 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

Answers `201`.

**policy** `string` *required*

The policy's name.

**version** `integer` *required*

The version number, counting from 1.

**digest** `string` *required*

A 64-character hexadecimal digest of the content. A number is a label; the digest can be checked, and every Decision records it.

**published\_by** `string` *required*

The person who published it, as your identity provider names them.

**published\_at** `string` *required*

When, as an RFC 3339 moment.

**confirmed** `boolean` *required*

Whether the version may be adopted.

**self\_confirmed** `boolean` *required*

`true` when the publisher also confirmed it, which only a sandbox Tenancy permits.

**confirmed\_by** `string`

Who confirmed. Absent until there is one.

**confirmed\_at** `string`

When they confirmed.

## 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 |
| `403` | `not_permitted_role` | The caller is not an administrator |
| `403` | `not_permitted_actor` | The caller is the agent |
| `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` |
| `409` | | The number is published with other content; the refusal names both digests |
| `413` | `body_too_large` | The body is longer than the route reads |
| `422` | `policy_name_taken` | The policy takes the name of one the Platform publishes |
| `422` | | The content has findings, the version number is not the next one, or a stated digest is not the content's |

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-versions \
  -H "Authorization: Bearer $CONSOLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d @house-rules-v1.json
```

```json 201 theme={null}
{
  "policy": "house-rules",
  "version": 1,
  "digest": "0c3924dce565bc58a4f4e45ce2e049f6a0906ddf2fd16c49d996a338baba5598",
  "published_by": "user_alice",
  "published_at": "2026-08-24T12:00:01Z",
  "confirmed": false,
  "self_confirmed": false
}
```


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