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

# Disable a source

> Turn a credit Source off for the Tenancy.

The same act as enabling, in the other direction. There is no body.

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

**source** `string` *required*

The catalogue's name for the Source, as [List the sources](https://docs.capcells.com/api-reference/sources/list.md) answers it.

## Response

**source** `string` *required*

The Source.

**enabled** `boolean` *required*

Whether it is on.

**daily\_bound** `integer`

The dispatches admitted in a rolling day. Absent on a disablement.

**stated\_by** `string` *required*

Who performed the act.

**stated\_at** `string` *required*

When.

## 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 |
| `404` | | The catalogue declares no such Source |

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 DELETE https://api.capcells.com/console/v1/tenants/capyplazo/sources/$SOURCE/enablement \
  -H "Authorization: Bearer $CONSOLE_TOKEN"
```


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