SDK method
tools.setNotificationSchedule
Set notification schedule. Convenience alias for set_notification_schedule, forwarding to tinbox.api.digests.setPreset.mutate.
Signature
ts
setNotificationSchedule(input: Parameters<TinboxTools["setNotificationSchedule"]>[0]): ReturnType<TinboxTools["setNotificationSchedule"]>Parameters
| Name | Type | Required | Description |
|---|---|---|---|
preset | "every" | "important" | "daily" | "weekly" | "never" | yes | — |
target | string | no | Optional destination email; defaults to the account email. |
Returns
ReturnType<TinboxTools["setNotificationSchedule"]>
Example
ts
await tinbox.tools.setNotificationSchedule({
"preset": "every"
});