View as Markdown

SDK reference · Python SDK

prov.account.set_reminder_settings

prov.account.set_reminder_settings in Python SDK. Any of default_time_zone (IANA; None clears it), max_per_request (lower it), min_gap_seconds (raise it), quiet_hours (widen them) and schedules per product ({"capture_request": {"enabled": True, "after": ["24h", "72h"]}}; turning one on needs Pro or higher).

Signature

prov.account.set_reminder_settings(**fields: Any = …) -> Any

Parameters

**fieldsAny

Request fields

deliveryenum
The default for new requests that leave delivery out: send, or self (link only). Every plan. One of send, self.
channelsobject
Which messages a new request may send when it leaves channels out. Every plan.
follow_up_textobject
The follow-up text default for new requests; keys left out keep their saved value. Pro and above on a live deployment (402 plan_required on Free), every plan in the sandbox.
Show child attributes
enabledboolean
false sends no follow-up text.
whenenum
not_opened (the default) or not_finished. One of not_opened, not_finished.
after_minutesinteger
A whole number of minutes from 1 to 1440, counted from the notification. On a create it must be shorter than the request's expires_in (400 parameter_invalid on follow_up_text.after_minutes); a longer wait from your default is kept, and the text is skipped as expired if the request ends first.
default_time_zonestring | null
An IANA time zone, such as America/Chicago.
max_per_requestinteger
At most the deployment's (limits.max_per_request).
min_gap_secondsinteger
At least the deployment's (limits.min_gap_seconds).
quiet_hoursobject
Local hours (0–23). The window must include every hour of the deployment's.
Show child attributes
startintegerRequired
The hour quiet hours start.
endintegerRequired
The hour quiet hours end.
schedulesobject
The products to change; each field of a product's schedule is optional.
Show child attributes
capture_requestobject
One product's automatic reminder schedule.
Show child attributes
enabledboolean
Whether requests created from now on get automatic reminders. Off by default; turning it on needs the Pro plan or higher.
afterarray of strings
Up to three offsets from the request's creation (10m, 24h, 3d), increasing, each at least the minimum gap after the one before, at most 7 days. An offset on or after the request's expiry never fires.
approvalobject
One product's automatic reminder schedule.
Show child attributes
enabledboolean
Whether requests created from now on get automatic reminders. Off by default; turning it on needs the Pro plan or higher.
afterarray of strings
Up to three offsets from the request's creation (10m, 24h, 3d), increasing, each at least the minimum gap after the one before, at most 7 days. An offset on or after the request's expiry never fires.
checkout_approvalobject
One product's automatic reminder schedule.
Show child attributes
enabledboolean
Whether requests created from now on get automatic reminders. Off by default; turning it on needs the Pro plan or higher.
afterarray of strings
Up to three offsets from the request's creation (10m, 24h, 3d), increasing, each at least the minimum gap after the one before, at most 7 days. An offset on or after the request's expiry never fires.

Returns

Any The reminder settings.

HTTP operation

PUT /v1/account/reminders: Set reminder settings

Errors

Example

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();

Was this page helpful? Send us feedback

LLM? Read llms.txt.