# prov.authorize.network.setLimitNoticeSettings

prov.authorize.network.setLimitNoticeSettings in Node SDK. Turn push, text or email on or off for near-limit notices (an admin key).

## Signature

```ts
prov.authorize.network.setLimitNoticeSettings(channels: Partial<LimitNoticeChannels>): Promise<LimitNoticeSettings>
```

## Parameters

- `channels` (Partial<LimitNoticeChannels>)

## Returns

`Promise<LimitNoticeSettings>`

## HTTP operation

[`PUT /v1/mandate/settings/limit_notices`](https://provenanceauth.com/docs/api/network.md#put-v1-mandate-settings-limit-notices): Set the near-limit notice channels

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`insufficient_scope`](https://provenanceauth.com/docs/platform/errors.md#insufficient_scope)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`rate_limit_exceeded`](https://provenanceauth.com/docs/platform/errors.md#rate_limit_exceeded)

## Example

**Node**

```ts
const data = await (await fetch(`${process.env.PROVENANCE_API}/v1/mandate/settings/limit_notices`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({ "channels": { "text": false } }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/mandate/settings/limit_notices", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "channels": {
        "text": False
    }
}).json()
```
