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

# Withdraw an attribute

> Close a declared attribute to new Credit policy versions.

Every version already published, every adoption and every Decision keeps reading the attribute as before. Nothing is deleted.

A withdrawn name is not declared again. Withdrawing again answers the withdrawal on record.

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

**local** `string` *required*

The attribute's local name.

## Body

**reason** `string` *required*

Why. At most 2,000 characters.

## Response

**name** `string` *required*

The namespaced spelling, `<tenant_id>:<local_name>`. Rules and applications use this one.

**local\_name** `string` *required*

The name without the namespace.

**kind** `string` *required*

Always `declared`.

**unit** `string` *required*

What the value counts in.

**min** `integer` *required*

The lowest value admitted.

**max** `integer` *required*

The highest value admitted.

**admits** `array` *required*

The absent states the attribute admits.

**max\_age\_days** `integer` *required*

How old a stated value may be.

**rationale** `string` *required*

Your statement of what the attribute is for.

**basis** `string` *required*

Your stated basis for reading it.

**declared\_by** `string` *required*

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

**declared\_at** `string` *required*

When, as an RFC 3339 moment.

**withdrawn** `boolean` *required*

Whether the attribute is closed to new policy versions.

**withdrawn\_by** `string`

Who withdrew it. Absent until it is withdrawn.

**withdrawn\_at** `string`

When it was withdrawn.

**withdrawal\_reason** `string`

The reason given.

## 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` |
| `404` | `unknown_declaration` | The Tenancy declared no such name |
| `422` | `invalid_declaration` | The reason is missing, too long or not printable text |

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/attribute-declarations/months_at_employer/withdrawal \
  -H "Authorization: Bearer $CONSOLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"reason": "replaced by a payroll confirmation"}'
```


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