# prov.account.setReminderSettings

prov.account.setReminderSettings in Node SDK. Any of your time zone (IANA, or null to clear), a lower cap, a longer gap, wider quiet hours, and the automatic schedule per product (turning one on needs Pro or higher: 402 `plan_required` below).

## Signature

```ts
prov.account.setReminderSettings(params: { /** #140: the delivery default for new requests: `send`, or `self` (link only). */ delivery?: "send" | "self"; /** #140: which messages a new request may send by default. */ channels?: Array<"app_notification" | "email" | "text">; /** #140 slice 3: the follow-up text default (Pro and above on live; every plan in the sandbox). */ followUpText?: { enabled?: boolean; when?: "not_opened" | "not_finished"; afterMinutes?: number }; defaultTimeZone?: string | null; maxPerRequest?: number; minGapSeconds?: number; quietHours?: { start: number; end: number }; schedules?: Partial<Record<"captureRequest" | "approval" | "checkoutApproval", { enabled?: boolean; after?: string[] }>>; }): Promise<ReminderSettings>
```

## Parameters

- `params` ({ /** #140: the delivery default for new requests: `send`, or `self` (link only). */ delivery?: "send" | "self"; /** #140: which messages a new request may send by default. */ channels?: Array<"app_notification" | "email" | "text">; /** #140 slice 3: the follow-up text default (Pro and above on live; every plan in the sandbox). */ followUpText?: { enabled?: boolean; when?: "not_opened" | "not_finished"; afterMinutes?: number }; defaultTimeZone?: string | null; maxPerRequest?: number; minGapSeconds?: number; quietHours?: { start: number; end: number }; schedules?: Partial<Record<"captureRequest" | "approval" | "checkoutApproval", { enabled?: boolean; after?: string[] }>>; })

## Returns

`Promise<ReminderSettings>`

## HTTP operation

[`PUT /v1/account/reminders`](https://provenanceauth.com/docs/api/account.md#put-v1-account-reminders): Set reminder settings

## Errors

- [`authentication_required`](https://provenanceauth.com/docs/platform/errors.md#authentication_required)
- [`parameter_invalid`](https://provenanceauth.com/docs/platform/errors.md#parameter_invalid)
- [`plan_required`](https://provenanceauth.com/docs/platform/errors.md#plan_required)
- [`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/account/reminders`, {
  method: "PUT",
  headers: { Authorization: "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5", "Content-Type": "application/json" },
  body: JSON.stringify({
    "delivery": "send",
    "channels": [
      "app_notification",
      "email",
      "text"
    ],
    "follow_up_text": {
      "after_minutes": 10
    },
    "default_time_zone": "America/Chicago",
    "schedules": {
      "capture_request": {
        "enabled": true,
        "after": [
          "24h",
          "72h"
        ]
      }
    }
  }),
})).json();
```

**Python**

```python
import os
import httpx

api = os.environ["PROVENANCE_API"]
data = httpx.put(f"{api}/v1/account/reminders", headers={"Authorization": "Bearer prv_test_acct_P9xN2vQ7bT4mW8sYd3cFjLh6gAe1kR5"}, json={
    "delivery": "send",
    "channels": [
        "app_notification",
        "email",
        "text"
    ],
    "follow_up_text": {
        "after_minutes": 10
    },
    "default_time_zone": "America/Chicago",
    "schedules": {
        "capture_request": {
            "enabled": True,
            "after": [
                "24h",
                "72h"
            ]
        }
    }
}).json()
```
