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

# Enable a source

> Turn a credit Source on for the Tenancy, with a daily bound.

Turning a Source on, and saying how much it may spend in a day, is an act a named person performs.

The bound is required. The Platform does not choose that number for you.

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

## Body

**daily\_bound** `integer` *required*

How many dispatches to this Source you admit in a rolling day. At least 1.

## 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 |
| `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` |
| `400` | `invalid_identifier` | `daily_bound` is below one |
| `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 PUT https://api.capcells.com/console/v1/tenants/capyplazo/sources/$SOURCE/enablement \
  -H "Authorization: Bearer $CONSOLE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"daily_bound": 500}'
```


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